[FFmpeg-trac] #2333(undetermined:new): mkv + ac3 remux adds a little time

FFmpeg trac at avcodec.org
Thu Mar 7 02:30:11 CET 2013


#2333: mkv + ac3 remux adds a little time
-------------------------------------+-------------------------------------
             Reporter:  Squeeto      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by Squeeto):

 Replying to [comment:1 cehoyos]:
 > To make this a valid ticket, please provide your failing command line
 including complete, unedited console output and please consider using a
 "Code block".

 Please note the Duration discrepancies:

 ffmpeg -i input.mkv -i input.ac3 -map 0:0 -map 1:0 -vcodec copy -acodec
 copy -y done.mkv
 {{{
 ffmpeg version N-50025-gb8bb661 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Feb 17 2013 02:37:45 with gcc 4.7.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca
 --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
 libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
 --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
   libavutil      52. 17.101 / 52. 17.101
   libavcodec     54. 91.103 / 54. 91.103
   libavformat    54. 63.100 / 54. 63.100
   libavdevice    54.  3.103 / 54.  3.103
   libavfilter     3. 38.100 /  3. 38.100
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 Input #0, matroska,webm, from 'input.mkv':
   Duration: 00:00:12.85, start: 0.000000, bitrate: 6039 kb/s
     Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1080, SAR 1:1 DAR
 16:9, 29.97 fps, 29.97 tbr, 20k tbn, 59.94 tbc (default)
 [ac3 @ 025ad320] max_analyze_duration 5000000 reached at 5024000
 microseconds
 [ac3 @ 025ad320] Estimating duration from bitrate, this may be inaccurate
 Input #1, ac3, from 'input.ac3':
   Duration: 00:00:12.86, start: 0.000000, bitrate: 256 kb/s
     Stream #1:0: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
 Output #0, matroska, to 'done.mkv':
   Metadata:
     encoder         : Lavf54.63.100
     Stream #0:0(eng): Video: h264 (H264 / 0x34363248), yuv420p, 1920x1080
 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 1k tbn, 20k tbc (default)
     Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 256
 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #1:0 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 frame=  385 fps=0.0 q=-1.0 Lsize=    9876kB time=00:00:12.86
 bitrate=6289.3kbits/s
 video:9468kB audio:402kB subtitle:0 global headers:0kB muxing overhead
 0.065323%
 }}}

 ffmpeg -i done.mkv -an -vcodec copy -y demux.mkv
 {{{
 ffmpeg version N-50025-gb8bb661 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Feb 17 2013 02:37:45 with gcc 4.7.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca
 --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
 libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
 --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
   libavutil      52. 17.101 / 52. 17.101
   libavcodec     54. 91.103 / 54. 91.103
   libavformat    54. 63.100 / 54. 63.100
   libavdevice    54.  3.103 / 54.  3.103
   libavfilter     3. 38.100 /  3. 38.100
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 Input #0, matroska,webm, from 'done.mkv':
   Metadata:
     ENCODER         : Lavf54.63.100
   Duration: 00:00:12.93, start: 0.000000, bitrate: 6256 kb/s
     Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1080, SAR 1:1 DAR
 16:9, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default)
     Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
 Output #0, matroska, to 'demux.mkv':
   Metadata:
     encoder         : Lavf54.63.100
     Stream #0:0(eng): Video: h264 (H264 / 0x34363248), yuv420p, 1920x1080
 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 1k tbn, 1k tbc (default)
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 frame=  385 fps=0.0 q=-1.0 Lsize=    9471kB time=00:00:12.81
 bitrate=6055.1kbits/s
 video:9468kB audio:0kB subtitle:0 global headers:0kB muxing overhead
 0.038442%
 }}}

 ffmpeg -i done.mkv -acodec copy -vn -y demux.ac3
 {{{
 ffmpeg version N-50025-gb8bb661 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Feb 17 2013 02:37:45 with gcc 4.7.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca
 --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
 libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
 --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
   libavutil      52. 17.101 / 52. 17.101
   libavcodec     54. 91.103 / 54. 91.103
   libavformat    54. 63.100 / 54. 63.100
   libavdevice    54.  3.103 / 54.  3.103
   libavfilter     3. 38.100 /  3. 38.100
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 Input #0, matroska,webm, from 'done.mkv':
   Metadata:
     ENCODER         : Lavf54.63.100
   Duration: 00:00:12.93, start: 0.000000, bitrate: 6256 kb/s
     Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1080, SAR 1:1 DAR
 16:9, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default)
     Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
 Output #0, ac3, to 'demux.ac3':
   Metadata:
     encoder         : Lavf54.63.100
     Stream #0:0: Audio: ac3, 48000 Hz, stereo, 256 kb/s
 Stream mapping:
   Stream #0:1 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 size=     402kB time=00:00:12.93 bitrate= 254.7kbits/s
 video:0kB audio:402kB subtitle:0 global headers:0kB muxing overhead
 0.000000%
 }}}

 ffmpeg -i demux.mkv
 {{{
 ffmpeg version N-50025-gb8bb661 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Feb 17 2013 02:37:45 with gcc 4.7.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca
 --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
 libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
 --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
   libavutil      52. 17.101 / 52. 17.101
   libavcodec     54. 91.103 / 54. 91.103
   libavformat    54. 63.100 / 54. 63.100
   libavdevice    54.  3.103 / 54.  3.103
   libavfilter     3. 38.100 /  3. 38.100
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 Input #0, matroska,webm, from 'demux.mkv':
   Metadata:
     ENCODER         : Lavf54.63.100
   Duration: 00:00:12.91, start: 0.000000, bitrate: 6008 kb/s
     Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1080, SAR 1:1 DAR
 16:9, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default)
 At least one output file must be specified
 }}}

 ffmpeg -i demux.ac3
 {{{
 ffmpeg version N-50025-gb8bb661 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Feb 17 2013 02:37:45 with gcc 4.7.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca
 --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
 libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
 --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
   libavutil      52. 17.101 / 52. 17.101
   libavcodec     54. 91.103 / 54. 91.103
   libavformat    54. 63.100 / 54. 63.100
   libavdevice    54.  3.103 / 54.  3.103
   libavfilter     3. 38.100 /  3. 38.100
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 [ac3 @ 0226b420] max_analyze_duration 5000000 reached at 5024000
 microseconds
 [ac3 @ 0226b420] Estimating duration from bitrate, this may be inaccurate
 Input #0, ac3, from 'demux.ac3':
   Duration: 00:00:12.86, start: 0.000000, bitrate: 256 kb/s
     Stream #0:0: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
 At least one output file must be specified
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2333#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list