[FFmpeg-trac] #2427(FFmpeg:new): FFmpeg sets incorrect audio codec in output stream with multiple maps

FFmpeg trac at avcodec.org
Tue Apr 2 22:28:51 CEST 2013


#2427: FFmpeg sets incorrect audio codec in output stream with multiple maps
--------------------------------+---------------------------------------
             Reporter:  mt      |                     Type:  defect
               Status:  new     |                 Priority:  normal
            Component:  FFmpeg  |                  Version:  unspecified
             Keywords:          |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+---------------------------------------
 Summary of the bug:
 When transcoding FFmpeg incorrectly sets the audio codec with multiple
 maps. It simply takes the last one and applies it to all audio tracks.

 All FFmpeg version from 0.9 are affected by this.

 How to reproduce:
 {{{
 ffmpeg -i input.mkv -map 0:0 -vcodec copy -map 0:1 -acodec aac -map 0:2
 -acodec alac test.m4v
 ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
   built on Apr  2 2013 22:14:15 with llvm-gcc 4.2.1 (LLVM build
 2336.11.00)
   configuration:
   libavutil      52. 18.100 / 52. 18.100
   libavcodec     54. 92.100 / 54. 92.100
   libavformat    54. 63.104 / 54. 63.104
   libavdevice    54.  3.103 / 54.  3.103
   libavfilter     3. 42.103 /  3. 42.103
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
 Input #0, matroska,webm, from 'input.mkv':
   Duration: 00:51:41.38, start: 0.000000, bitrate: 8640 kb/s
     Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR
 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
     Stream #0:1(ger): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 768
 kb/s (default) (forced)
     Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536
 kb/s
 [alac @ 0x7ffa6391b600] encoding as 24 bits-per-sample
 [alac @ 0x7ffa6391bc00] encoding as 24 bits-per-sample
 Output #0, ipod, to 'test.m4v':
   Metadata:
     encoder         : Lavf54.63.104
     Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR
 1:1 DAR 16:9], q=2-31, 23.98 fps, 16k tbn, 1k tbc (default)
     Stream #0:1(ger): Audio: alac (alac / 0x63616C61), 48000 Hz, 5.1,
 s32p, 128 kb/s (default) (forced)
     Stream #0:2(eng): Audio: alac (alac / 0x63616C61), 48000 Hz, 5.1,
 s32p, 128 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (dca -> alac)
   Stream #0:2 -> #0:2 (dca -> alac)
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2427>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list