[FFmpeg-devel] [PATCH] Reset audio_disable and video_disable for new input files

Luca Abeni lucabe72
Mon Jun 11 13:54:20 CEST 2007

Hi all,

let's assume I want to save the video track from an input file input.avi 
into a file out1.avi, and I want to save the audio track into a 
different otuput file out2.avi.

The only way I found to do this is
ffmpeg -i input.avi -vcodec copy -an out1.avi -i input.avi -acodec copy 
-vn out2.avi
but this unfortunately fails, because when the second input is read 
audio_disable is not reset to 0. Is this done by purpose? If not, the 
attached patch fixes the problem.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: reset_disable_on_new_file.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070611/855430e8/attachment.asc>

More information about the ffmpeg-devel mailing list