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

FFmpeg trac at avcodec.org
Sat Dec 22 07:12:45 CET 2012


#2028: No Audio in output file if -ss is specified after -i in newer builds
-------------------------------------+----------------------------------
             Reporter:  ramitbhalla  |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  important    |                Component:  FFmpeg
              Version:  unspecified  |               Resolution:  fixed
             Keywords:  regression   |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+----------------------------------

Comment (by ramitbhalla):

 Okay, so here's the issue, one side of the problem has been fixed but it
 ended up breaking the other.

 Now specifying -ss after -i works fine, but using -ss before -i now breaks
 ffmpeg.

 See below:

 SPECIFYING -ss AFTER -i WORKS FINE

 {{{

 ffmpeg -y -i "D:\Test Videos\Mcebuddyarchive\Test6.ts" -ss 30 -t 1727 -map
 0:a -map 0:v -v
 codec copy -acodec copy test-temp.ts
 ffmpeg version N-48065-g6375318 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Dec 21 2012 09:06:30 with gcc 4.7.2 (GCC)
   configuration: --enable-static --arch=x86 --target-os=mingw32 --cross-
 prefix=/home/rdp/dev/ffmpeg-windows-build-helper
 s/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config
 --enable-gpl --enable-libx264 --enable-avisynth -
 -enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib
 --enable-librtmp --enable-libvorbis --enable-libtheo
 ra --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm
 --enable-libfreetype --enable-fontconfig --ena
 ble-libass --enable-libutvideo --enable-libopus --disable-w32threads
 --enable-frei0r --enable-filter=frei0r --enable-lib
 vo-aacenc --enable-bzlib --enable-libxavs --extra-
 cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopenc
 ore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-
 libbluray --enable-libvpx --enable-runtime-cpudetect

   libavutil      52. 12.100 / 52. 12.100
   libavcodec     54. 81.100 / 54. 81.100
   libavformat    54. 49.102 / 54. 49.102
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 29.100 /  3. 29.100
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 Input #0, mpeg, from 'D:\Test Videos\Mcebuddyarchive\Test6.ts':
   Duration: 00:29:47.79, start: 0.200000, bitrate: 14465 kb/s
     Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 1920x1080 [SAR
 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn,
 59.94 tbc
     Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 96 kb/s (visual
 impaired)
 Output #0, mpegts, to 'test-temp.ts':
   Metadata:
     encoder         : Lavf54.49.102
     Stream #0:0: Audio: ac3, 48000 Hz, stereo, 96 kb/s (visual impaired)
     Stream #0:1: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9],
 q=2-31, 29.97 fps, 90k tbn, 29.97 tbc
 Stream mapping:
   Stream #0:1 -> #0:0 (copy)
   Stream #0:0 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 frame= 8911 fps=471 q=-1.0 Lsize=  548857kB time=00:04:59.60
 bitrate=15007.5kbits/s
 video:504598kB audio:3511kB subtitle:0 global headers:0kB muxing overhead
 8.019605%
 }}}


 SPECIFYING -ss BEFORE -i BREAKS

 {{{
 ffmpeg -y -ss 30 -i "D:\Test Videos\Mcebuddyarchive\Test6.ts" -t 1727 -map
 0:a -map 0:v -v
 codec copy -acodec copy test-temp.ts
 ffmpeg version N-48065-g6375318 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Dec 21 2012 09:06:30 with gcc 4.7.2 (GCC)
   configuration: --enable-static --arch=x86 --target-os=mingw32 --cross-
 prefix=/home/rdp/dev/ffmpeg-windows-build-helper
 s/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config
 --enable-gpl --enable-libx264 --enable-avisynth -
 -enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib
 --enable-librtmp --enable-libvorbis --enable-libtheo
 ra --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm
 --enable-libfreetype --enable-fontconfig --ena
 ble-libass --enable-libutvideo --enable-libopus --disable-w32threads
 --enable-frei0r --enable-filter=frei0r --enable-lib
 vo-aacenc --enable-bzlib --enable-libxavs --extra-
 cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopenc
 ore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-
 libbluray --enable-libvpx --enable-runtime-cpudetect

   libavutil      52. 12.100 / 52. 12.100
   libavcodec     54. 81.100 / 54. 81.100
   libavformat    54. 49.102 / 54. 49.102
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 29.100 /  3. 29.100
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 Input #0, mpeg, from 'D:\Test Videos\Mcebuddyarchive\Test6.ts':
   Duration: 00:29:47.79, start: 0.200000, bitrate: 14465 kb/s
     Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 1920x1080 [SAR
 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn,
 59.94 tbc
     Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 96 kb/s (visual
 impaired)
 Output #0, mpegts, to 'test-temp.ts':
   Metadata:
     encoder         : Lavf54.49.102
     Stream #0:0: Audio: ac3, 48000 Hz, stereo, 96 kb/s (visual impaired)
     Stream #0:1: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9],
 q=2-31, 29.97 fps, 90k tbn, 29.97 tbc
 Stream mapping:
   Stream #0:1 -> #0:0 (copy)
   Stream #0:0 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 [mpegts @ 03ce7260] first pts value must set
 av_interleaved_write_frame(): Invalid data found when processing input

 }}}

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


More information about the FFmpeg-trac mailing list