[FFmpeg-trac] #2607(undetermined:new): Ffmpeg duplicates and drops frames when given a .ts stream.

FFmpeg trac at avcodec.org
Tue May 28 13:04:37 CEST 2013


#2607: Ffmpeg duplicates and drops frames when given a .ts stream.
-------------------------------------+-------------------------------------
             Reporter:  Nofew        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by ubitux):

 The codec doesn't seem to be related, but the behaviour within container
 looks slightly different.

 AVI, dup=0 drop=806:
 {{{
 ☭ ./ffmpeg -i
 ~/Ffmpeg_duplicates_and_drops_frames_when_given_a_ts_stream.ts -c:v mpeg4
 -an -y outbar.avi
 ffmpeg version N-53573-g3ed3aaa Copyright (c) 2000-2013 the FFmpeg
 developers
   built on May 28 2013 12:46:13 with gcc 4.8.0 (GCC) 20130502 (prerelease)
   configuration: --enable-gpl --enable-libx264 --enable-libmp3lame
 --enable-x11grab --enable-libvorbis --enable-libvpx --enable-libopenjpeg
   libavutil      52. 34.100 / 52. 34.100
   libavcodec     55. 12.100 / 55. 12.100
   libavformat    55.  7.100 / 55.  7.100
   libavdevice    55.  1.101 / 55.  1.101
   libavfilter     3. 72.100 /  3. 72.100
   libswscale      2.  3.100 /  2.  3.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, mpegts, from
 '/home/ubitux/Ffmpeg_duplicates_and_drops_frames_when_given_a_ts_stream.ts':
   Duration: 00:00:20.78, start: 2000.488000, bitrate: 25666 kb/s
   Program 2
     Stream #0:0[0x64]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn,
 119.88 tbc
     Stream #0:1[0x65](USA): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz,
 stereo, fltp, 241 kb/s
 Output #0, avi, to 'outbar.avi':
   Metadata:
     ISFT            : Lavf55.7.100
     Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 1280x720 [SAR
 1:1 DAR 16:9], q=2-31, 200 kb/s, 59.94 tbn, 59.94 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 -> mpeg4)
 Press [q] to stop, [?] for help
 error while decoding MB 73 16, bytestream (-80)=00:00:19.83 bitrate=
 914.3kbits/s dup=0 drop=787
 [h264 @ 0x32540c0] concealing 2296 DC, 2296 AC, 2296 MV errors in I frame
 frame=  410 fps= 39 q=24.8 Lsize=    2300kB time=00:00:20.38 bitrate=
 924.1kbits/s dup=0 drop=806
 video:2265kB audio:0kB subtitle:0 global headers:0kB muxing overhead
 1.522031%
 }}}

 MKV, same:
 {{{
 ☭ ./ffmpeg -i
 ~/Ffmpeg_duplicates_and_drops_frames_when_given_a_ts_stream.ts -c:v mpeg4
 -an -y outbar.mkv
 ffmpeg version N-53573-g3ed3aaa Copyright (c) 2000-2013 the FFmpeg
 developers
   built on May 28 2013 12:46:13 with gcc 4.8.0 (GCC) 20130502 (prerelease)
   configuration: --enable-gpl --enable-libx264 --enable-libmp3lame
 --enable-x11grab --enable-libvorbis --enable-libvpx --enable-libopenjpeg
   libavutil      52. 34.100 / 52. 34.100
   libavcodec     55. 12.100 / 55. 12.100
   libavformat    55.  7.100 / 55.  7.100
   libavdevice    55.  1.101 / 55.  1.101
   libavfilter     3. 72.100 /  3. 72.100
   libswscale      2.  3.100 /  2.  3.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, mpegts, from
 '/home/ubitux/Ffmpeg_duplicates_and_drops_frames_when_given_a_ts_stream.ts':
   Duration: 00:00:20.78, start: 2000.488000, bitrate: 25666 kb/s
   Program 2
     Stream #0:0[0x64]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn,
 119.88 tbc
     Stream #0:1[0x65](USA): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz,
 stereo, fltp, 241 kb/s
 Output #0, matroska, to 'outbar.mkv':
   Metadata:
     encoder         : Lavf55.7.100
     Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 1280x720 [SAR
 1:1 DAR 16:9], q=2-31, 200 kb/s, 1k tbn, 59.94 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 -> mpeg4)
 Press [q] to stop, [?] for help
 error while decoding MB 73 16, bytestream (-80)=00:00:20.03 bitrate=
 908.8kbits/s dup=0 drop=795
 [h264 @ 0x2a410c0] concealing 2296 DC, 2296 AC, 2296 MV errors in I frame
 frame=  410 fps= 39 q=24.8 Lsize=    2268kB time=00:00:20.38 bitrate=
 911.4kbits/s dup=0 drop=806
 video:2264kB audio:0kB subtitle:0 global headers:0kB muxing overhead
 0.198051%
 }}}

 MP4, dup=409 drop=403:
 {{{
 ☭ ./ffmpeg -i
 ~/Ffmpeg_duplicates_and_drops_frames_when_given_a_ts_stream.ts -c:v mpeg4
 -an -y outbar.mp4
 ffmpeg version N-53573-g3ed3aaa Copyright (c) 2000-2013 the FFmpeg
 developers
   built on May 28 2013 12:46:13 with gcc 4.8.0 (GCC) 20130502 (prerelease)
   configuration: --enable-gpl --enable-libx264 --enable-libmp3lame
 --enable-x11grab --enable-libvorbis --enable-libvpx --enable-libopenjpeg
   libavutil      52. 34.100 / 52. 34.100
   libavcodec     55. 12.100 / 55. 12.100
   libavformat    55.  7.100 / 55.  7.100
   libavdevice    55.  1.101 / 55.  1.101
   libavfilter     3. 72.100 /  3. 72.100
   libswscale      2.  3.100 /  2.  3.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, mpegts, from
 '/home/ubitux/Ffmpeg_duplicates_and_drops_frames_when_given_a_ts_stream.ts':
   Duration: 00:00:20.78, start: 2000.488000, bitrate: 25666 kb/s
   Program 2
     Stream #0:0[0x64]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn,
 119.88 tbc
     Stream #0:1[0x65](USA): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz,
 stereo, fltp, 241 kb/s
 Output #0, mp4, to 'outbar.mp4':
   Metadata:
     encoder         : Lavf55.7.100
     Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 1280x720
 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 60k tbn, 59.94 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 -> mpeg4)
 Press [q] to stop, [?] for help
 error while decoding MB 73 16, bytestream (-80)=00:00:19.68
 bitrate=1801.3kbits/s dup=394 drop=390
 [h264 @ 0x3071480] concealing 2296 DC, 2296 AC, 2296 MV errors in I frame
 frame= 1222 fps= 86 q=31.0 Lsize=    4517kB time=00:00:20.38
 bitrate=1814.9kbits/s dup=409 drop=403
 video:4511kB audio:0kB subtitle:0 global headers:0kB muxing overhead
 0.133645%
 }}}

 @Nofew: you're ticket is mentioning that you tried extracting the frames
 into images. If you do so to compare every frame, make sure you use the
 {{{-vsync vfr}}} switch (See #1644 for more info).

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


More information about the FFmpeg-trac mailing list