Sunday, February 22, 2009

How to remove the audio track from an AVI file (using mencorder)

Issue the command from the folder in which the files are located. Change the .avi file names to the relevant ones.

Using the following command one can remove the audio track from an AVI file.
mencoder -ovc copy -nosound video.avi -o video_nosound.avi

The following command will add a new track to the AVI file.
mencoder -ovc copy -audiofile soundtrack.mp3 -oac copy video_nosound.avi -o video_new.avi

No comments: