Message Boards Message Boards

How do I delete the audio track from an imported video?

Posted 3 years ago

I frequently need to remove the audio track from videos for later processing. Is there a way to delete the audio track?

POSTED BY: Dinesh Rao
2 Replies
Posted 3 years ago

Thank you! I didn't realise that it's only when I export it that the audio disappears.

POSTED BY: Dinesh Rao

You can specify the Audio Tracks you want (in your case None). Using the example from the help system and modifying it:

In[12]:= 
v = Video["ExampleData/bullfinch.mkv", AudioTrackSelection -> None];
Information[v, "AudioTracks"]

Out[13]= Missing["UnknownProperty", "AudioTracks"]

In[23]:= Export["foo.mov", v]

Out[23]= "foo.mov"

The movie now has no sound.

Regards,

Neil

POSTED BY: Neil Singer
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract