[FFmpeg-user] adding an ac3 stream to an a/v stream
andrew2012 at flight.us
Sat Mar 30 23:44:27 CET 2013
I've searched online for ways to do this, but the solutions I've found don't seem to work:
AFAICT (correct me if i'm wrong), the "-acodec copy" and similar options are obsolete, as well as "-newaudio" and things like that.
So, one command I found did not throw any errors, but the result is a file with static/buzzing audio:
ffmpeg -i myvideo.avi -i extra_audio.ac3 -map 0:0 -map 0:1 -map 1:0 -codec:v:0 copy -codec:a:0 copy -codec:a:1 copy muxed_output.avi
This yields a playable "muxed_output.avi", but the audio starts out with an obnoxious buzz, which is followed by continuous digital static.
I've got a newly built ffmpeg --
ffmpeg version N-51346-gace0cfe Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 27 2013 16:23:10 with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
More information about the ffmpeg-user