[FFmpeg-trac] #2427(FFmpeg:closed): FFmpeg sets incorrect codec in output stream with multiple maps
FFmpeg
trac at avcodec.org
Thu Apr 4 00:55:08 CEST 2013
#2427: FFmpeg sets incorrect codec in output stream with multiple maps
------------------------------------+--------------------------------------
Reporter: mt | Owner:
Type: defect | Status: closed
Priority: normal | Component: FFmpeg
Version: git-master | Resolution: worksforme
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+--------------------------------------
Changes (by cehoyos):
* status: open => closed
* resolution: => worksforme
* reproduced: 1 => 0
Comment:
(I suspect other users would have answered faster if you had asked on
ffmpeg-users.)
You need to specify the audio stream number, this is explained on
http://ffmpeg.org/ffmpeg.html#Main-options
For my command line, this would be:
$ ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -codec:v:0
mpeg1video -map 0:0 -codec:a:0 ac3 -map 0:1 -codec:v:1 flv -map 0:0
-codec:a:1 mp2 -map 0:1 -y out.avi
In your case, it is something like:
$ ffmpeg -i input.mkv -map 0:0 -vcodec copy -map 0:1 -codec:a:0 aac -map
0:2 -codec:a:1 alac test.m4v
Sorry for not realizing this earlier!
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2427#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list