[FFmpeg-trac] #2028(undetermined:new): No Audio in output file if -ss is specified after -i in newer builds

FFmpeg trac at avcodec.org
Thu Dec 13 18:15:28 CET 2012


#2028: No Audio in output file if -ss is specified after -i in newer builds
-------------------------------------+-------------------------------------
             Reporter:  ramitbhalla  |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug: With the newer builds, some files (I've replicated
 with TS and WTV so far) don't have or have corrupted audio in the output
 file if the -ss is specified after -i. If it's specified before -i the
 audio is fine.

 The sample file is too large to upload here (that itself is cut from the
 original file which is much larger).
 It can be downloaded from:

 http://www.mediafire.com/?phqror7mn83pdlk

 How to reproduce:
 WORKS:
 {{{
 ffmpeg -ss 30 -i test.ts -vcodec copy -acodec copy -t 15 test1.ts
 ffmpeg version N-46726-g2f74f8d Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Nov 13 2012 19:29:51 with gcc 4.7.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-pthreads
 --enable-runtime-cpudetect --enable-avisynth --enable
 -bzlib --enable-frei0r --enable-libass --enable-libopencore-amrnb
 --enable-libopencore-amrwb --enable-libfreetype --enab
 le-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroed
 inger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-
 libvo-aacenc --enable-libvo-amrwbenc --enable-li
 bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
 --enable-zlib
   libavutil      52.  6.100 / 52.  6.100
   libavcodec     54. 71.100 / 54. 71.100
   libavformat    54. 36.100 / 54. 36.100
   libavdevice    54.  3.100 / 54.  3.100
   libavfilter     3. 23.100 /  3. 23.100
   libswscale      2.  1.102 /  2.  1.102
   libswresample   0. 16.100 /  0. 16.100
   libpostproc    52.  1.100 / 52.  1.100
 [mpegts @ 0025afa0] max_analyze_duration 5000000 reached at 5016000
 Input #0, mpegts, from 'test.ts':
   Duration: 00:02:00.06, start: 1.400000, bitrate: 4219 kb/s
   Program 1
     Metadata:
       service_name    : CBBC Channel
       service_provider: CBBC Channel
     Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
 yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps,
  25 tbr, 90k tbn, 50 tbc
     Stream #0:1[0x101](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
 stereo, s16, 256 kb/s
 Output #0, mpegts, to 'test1.ts':
   Metadata:
     encoder         : Lavf54.36.100
     Stream #0:0: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p,
 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 90k t
 bn, 25 tbc
     Stream #0:1(eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
 stereo, 256 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 frame=  356 fps=0.0 q=-1.0 Lsize=    7247kB time=00:00:15.02
 bitrate=3952.5kbits/s
 video:6214kB audio:470kB subtitle:0 global headers:0kB muxing overhead
 8.415676%
 }}}

 DOES NOT WORK
 {{{
 ffmpeg -i test.ts -vcodec copy -acodec copy -ss 30 -t 15 test1.ts
 ffmpeg version N-46726-g2f74f8d Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Nov 13 2012 19:29:51 with gcc 4.7.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-pthreads
 --enable-runtime-cpudetect --enable-avisynth --enable
 -bzlib --enable-frei0r --enable-libass --enable-libopencore-amrnb
 --enable-libopencore-amrwb --enable-libfreetype --enab
 le-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroed
 inger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-
 libvo-aacenc --enable-libvo-amrwbenc --enable-li
 bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
 --enable-zlib
   libavutil      52.  6.100 / 52.  6.100
   libavcodec     54. 71.100 / 54. 71.100
   libavformat    54. 36.100 / 54. 36.100
   libavdevice    54.  3.100 / 54.  3.100
   libavfilter     3. 23.100 /  3. 23.100
   libswscale      2.  1.102 /  2.  1.102
   libswresample   0. 16.100 /  0. 16.100
   libpostproc    52.  1.100 / 52.  1.100
 [mpegts @ 0221afa0] max_analyze_duration 5000000 reached at 5016000
 Input #0, mpegts, from 'test.ts':
   Duration: 00:02:00.06, start: 1.400000, bitrate: 4219 kb/s
   Program 1
     Metadata:
       service_name    : CBBC Channel
       service_provider: CBBC Channel
     Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
 yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps,
  25 tbr, 90k tbn, 50 tbc
     Stream #0:1[0x101](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
 stereo, s16, 256 kb/s
 Output #0, mpegts, to 'test1.ts':
   Metadata:
     encoder         : Lavf54.36.100
     Stream #0:0: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p,
 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 90k t
 bn, 25 tbc
     Stream #0:1(eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
 stereo, 256 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 frame=  356 fps=0.0 q=-1.0 Lsize=    7246kB time=00:00:45.00
 bitrate=1319.1kbits/s
 video:6214kB audio:469kB subtitle:0 global headers:0kB muxing overhead
 8.423527%
 }}}

 LAST WORKING VERSION FFMPEG WITH -SS AFTER -I

 {{{
 ffmpeg.051112 -i test.ts -vcodec copy -acodec copy -ss 30 -t 15 test1.ts
 ffmpeg version N-37915-g6cb2085 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Feb 15 2012 20:47:20 with gcc 4.6.2
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-runtime-cpudetect --enable-avisynth --enab
 le-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-
 amrwb --enable-libfreetype --enable-libgsm --en
 able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-
 libschroedinger --enable-libspeex --enable-libtheora --en
 able-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-
 libvpx --enable-libx264 --enable-libxavs --enable-
 libxvid --enable-zlib
   libavutil      51. 39.100 / 51. 39.100
   libavcodec     54.  3.100 / 54.  3.100
   libavformat    54.  1.100 / 54.  1.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 62.100 /  2. 62.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  6.100 /  0.  6.100
   libpostproc    52.  0.100 / 52.  0.100
 [mpegts @ 01CC9540] max_analyze_duration 5000000 reached at 5016000
 Input #0, mpegts, from 'test.ts':
   Duration: 00:02:00.06, start: 1.400000, bitrate: 4219 kb/s
   Program 1
     Metadata:
       service_name    : CBBC Channel
       service_provider: CBBC Channel
     Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
 yuv420p, 720x576 [SAR 64:45 DAR 16:9], 15000 k
 b/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:1[0x101](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
 stereo, s16, 256 kb/s
 [mpegts @ 02A493A0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt
 every 40 pkts
 Output #0, mpegts, to 'test1.ts':
   Metadata:
     encoder         : Lavf54.1.100
     Stream #0:0: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p,
 720x576 [SAR 64:45 DAR 16:9], q=2-31, 15000 kb/s, 2
 5 fps, 90k tbn, 25 tbc
     Stream #0:1(eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
 stereo, 256 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 frame=  356 fps=  0 q=-1.0 Lsize=    7246kB time=00:00:15.00
 bitrate=3957.0kbits/s
 video:6214kB audio:469kB global headers:0kB muxing overhead 8.418032%
 }}}

 This is a regression defect

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


More information about the FFmpeg-trac mailing list