Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#1297 closed defect (worksforme)

FFMPEG creating stuttering MPEG-2 TS video files

Reported by: ramitb Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I'm trying to transcode different video types to TS MPEG2 video and FFMPEG creates stuttering video with some files (some are okay say about 20% are stuttering).

Since the files are too big to attach (each 60MB) I've uploaded them and including the links to the 2 files below:

LINKS:
http://www.mediafire.com/?ojp54ym1mkaqkg4
http://www.mediafire.com/?yn1sp6mzg5go04o

COMMAND:

ffmpeg -i "test1.wtv" -vcodec mpeg2video -sameq -an test.ts

OUTPUT:

ffmpeg version N-40517-ga548671 Copyright (c) 2000-2012 the FFmpeg developers
  built on May  9 2012 13:00:06 with gcc 4.6.3
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enab
le-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschro
edinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 50.100 / 51. 50.100
  libavcodec     54. 21.100 / 54. 21.100
  libavformat    54.  4.100 / 54.  4.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 72.105 /  2. 72.105
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 11.100 /  0. 11.100
  libpostproc    52.  0.100 / 52.  0.100
[wtv @ 003fbe00] reported file length (0xb045eca0) exceeds number of available sectors (0x60000000)
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS referenced
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] no frame!
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS referenced
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] no frame!
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS referenced
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] no frame!
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS referenced
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] no frame!
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS referenced
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] no frame!
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS referenced
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] no frame!
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS referenced
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] no frame!
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS referenced
[h264 @ 02bc3800] non-existing SPS 0 referenced in buffering period
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] non-existing PPS 0 referenced
[h264 @ 02bc3800] decode_slice_header error
[h264 @ 02bc3800] no frame!
[h264 @ 02bc3800] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 02bc3800] Increasing reorder buffer to 1
[h264 @ 02bc3800] Increasing reorder buffer to 2
[h264 @ 02bc3800] mmco: unref short failure
Input #0, wtv, from 'test1.wtv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : Doctor Who
    WM/SubTitle     : 4/13. The Doctor's Wife
    WM/SubTitleDescription: Science fiction drama. When he follows a Time Lord distress signal, the Doctor puts Amy, Ror
y and his beloved TARDIS in grave danger. [HD] [AD,S]
    genre           : Entertainment - Sci-FI
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: BBC One HD
    service_name    : BBC One HD
    WM/MediaNetworkAffiliation: BBC One HD
    WM/MediaOriginalChannel: 143
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
    WM/MediaOriginalRunTime: 31093994141
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: false
    WM/MediaIsLive  : false
    WM/MediaIsTape  : false
    WM/MediaIsDelay : false
    WM/MediaIsSubtitled: false
    WM/MediaIsMovie : false
    WM/MediaIsPremiere: false
    WM/MediaIsFinale: false
    WM/MediaIsSAP   : false
    WM/MediaIsSport : false
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: false
    WM/WMRVEncodeTime: 2011-05-14 17:31:10
    WM/WMRVSeriesUID: !GenericSeries!Doctor Who
    WM/WMRVServiceID: !DVBLinkService!37780000
    WM/WMRVProgramID: !MCProgram!8162774324643977!dvblogiccppplugin:2:2050:6941!1305394200
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 420
    WM/WMRVOriginalSoftPostPadding: 180
    WM/WMRVHardPrePadding: -300
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: true
    Duration        : 27526611328
    WM/WMRVEndTime  : 2011-05-14 18:17:03
    WM/WMRVBitrate  : 8.596867
    WM/WMRVKeepUntil: -1
    WM/WMRVActualSoftPrePadding: 229
    WM/WMRVActualSoftPostPadding: -176
    WM/WMRVContentProtected: false
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationSpan: 9223372036854775807
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : false
  Duration: 00:23:30.67, start: 1298.665362, bitrate: 356 kb/s
    Stream #0:0[0x29](eng): Subtitle: dvb_subtitle
    Stream #0:1[0x2a](eng): Subtitle: dvb_teletext
    Stream #0:2[0x2b](eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
    Stream #0:3[0x2c]: Video: h264 (High), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 42.59 fps, 50 tbr, 10000k tbn, 50 tbc
    Stream #0:4[0x2d](nar): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16, 256 kb/s (visual impaired)
[buffer @ 039a2c40] w:1440 h:1080 pixfmt:yuv420p tb:1/1000000 sar:4/3 sws_param:flags=2
[mpegts @ 02bee140] muxrate VBR, pcr every 5 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'test.ts':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : Doctor Who
    WM/SubTitle     : 4/13. The Doctor's Wife
    WM/SubTitleDescription: Science fiction drama. When he follows a Time Lord distress signal, the Doctor puts Amy, Ror
y and his beloved TARDIS in grave danger. [HD] [AD,S]
    genre           : Entertainment - Sci-FI
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: BBC One HD
    service_name    : BBC One HD
    WM/MediaNetworkAffiliation: BBC One HD
    WM/MediaOriginalChannel: 143
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
    WM/MediaOriginalRunTime: 31093994141
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: false
    WM/MediaIsLive  : false
    WM/MediaIsTape  : false
    WM/MediaIsDelay : false
    WM/MediaIsSubtitled: false
    WM/MediaIsMovie : false
    WM/MediaIsPremiere: false
    WM/MediaIsFinale: false
    WM/MediaIsSAP   : false
    WM/MediaIsSport : false
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: false
    WM/WMRVEncodeTime: 2011-05-14 17:31:10
    WM/WMRVSeriesUID: !GenericSeries!Doctor Who
    WM/WMRVServiceID: !DVBLinkService!37780000
    WM/WMRVProgramID: !MCProgram!8162774324643977!dvblogiccppplugin:2:2050:6941!1305394200
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 420
    WM/WMRVOriginalSoftPostPadding: 180
    WM/WMRVHardPrePadding: -300
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: true
    Duration        : 27526611328
    WM/WMRVEndTime  : 2011-05-14 18:17:03
    WM/WMRVBitrate  : 8.596867
    WM/WMRVKeepUntil: -1
    WM/WMRVActualSoftPrePadding: 229
    WM/WMRVActualSoftPostPadding: -176
    WM/WMRVContentProtected: false
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationSpan: 9223372036854775807
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : false
    encoder         : Lavf54.4.100
    Stream #0:0: Video: mpeg2video, yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 50 tbc
Stream mapping:
  Stream #0:3 -> #0:0 (h264 -> mpeg2video)
Press [q] to stop, [?] for help
[h264 @ 039cfae0] reference picture missing during reorder
[h264 @ 039cfae0] Missing reference picture
[h264 @ 039cfae0] decode_slice_header error
[h264 @ 039cfae0] reference picture missing during reorder
[h264 @ 039cfae0] Missing reference picture
[h264 @ 039cfae0] decode_slice_header error
[h264 @ 039cfae0] reference picture missing during reorder
[h264 @ 039cfae0] Missing reference picture
[h264 @ 039cfae0] decode_slice_header error
[h264 @ 039cfae0] reference picture missing during reorder
[h264 @ 039cfae0] Missing reference picture
[h264 @ 039cfae0] decode_slice_header error
[h264 @ 039cfae0] reference picture missing during reorder
[h264 @ 039cfae0] Missing reference picture
[h264 @ 039cfae0] decode_slice_header error
[h264 @ 039cfae0] reference picture missing during reorder
[h264 @ 039cfae0] Missing reference picture
[h264 @ 039cfae0] decode_slice_header error
[h264 @ 039cfae0] concealing 6120 DC, 6120 AC, 6120 MV errors
[h264 @ 03d10c20] reference picture missing during reorder
[h264 @ 03d10c20] Missing reference picture
    Last message re    Last message repeated 1 times
peated 1 times
[h264 @ 03d10c20] reference picture missing during reorder
[h264 @ 02bbd0c0] mmco: unref short failure
[h264 @ 03d10c20] Missing reference picture
    Last message repeated 1 times
[h264 @ 03d10c20] reference picture missing during reorder
[h264 @ 03d10c20] Missing reference picture
    Last message repeated 1 times
[h264 @ 03d10c20] reference picture missing during reorder
[h264 @ 03d10c20] Missing reference picture
    Last message repeated 1 times
[h264 @ 03d10c20] reference picture missing during reorder
[h264 @ 03d10c20] Missing reference picture
    Last message repeated 1 times
[h264 @ 03d10c20] reference picture missing during reorder
[h264 @ 03d10c20] Missing reference picture
    Last message repeated 1 times
Reference 2 >= 2 70 q=0.0 size=  133412kB time=00:00:56.56 bitrate=19323.0kbits/s dup=1450 drop=0
[h264 @ 039a2400] error while decoding MB 15 36, bytestream (-10)
[h264 @ 039a2400] concealing 2880 DC, 2880 AC, 2880 MV errors
frame= 2888 fps= 70 q=0.0 Lsize=  137581kB time=00:00:57.74 bitrate=19519.6kbits/s dup=1481 drop=0
video:127278kB audio:0kB global headers:0kB muxing overhead 8.094288%

For the second file.
COMMAND:

ffmpeg -i "test2.ts" -vcodec mpeg2video -sameq -an test1.ts

OUTPUT:

ffmpeg version N-40517-ga548671 Copyright (c) 2000-2012 the FFmpeg developers
  built on May  9 2012 13:00:06 with gcc 4.6.3
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enab
le-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschro
edinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 50.100 / 51. 50.100
  libavcodec     54. 21.100 / 54. 21.100
  libavformat    54.  4.100 / 54.  4.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 72.105 /  2. 72.105
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 11.100 /  0. 11.100
  libpostproc    52.  0.100 / 52.  0.100
[mpeg2video @ 02b9a340] mpeg_decode_postinit() failure
    Last message repeated 19 times
[mpegts @ 003cbe00] PES packet size mismatch
Input #0, mpegts, from 'test2.ts':
  Duration: 00:00:51.70, start: 30981.471378, bitrate: 9754 kb/s
  Program 1009
  No Program
    Stream #0:0[0x7c0]: Video: mpeg2video (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 17782 kb/s, 64.74 fps, 59.94 tbr
, 90k tbn, 119.88 tbc
    Stream #0:1[0x7c1]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
[buffer @ 034faf00] w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:flags=2
[mpegts @ 003cf920] muxrate VBR, pcr every 5 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'test1.ts':
  Metadata:
    encoder         : Lavf54.4.100
    Stream #0:0: Video: mpeg2video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 59.94 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> mpeg2video)
Press [q] to stop, [?] for help
Warning MVs not available size=   78209kB time=00:00:51.50 bitrate=12440.3kbits/s dup=48 drop=0
[mpeg2video @ 02b9a340] concealing 3017 DC, 3017 AC, 3017 MV errors
frame= 3100 fps= 92 q=0.0 Lsize=   78795kB time=00:00:51.70 bitrate=12484.9kbits/s dup=49 drop=0
video:72710kB audio:0kB global headers:0kB muxing overhead 8.368608%

In both cases the output video TS video files have stuttering video.

Attachments (1)

Test3.dvr-ms (2.0 MB ) - added by ramitb 12 years ago.

Download all attachments as: .zip

Change History (36)

comment:1 by Stefan Neufeind, 13 years ago

Could this be related to #1302 maybe?

in reply to:  1 comment:2 by Carl Eugen Hoyos, 13 years ago

Replying to neufeind:

Could this be related to #1302 maybe?

Ticket #1302 was a mpeg2video regression that I believe could not be described as "stutter".

If you see a problem with current FFmpeg, please open a new ticket including your ffmpeg command line together with complete, uncut console output and provide a sample.

in reply to:  description comment:3 by Carl Eugen Hoyos, 13 years ago

Replying to ramitbhalla:

ffmpeg -i "test1.wtv" -vcodec mpeg2video -sameq -an test.ts

This needs -r 25.

ffmpeg -i "test2.ts" -vcodec mpeg2video -sameq -an test1.ts

I would expect there is a performance problem when playing the resulting file, at least that is what I see here on old hardware, it disappears if I reduce the resolution or play with half speed.

In the future, please do not report two unrelated problems in one bug report, it makes tracking bugs impossible.

comment:4 by ramitb, 13 years ago

I don't think this is a performance issue. I'm using an iCore7 system running Windows 7 and 4GB RAM with nothing running in the background.

I don't understand why -r 25 is required? (can you help me understand the logic behind how you diagnosed it and what signs I should for in future).

in reply to:  4 comment:5 by Carl Eugen Hoyos, 13 years ago

Replying to ramitbhalla:

I don't think this is a performance issue. I'm using an iCore7 system running Windows 7 and 4GB RAM with nothing running in the background.

Did you test with reduced resolution or with reduced playback speed?

I don't understand why -r 25 is required? (can you help me understand the logic behind how you diagnosed it and what signs I should for in future).

1481 frames duplicated of 2888 frames overall is a good indication that the automatic frame rate choice was bad.

comment:6 by ramitb, 13 years ago

Is adding the -r 25 to the command parameter supposed to remove the errors? I ask because I'm getting the exact same output.

in reply to:  6 comment:7 by Carl Eugen Hoyos, 13 years ago

Replying to ramitbhalla:

Is adding the -r 25 to the command parameter supposed to remove the errors?

(Which errors? You did not report any errors in this ticket afaict, you reported playback problems for two samples, one because ffmpeg set the output frame rate too high for the input file - and your test system - the second supposedly because your test system is too slow for the resulting file, you will have to test with reduced resolution to know for sure.)
No, it is supposed to set the (correct) frame rate for test.ts.

comment:8 by ramitb, 13 years ago

This is in reference to Test1.ts

In your previous note you had explained to me that 1481 frames duplicated of 2888 frames overall is a good indication that the automatic frame rate choice was bad.

So I put -r 25 to the command line, but I'm still getting the same output showing a lot of frames duplicated.
My question is whether this is normal - inspite of correcting the frame rate here should I still get duplicated frames?

Last edited 13 years ago by ramitb (previous) (diff)

in reply to:  8 comment:9 by Carl Eugen Hoyos, 13 years ago

Replying to ramitbhalla:

So I put -r 25 to the command line, but I'm still getting the same output showing a lot of frames duplicated.
My question is whether this is normal - inspite of correcting the frame rate here should I still get duplicated frames?

No.

Command line and complete, uncut console output missing / You have to put -r 25 in front of the output file name.

comment:10 by ramitb, 13 years ago

Thanks for looking into this.

  1. How do you know what frame rate to choose? Why 25 and not 30 or 1001/1000 etc?
  2. I'm still getting the duplicated frames error (see below)

Here is the command:

ffmpeg -i "test1.wtv" -vcodec mpeg2video -sameq -r 25 -an test.ts

Here is the output:

ffmpeg version N-40824-g31dfe20 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 19 2012 00:45:59 with gcc 4.6.3
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enab
le-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschro
edinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 53.100 / 51. 53.100
  libavcodec     54. 21.101 / 54. 21.101
  libavformat    54.  5.100 / 54.  5.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 74.101 /  2. 74.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 12.100 /  0. 12.100
  libpostproc    52.  0.100 / 52.  0.100
[wtv @ 01d1be60] reported file length (0xb045eca0) exceeds number of available sectors (0x60000000)
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS referenced
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] no frame!
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS referenced
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] no frame!
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS referenced
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] no frame!
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS referenced
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] no frame!
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS referenced
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] no frame!
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS referenced
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] no frame!
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS referenced
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] no frame!
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS referenced
[h264 @ 02b337e0] non-existing SPS 0 referenced in buffering period
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] non-existing PPS 0 referenced
[h264 @ 02b337e0] decode_slice_header error
[h264 @ 02b337e0] no frame!
[h264 @ 02b337e0] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 02b337e0] Increasing reorder buffer to 1
[h264 @ 02b337e0] Increasing reorder buffer to 2
[h264 @ 02b337e0] mmco: unref short failure
Input #0, wtv, from 'test1.wtv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : Doctor Who
    WM/SubTitle     : 4/13. The Doctor's Wife
    WM/SubTitleDescription: Science fiction drama. When he follows a Time Lord distress signal, the Doctor puts Amy, Ror
y and his beloved TARDIS in grave danger. [HD] [AD,S]
    genre           : Entertainment - Sci-FI
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: BBC One HD
    service_name    : BBC One HD
    WM/MediaNetworkAffiliation: BBC One HD
    WM/MediaOriginalChannel: 143
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
    WM/MediaOriginalRunTime: 31093994141
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: false
    WM/MediaIsLive  : false
    WM/MediaIsTape  : false
    WM/MediaIsDelay : false
    WM/MediaIsSubtitled: false
    WM/MediaIsMovie : false
    WM/MediaIsPremiere: false
    WM/MediaIsFinale: false
    WM/MediaIsSAP   : false
    WM/MediaIsSport : false
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: false
    WM/WMRVEncodeTime: 2011-05-14 17:31:10
    WM/WMRVSeriesUID: !GenericSeries!Doctor Who
    WM/WMRVServiceID: !DVBLinkService!37780000
    WM/WMRVProgramID: !MCProgram!8162774324643977!dvblogiccppplugin:2:2050:6941!1305394200
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 420
    WM/WMRVOriginalSoftPostPadding: 180
    WM/WMRVHardPrePadding: -300
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: true
    Duration        : 27526611328
    WM/WMRVEndTime  : 2011-05-14 18:17:03
    WM/WMRVBitrate  : 8.596867
    WM/WMRVKeepUntil: -1
    WM/WMRVActualSoftPrePadding: 229
    WM/WMRVActualSoftPostPadding: -176
    WM/WMRVContentProtected: false
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationSpan: 9223372036854775807
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : false
  Duration: 00:23:30.67, start: 1298.665362, bitrate: 356 kb/s
    Stream #0:0[0x29](eng): Subtitle: dvb_subtitle
    Stream #0:1[0x2a](eng): Subtitle: dvb_teletext
    Stream #0:2[0x2b](eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
    Stream #0:3[0x2c]: Video: h264 (High), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 42.59 fps, 50 tbr, 10000k tbn, 50 tbc
    Stream #0:4[0x2d](nar): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16, 256 kb/s (visual impaired)
[buffer @ 03783380] w:1440 h:1080 pixfmt:yuv420p tb:1/1000000 sar:4/3 sws_param:flags=2
[buffersink @ 037833e0] No opaque field provided
[mpegts @ 02b5e300] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'test.ts':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : Doctor Who
    WM/SubTitle     : 4/13. The Doctor's Wife
    WM/SubTitleDescription: Science fiction drama. When he follows a Time Lord distress signal, the Doctor puts Amy, Ror
y and his beloved TARDIS in grave danger. [HD] [AD,S]
    genre           : Entertainment - Sci-FI
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: BBC One HD
    service_name    : BBC One HD
    WM/MediaNetworkAffiliation: BBC One HD
    WM/MediaOriginalChannel: 143
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
    WM/MediaOriginalRunTime: 31093994141
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: false
    WM/MediaIsLive  : false
    WM/MediaIsTape  : false
    WM/MediaIsDelay : false
    WM/MediaIsSubtitled: false
    WM/MediaIsMovie : false
    WM/MediaIsPremiere: false
    WM/MediaIsFinale: false
    WM/MediaIsSAP   : false
    WM/MediaIsSport : false
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: false
    WM/WMRVEncodeTime: 2011-05-14 17:31:10
    WM/WMRVSeriesUID: !GenericSeries!Doctor Who
    WM/WMRVServiceID: !DVBLinkService!37780000
    WM/WMRVProgramID: !MCProgram!8162774324643977!dvblogiccppplugin:2:2050:6941!1305394200
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 420
    WM/WMRVOriginalSoftPostPadding: 180
    WM/WMRVHardPrePadding: -300
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: true
    Duration        : 27526611328
    WM/WMRVEndTime  : 2011-05-14 18:17:03
    WM/WMRVBitrate  : 8.596867
    WM/WMRVKeepUntil: -1
    WM/WMRVActualSoftPrePadding: 229
    WM/WMRVActualSoftPostPadding: -176
    WM/WMRVContentProtected: false
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationSpan: 9223372036854775807
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : false
    encoder         : Lavf54.5.100
    Stream #0:0: Video: mpeg2video, yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:3 -> #0:0 (h264 -> mpeg2video)
Press [q] to stop, [?] for help
[h264 @ 03eea060] reference picture missing during reorder
[h264 @ 03eea060] Missing reference picture
[h264 @ 03eea060] decode_slice_header error
[h264 @ 03eea060] reference picture missing during reorder
[h264 @ 03eea060] Missing reference picture
[h264 @ 03eea060] decode_slice_header error
[h264 @ 03eea060] reference picture missing during reorder
[h264 @ 03eea060] Missing reference picture
[h264 @ 03eea060] decode_slice_header error
[h264 @ 03eea060] reference picture missing during reorder
[h264 @ 03eea060] Missing reference picture
[h264 @ 03eea060] decode_slice_header error
[h264 @ 03eea060] reference picture missing during reorder
[h264 @ 03eea060] Missing reference picture
[h264 @ 03eea060] decode_slice_header error
[h264 @ 03eea060] reference picture missing during reorder
[h264 @ 03eea060] Missing reference picture
[h264 @ 03eea060] decode_slice_header error
[h264 @ 03eea060] concealing 6120 DC, 6120 AC, 6120 MV errors
[h264 @ 03d38020] reference picture missing during reorder
[h264 @ 03d38020] Missing reference picture
    Last message repeated 1 times
    Last message repeated 1 times
[h264 @ 03f4b960] mmco: unref short failure
[h264 @ 03d38020] reference picture missing during reorder
[h264 @ 03d38020] Missing reference picture
    Last message repeated 1 times
[h264 @ 03d38020] reference picture missing during reorder
[h264 @ 03d38020] Missing reference picture
    Last message repeated 1 times
[h264 @ 03d38020] reference picture missing during reorder
[h264 @ 03d38020] Missing reference picture
    Last message repeated 1 times
[h264 @ 03d38020] reference picture missing during reorder
[h264 @ 03d38020] Missing reference picture
    Last message repeated 1 times
[h264 @ 03d38020] reference picture missing during reorder
[h264 @ 03d38020] Missing reference picture
    Last message repeated 1 times
Reference 2 >= 2 49 q=0.0 size=  109777kB time=00:00:57.28 bitrate=15700.0kbits/s dup=36 drop=0
[h264 @ 03782b40] error while decoding MB 15 36, bytestream (-10)
[h264 @ 03782b40] concealing 2880 DC, 2880 AC, 2880 MV errors
frame= 1445 fps= 49 q=0.0 Lsize=  111011kB time=00:00:57.76 bitrate=15744.5kbits/s dup=38 drop=0
video:102803kB audio:0kB global headers:0kB muxing overhead 7.984103%

in reply to:  10 comment:11 by Carl Eugen Hoyos, 13 years ago

Replying to ramitbhalla:

Mostly unrelated: Please note that -sameq does not do what you may expect and it is a bad choice when transcoding from h264 to an earlier mpeg codec (but it is a very good choice for a test).

  1. How do you know what frame rate to choose? Why 25 and not 30 or 1001/1000 etc?

I chose 25fps because the input is 25fps.

  1. I'm still getting the duplicated frames error (see below)

There is no error about duplicated frames, the reason for the information may be that video starts later than audio, do I remember correctly that the number is already appearing at the very beginning of the transcoding, not increasing later?

comment:12 by ramitb, 13 years ago

2 questions:

  1. What should I use place of -sameq to preserve the original quality when moving from h.264 to mpeg2?
  2. HOW did you know the input was 25 fps?? I didn't see anything in the output that said 25 fps - what am I missing?

Thanks.

in reply to:  12 comment:13 by Carl Eugen Hoyos, 13 years ago

Replying to ramitbhalla:

  1. What should I use place of -sameq to preserve the original quality when moving from h.264 to mpeg2?

I may be wrong but I don't think it is possible.
Allow me to repeat that -sameq never means same quality, it means same quantiser.

  1. HOW did you know the input was 25 fps?

I may have guessed or tried, but looking at the output you posted, I believe BBC always sends 25fps (as do all European TV providers).

comment:14 by ramitb, 13 years ago

:) - okay lucky guess. I did a little research, I ran the file through MediaInfo. It returned the frame rate as 25.

The question is why is FFMPEG reporting it as 50? Should I open a separate ticket for this?

in reply to:  14 comment:15 by Carl Eugen Hoyos, 13 years ago

Replying to ramitbhalla:

The question is why is FFMPEG reporting it as 50? Should I open a separate ticket for this?

Only if you have any indication that this is not the same problem as in ticket #1065.

comment:16 by ramitb, 13 years ago

Sounds similar - can I tag the current file and info/output to the same ticket?

comment:17 by ramitb, 12 years ago

Setting the frame rate doesn't appear to solve the problem. I'm attaching a dvr-ms file (this is one cut sample, others are also facing similar issues).

As you can see from the output it keeps dropping the frames. I've tried different settings with -r 24, -r 25, -r 30, -r 50, -r 60, -r 30*1000/1001, -r 60*1000/1001, -r 25*1000/1001 and none of them seem to work, it still leads to the same issues of dropping frames and the video stutters when played back.

Any idea why this is happening?

COMMAND:

ffmpeg -i "Test3.dvr-ms" -an -vcodec mpeg2video -sameq test.ts

OUTPUT:

ffmpeg version N-40824-g31dfe20 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 19 2012 00:45:59 with gcc 4.6.3
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enab
le-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschro
edinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 53.100 / 51. 53.100
  libavcodec     54. 21.101 / 54. 21.101
  libavformat    54.  5.100 / 54.  5.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 74.101 /  2. 74.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 12.100 /  0. 12.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, asf, from 'Test3.dvr-ms':
  Metadata:
    DVR Index Granularity: 500
    WM/SubTitleDescription: Journeying south to Myanmar, Luke uncovers the little known foods and flavours of the former
 capital, Yangon. Here he begins his culinary education by learning the art of making the famous Mohinga.
    genre           : Documentary;Other Documentaries
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: SBS HD
    service_name    : SBS HD
    WM/MediaNetworkAffiliation: SBS HD
    WM/MediaOriginalChannel: 30
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
    WM/MediaOriginalRunTime: 1844674
    WM/MediaIsStereo: 0
    WM/MediaIsRepeat: 0
    WM/MediaIsLive  : 0
    WM/MediaIsTape  : 0
    WM/MediaIsDelay : 0
    WM/MediaIsSubtitled: 0
    WM/MediaIsMovie : 0
    WM/MediaIsPremiere: 0
    WM/MediaIsFinale: 0
    WM/MediaIsSAP   : 0
    WM/MediaIsSport : 0
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: 0
    WM/WMRVEncodeTime: 6803286
    WM/WMRVSeriesUID: !GenericSeries!Luke Nguyen's Greater Mekong
    WM/WMRVServiceID: !Generated!2de313550cf54622bf3c9ccd1105c2db
    WM/WMRVRequestID: 184
    WM/WMRVScheduleItemID: 184
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 0
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVHardPrePadding: 184
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: 0
    WM/WMRVDTVContent: 1
    WM/WMRVHDContent: 0
    WM/WMRVEndTime  : 1844674
    WM/WMRVBitrate  : 1844674
    WM/WMRVKeepUntil: 184
    WM/WMRVActualSoftPrePadding: 0
    WM/WMRVActualSoftPostPadding: 0
    WM/WMRVContentProtected: 0
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationDate: 1844674
    WM/WMRVExpirationSpan: 1844674
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : 0
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 198
    WM/MediaThumbStride: 105
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 9
    WM/MediaThumbRatingLevel: 9
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 1970874
    WM/MediaThumbType: 3
    WMFSDKVersion   : 12.0.7601.17514
    WMFSDKNeeded    : 0.0.0.0000
    VBR Peak        : 368
    IsVBR           : 1
    title           : Luke Nguyen's Greater Mekong
  Duration: 00:04:59.84, start: 0.200000, bitrate: 55 kb/s
    Stream #0:0: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0:1: Video: mpeg2video (Main) (DVR  / 0x20525644), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 90000 kb/s, 50 fps,
 50 tbr, 1k tbn, 100 tbc
[buffer @ 030f2460] w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:flags=2
[buffersink @ 0200ff60] No opaque field provided
[mpegts @ 030f1e20] muxrate VBR, pcr every 5 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'test.ts':
  Metadata:
    DVR Index Granularity: 500
    WM/SubTitleDescription: Journeying south to Myanmar, Luke uncovers the little known foods and flavours of the former
 capital, Yangon. Here he begins his culinary education by learning the art of making the famous Mohinga.
    genre           : Documentary;Other Documentaries
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: SBS HD
    service_name    : SBS HD
    WM/MediaNetworkAffiliation: SBS HD
    WM/MediaOriginalChannel: 30
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
    WM/MediaOriginalRunTime: 1844674
    WM/MediaIsStereo: 0
    WM/MediaIsRepeat: 0
    WM/MediaIsLive  : 0
    WM/MediaIsTape  : 0
    WM/MediaIsDelay : 0
    WM/MediaIsSubtitled: 0
    WM/MediaIsMovie : 0
    WM/MediaIsPremiere: 0
    WM/MediaIsFinale: 0
    WM/MediaIsSAP   : 0
    WM/MediaIsSport : 0
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: 0
    WM/WMRVEncodeTime: 6803286
    WM/WMRVSeriesUID: !GenericSeries!Luke Nguyen's Greater Mekong
    WM/WMRVServiceID: !Generated!2de313550cf54622bf3c9ccd1105c2db
    WM/WMRVRequestID: 184
    WM/WMRVScheduleItemID: 184
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 0
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVHardPrePadding: 184
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: 0
    WM/WMRVDTVContent: 1
    WM/WMRVHDContent: 0
    WM/WMRVEndTime  : 1844674
    WM/WMRVBitrate  : 1844674
    WM/WMRVKeepUntil: 184
    WM/WMRVActualSoftPrePadding: 0
    WM/WMRVActualSoftPostPadding: 0
    WM/WMRVContentProtected: 0
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationDate: 1844674
    WM/WMRVExpirationSpan: 1844674
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : 0
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 198
    WM/MediaThumbStride: 105
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 9
    WM/MediaThumbRatingLevel: 9
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 1970874
    WM/MediaThumbType: 3
    WMFSDKVersion   : 12.0.7601.17514
    WMFSDKNeeded    : 0.0.0.0000
    VBR Peak        : 368
    IsVBR           : 1
    title           : Luke Nguyen's Greater Mekong
    encoder         : Lavf54.5.100
    Stream #0:0: Video: mpeg2video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 50 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (mpeg2video -> mpeg2video)
Press [q] to stop, [?] for help
DTS 60, next:100000 st:1 invalid dropping
PTS 60, next:100000 invalid dropping st:1
DTS 140, next:180000 st:1 invalid dropping
PTS 140, next:180000 invalid dropping st:1
DTS 180, next:240000 st:1 invalid dropping
PTS 180, next:240000 invalid dropping st:1
DTS 200, next:260000 st:1 invalid dropping
PTS 200, next:260000 invalid dropping st:1
DTS 240, next:300000 st:1 invalid dropping
PTS 240, next:300000 invalid dropping st:1
DTS 260, next:320000 st:1 invalid dropping
PTS 260, next:320000 invalid dropping st:1
DTS 300, next:360000 st:1 invalid dropping
PTS 300, next:360000 invalid dropping st:1
DTS 320, next:380000 st:1 invalid dropping
PTS 320, next:380000 invalid dropping st:1
DTS 360, next:420000 st:1 invalid dropping
PTS 360, next:420000 invalid dropping st:1
DTS 380, next:440000 st:1 invalid dropping
PTS 380, next:440000 invalid dropping st:1
DTS 420, next:480000 st:1 invalid dropping
PTS 420, next:480000 invalid dropping st:1
DTS 440, next:500000 st:1 invalid dropping
PTS 440, next:500000 invalid dropping st:1
DTS 480, next:540000 st:1 invalid dropping
PTS 480, next:540000 invalid dropping st:1
DTS 500, next:560000 st:1 invalid dropping
PTS 500, next:560000 invalid dropping st:1
DTS 540, next:600000 st:1 invalid droppingtime=00:00:00.54 bitrate=11527.9kbits/s dup=3 drop=0
PTS 540, next:600000 invalid dropping st:1
DTS 560, next:620000 st:1 invalid dropping
PTS 560, next:620000 invalid dropping st:1
DTS 600, next:660000 st:1 invalid dropping
PTS 600, next:660000 invalid dropping st:1
DTS 620, next:680000 st:1 invalid dropping
PTS 620, next:680000 invalid dropping st:1
DTS 660, next:720000 st:1 invalid dropping
PTS 660, next:720000 invalid dropping st:1
DTS 680, next:740000 st:1 invalid dropping
PTS 680, next:740000 invalid dropping st:1
DTS 720, next:780000 st:1 invalid dropping
PTS 720, next:780000 invalid dropping st:1
DTS 740, next:800000 st:1 invalid dropping
PTS 740, next:800000 invalid dropping st:1
DTS 780, next:840000 st:1 invalid dropping
PTS 780, next:840000 invalid dropping st:1
DTS 800, next:860000 st:1 invalid dropping
PTS 800, next:860000 invalid dropping st:1
DTS 840, next:900000 st:1 invalid dropping
PTS 840, next:900000 invalid dropping st:1
DTS 860, next:920000 st:1 invalid dropping
PTS 860, next:920000 invalid dropping st:1
DTS 900, next:960000 st:1 invalid dropping
PTS 900, next:960000 invalid dropping st:1
DTS 920, next:980000 st:1 invalid dropping
PTS 920, next:980000 invalid dropping st:1
DTS 960, next:1020000 st:1 invalid dropping
PTS 960, next:1020000 invalid dropping st:1
DTS 980, next:1040000 st:1 invalid dropping
PTS 980, next:1040000 invalid dropping st:1
DTS 1020, next:1080000 st:1 invalid dropping
PTS 1020, next:1080000 invalid dropping st:1
DTS 1040, next:1100000 st:1 invalid dropping
PTS 1040, next:1100000 invalid dropping st:1
DTS 1080, next:1140000 st:1 invalid droppingme=00:00:01.08 bitrate=12292.4kbits/s dup=3 drop=0
PTS 1080, next:1140000 invalid dropping st:1
DTS 1100, next:1160000 st:1 invalid dropping
PTS 1100, next:1160000 invalid dropping st:1
DTS 1140, next:1200000 st:1 invalid dropping
PTS 1140, next:1200000 invalid dropping st:1
DTS 1160, next:1220000 st:1 invalid dropping
PTS 1160, next:1220000 invalid dropping st:1
DTS 1200, next:1260000 st:1 invalid dropping
PTS 1200, next:1260000 invalid dropping st:1
DTS 1220, next:1280000 st:1 invalid dropping
PTS 1220, next:1280000 invalid dropping st:1
DTS 1260, next:1320000 st:1 invalid dropping
PTS 1260, next:1320000 invalid dropping st:1
DTS 1280, next:1340000 st:1 invalid dropping
PTS 1280, next:1340000 invalid dropping st:1
DTS 1320, next:1380000 st:1 invalid dropping
PTS 1320, next:1380000 invalid dropping st:1
DTS 1340, next:1400000 st:1 invalid dropping
PTS 1340, next:1400000 invalid dropping st:1
DTS 1380, next:1440000 st:1 invalid dropping
PTS 1380, next:1440000 invalid dropping st:1
DTS 1400, next:1460000 st:1 invalid dropping
PTS 1400, next:1460000 invalid dropping st:1
DTS 1440, next:1500000 st:1 invalid dropping
PTS 1440, next:1500000 invalid dropping st:1
DTS 1460, next:1520000 st:1 invalid dropping
PTS 1460, next:1520000 invalid dropping st:1
[mpeg2video @ 01f6fae0] ac-tex damaged at 11 32
[mpeg2video @ 01f6fae0] Warning MVs not available
[mpeg2video @ 01f6fae0] concealing 1040 DC, 1040 AC, 1040 MV errors
frame=   79 fps= 54 q=0.0 Lsize=    2378kB time=00:00:01.56 bitrate=12489.9kbits/s dup=3 drop=0
video:2197kB audio:0kB global headers:0kB muxing overhead 8.281113%

by ramitb, 12 years ago

Attachment: Test3.dvr-ms added

in reply to:  17 comment:18 by Carl Eugen Hoyos, 12 years ago

Replying to ramitbhalla:

As you can see from the output it keeps dropping the frames. I've tried different settings with -r 24, -r 25

But for some inexplicable reason you preferred not to present command line together with complete, uncut console output, instead you posted a command line that looks very similar to the original command line (and you still didn't tell me if the problem disappears if you significantly reduce the resolution or playback with half speed which would prove my original suspicion).

comment:19 by ramitb, 12 years ago

  1. Yes tried with a lower resolution (1024x768 - the lowest possible) and output video is still stuttering.
  1. I gave the basic commmand line and issue, here is the one with the rate adjustment and the output. This is happening with all the DVR-MS files I have.

COMMAND:

ffmpeg -i "Test3.dvr-ms" -an -vcodec mpeg2video -sameq -r 25 test.ts

OUTPUT:

ffmpeg version N-40824-g31dfe20 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 19 2012 00:45:59 with gcc 4.6.3
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enab
le-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschro
edinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 53.100 / 51. 53.100
  libavcodec     54. 21.101 / 54. 21.101
  libavformat    54.  5.100 / 54.  5.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 74.101 /  2. 74.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 12.100 /  0. 12.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, asf, from 'Test3.dvr-ms':
  Metadata:
    DVR Index Granularity: 500
    WM/SubTitleDescription: Journeying south to Myanmar, Luke uncovers the little known foods and flavours of the former
 capital, Yangon. Here he begins his culinary education by learning the art of making the famous Mohinga.
    genre           : Documentary;Other Documentaries
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: SBS HD
    service_name    : SBS HD
    WM/MediaNetworkAffiliation: SBS HD
    WM/MediaOriginalChannel: 30
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
    WM/MediaOriginalRunTime: 1844674
    WM/MediaIsStereo: 0
    WM/MediaIsRepeat: 0
    WM/MediaIsLive  : 0
    WM/MediaIsTape  : 0
    WM/MediaIsDelay : 0
    WM/MediaIsSubtitled: 0
    WM/MediaIsMovie : 0
    WM/MediaIsPremiere: 0
    WM/MediaIsFinale: 0
    WM/MediaIsSAP   : 0
    WM/MediaIsSport : 0
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: 0
    WM/WMRVEncodeTime: 6803286
    WM/WMRVSeriesUID: !GenericSeries!Luke Nguyen's Greater Mekong
    WM/WMRVServiceID: !Generated!2de313550cf54622bf3c9ccd1105c2db
    WM/WMRVRequestID: 184
    WM/WMRVScheduleItemID: 184
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 0
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVHardPrePadding: 184
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: 0
    WM/WMRVDTVContent: 1
    WM/WMRVHDContent: 0
    WM/WMRVEndTime  : 1844674
    WM/WMRVBitrate  : 1844674
    WM/WMRVKeepUntil: 184
    WM/WMRVActualSoftPrePadding: 0
    WM/WMRVActualSoftPostPadding: 0
    WM/WMRVContentProtected: 0
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationDate: 1844674
    WM/WMRVExpirationSpan: 1844674
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : 0
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 198
    WM/MediaThumbStride: 105
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 9
    WM/MediaThumbRatingLevel: 9
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 1970874
    WM/MediaThumbType: 3
    WMFSDKVersion   : 12.0.7601.17514
    WMFSDKNeeded    : 0.0.0.0000
    VBR Peak        : 368
    IsVBR           : 1
    title           : Luke Nguyen's Greater Mekong
  Duration: 00:04:59.84, start: 0.200000, bitrate: 55 kb/s
    Stream #0:0: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0:1: Video: mpeg2video (Main) (DVR  / 0x20525644), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 90000 kb/s, 50 fps,
 50 tbr, 1k tbn, 100 tbc
[buffer @ 03119020] w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:flags=2
[buffersink @ 030976e0] No opaque field provided
[mpegts @ 030e2da0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'test.ts':
  Metadata:
    DVR Index Granularity: 500
    WM/SubTitleDescription: Journeying south to Myanmar, Luke uncovers the little known foods and flavours of the former
 capital, Yangon. Here he begins his culinary education by learning the art of making the famous Mohinga.
    genre           : Documentary;Other Documentaries
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: SBS HD
    service_name    : SBS HD
    WM/MediaNetworkAffiliation: SBS HD
    WM/MediaOriginalChannel: 30
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
    WM/MediaOriginalRunTime: 1844674
    WM/MediaIsStereo: 0
    WM/MediaIsRepeat: 0
    WM/MediaIsLive  : 0
    WM/MediaIsTape  : 0
    WM/MediaIsDelay : 0
    WM/MediaIsSubtitled: 0
    WM/MediaIsMovie : 0
    WM/MediaIsPremiere: 0
    WM/MediaIsFinale: 0
    WM/MediaIsSAP   : 0
    WM/MediaIsSport : 0
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: 0
    WM/WMRVEncodeTime: 6803286
    WM/WMRVSeriesUID: !GenericSeries!Luke Nguyen's Greater Mekong
    WM/WMRVServiceID: !Generated!2de313550cf54622bf3c9ccd1105c2db
    WM/WMRVRequestID: 184
    WM/WMRVScheduleItemID: 184
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 0
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVHardPrePadding: 184
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: 0
    WM/WMRVDTVContent: 1
    WM/WMRVHDContent: 0
    WM/WMRVEndTime  : 1844674
    WM/WMRVBitrate  : 1844674
    WM/WMRVKeepUntil: 184
    WM/WMRVActualSoftPrePadding: 0
    WM/WMRVActualSoftPostPadding: 0
    WM/WMRVContentProtected: 0
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationDate: 1844674
    WM/WMRVExpirationSpan: 1844674
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : 0
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 198
    WM/MediaThumbStride: 105
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 9
    WM/MediaThumbRatingLevel: 9
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 1970874
    WM/MediaThumbType: 3
    WMFSDKVersion   : 12.0.7601.17514
    WMFSDKNeeded    : 0.0.0.0000
    VBR Peak        : 368
    IsVBR           : 1
    title           : Luke Nguyen's Greater Mekong
    encoder         : Lavf54.5.100
    Stream #0:0: Video: mpeg2video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (mpeg2video -> mpeg2video)
Press [q] to stop, [?] for help
DTS 60, next:100000 st:1 invalid dropping
PTS 60, next:100000 invalid dropping st:1
DTS 140, next:180000 st:1 invalid dropping
PTS 140, next:180000 invalid dropping st:1
DTS 180, next:240000 st:1 invalid dropping
PTS 180, next:240000 invalid dropping st:1
DTS 200, next:260000 st:1 invalid dropping
PTS 200, next:260000 invalid dropping st:1
DTS 240, next:300000 st:1 invalid dropping
PTS 240, next:300000 invalid dropping st:1
DTS 260, next:320000 st:1 invalid dropping
PTS 260, next:320000 invalid dropping st:1
DTS 300, next:360000 st:1 invalid dropping
PTS 300, next:360000 invalid dropping st:1
DTS 320, next:380000 st:1 invalid dropping
PTS 320, next:380000 invalid dropping st:1
DTS 360, next:420000 st:1 invalid dropping
PTS 360, next:420000 invalid dropping st:1
DTS 380, next:440000 st:1 invalid dropping
PTS 380, next:440000 invalid dropping st:1
DTS 420, next:480000 st:1 invalid dropping
PTS 420, next:480000 invalid dropping st:1
DTS 440, next:500000 st:1 invalid dropping
PTS 440, next:500000 invalid dropping st:1
DTS 480, next:540000 st:1 invalid dropping
PTS 480, next:540000 invalid dropping st:1
DTS 500, next:560000 st:1 invalid dropping
PTS 500, next:560000 invalid dropping st:1
DTS 540, next:600000 st:1 invalid dropping
PTS 540, next:600000 invalid dropping st:1
DTS 560, next:620000 st:1 invalid dropping
PTS 560, next:620000 invalid dropping st:1
DTS 600, next:660000 st:1 invalid dropping
PTS 600, next:660000 invalid dropping st:1
DTS 620, next:680000 st:1 invalid dropping
PTS 620, next:680000 invalid dropping st:1
DTS 660, next:720000 st:1 invalid dropping
PTS 660, next:720000 invalid dropping st:1
DTS 680, next:740000 st:1 invalid dropping
PTS 680, next:740000 invalid dropping st:1
DTS 720, next:780000 st:1 invalid dropping
PTS 720, next:780000 invalid dropping st:1
DTS 740, next:800000 st:1 invalid dropping
PTS 740, next:800000 invalid dropping st:1
DTS 780, next:840000 st:1 invalid dropping
PTS 780, next:840000 invalid dropping st:1
DTS 800, next:860000 st:1 invalid dropping
PTS 800, next:860000 invalid dropping st:1
DTS 840, next:900000 st:1 invalid droppingtime=00:00:00.88 bitrate=7393.5kbits/s dup=1 drop=18
PTS 840, next:900000 invalid dropping st:1
DTS 860, next:920000 st:1 invalid dropping
PTS 860, next:920000 invalid dropping st:1
DTS 900, next:960000 st:1 invalid dropping
PTS 900, next:960000 invalid dropping st:1
DTS 920, next:980000 st:1 invalid dropping
PTS 920, next:980000 invalid dropping st:1
DTS 960, next:1020000 st:1 invalid dropping
PTS 960, next:1020000 invalid dropping st:1
DTS 980, next:1040000 st:1 invalid dropping
PTS 980, next:1040000 invalid dropping st:1
DTS 1020, next:1080000 st:1 invalid dropping
PTS 1020, next:1080000 invalid dropping st:1
DTS 1040, next:1100000 st:1 invalid dropping
PTS 1040, next:1100000 invalid dropping st:1
DTS 1080, next:1140000 st:1 invalid dropping
PTS 1080, next:1140000 invalid dropping st:1
DTS 1100, next:1160000 st:1 invalid dropping
PTS 1100, next:1160000 invalid dropping st:1
DTS 1140, next:1200000 st:1 invalid dropping
PTS 1140, next:1200000 invalid dropping st:1
DTS 1160, next:1220000 st:1 invalid dropping
PTS 1160, next:1220000 invalid dropping st:1
DTS 1200, next:1260000 st:1 invalid dropping
PTS 1200, next:1260000 invalid dropping st:1
DTS 1220, next:1280000 st:1 invalid dropping
PTS 1220, next:1280000 invalid dropping st:1
DTS 1260, next:1320000 st:1 invalid dropping
PTS 1260, next:1320000 invalid dropping st:1
DTS 1280, next:1340000 st:1 invalid dropping
PTS 1280, next:1340000 invalid dropping st:1
DTS 1320, next:1380000 st:1 invalid dropping
PTS 1320, next:1380000 invalid dropping st:1
DTS 1340, next:1400000 st:1 invalid dropping
PTS 1340, next:1400000 invalid dropping st:1
DTS 1380, next:1440000 st:1 invalid dropping
PTS 1380, next:1440000 invalid dropping st:1
DTS 1400, next:1460000 st:1 invalid dropping
PTS 1400, next:1460000 invalid dropping st:1
DTS 1440, next:1500000 st:1 invalid dropping
PTS 1440, next:1500000 invalid dropping st:1
DTS 1460, next:1520000 st:1 invalid dropping
PTS 1460, next:1520000 invalid dropping st:1
[mpeg2video @ 02bbfa40] ac-tex damaged at 11 32
[mpeg2video @ 02bbfa40] Warning MVs not available
[mpeg2video @ 02bbfa40] concealing 1040 DC, 1040 AC, 1040 MV errors
frame=   42 fps=0.0 q=0.0 Lsize=    1617kB time=00:00:01.64 bitrate=8074.8kbits/s dup=1 drop=35
video:1494kB audio:0kB global headers:0kB muxing overhead 8.186854%

in reply to:  19 comment:20 by Carl Eugen Hoyos, 12 years ago

Replying to ramitbhalla:

ffmpeg -i "Test3.dvr-ms" -an -vcodec mpeg2video -sameq -r 25 test.ts

Why are you not using test1.wtv?

comment:21 by ramitb, 12 years ago

I'm trying to replicate the issues across a variety of files (real world, the users use FFMPEG to convert WTV, DVRMS and TS files) to see if the proposed fix works. The -r works great for the WTV file but it doesn't seem to work fro DVR-MS.
Am trying to figure out a long term fix/solution.

in reply to:  19 comment:22 by Carl Eugen Hoyos, 12 years ago

Replying to ramitbhalla:

  1. Yes tried with a lower resolution (1024x768 - the lowest possible) and output video is still stuttering.

What do you mean with "lowest possible"?
I tried 320x180 and I find the video still very watchable at least for testing and I do not see any stuttering, it also works fine with 640x360. I do see stuttering with higher resolutions because my current setup cannot play 60fps movies with (for example) 960x540 or higher resolutions.

$ ffmpeg -i Test2.ts -s 320x180 -qscale 2 -ac 2 out.ts
ffmpeg version N-41327-g02827a3 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun  5 2012 14:33:36 with gcc 4.3.2
  configuration: --cc=/usr/local/gcc-4.3.2/bin/gcc --enable-gpl --enable-libopenjpeg --enable-libvorbis --enable-libspeex --enable-libmp3lame --enable-libtheora --extra-ldflags=-lm --enable-libvpx --enable-libxavs
  libavutil      51. 56.100 / 51. 56.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 78.100 /  2. 78.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mpeg2video @ 0x90143c0] mpeg_decode_postinit() failure
    Last message repeated 19 times
[mpegts @ 0x90123c0] PES packet size mismatch
Input #0, mpegts, from 'Test2.ts':
  Duration: 00:00:51.70, start: 30981.471378, bitrate: 9754 kb/s
  Program 1009
  No Program
    Stream #0:0[0x7c0]: Video: mpeg2video (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 17782 kb/s, 64.74 fps, 59.94 tbr, 90k tbn, 119.88 tbc
    Stream #0:1[0x7c1]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
Please use -q:a or -q:v, -qscale is ambiguous
[buffer @ 0x9018e60] w:1280 h:720 pixfmt:yuv420p tb:1/90000 sar:1/1 sws_param:flags=2
[ffmpeg_buffersink @ 0x9019640] No opaque field provided
[scale @ 0x90161c0] w:1280 h:720 fmt:yuv420p sar:1/1 -> w:320 h:180 fmt:yuv420p sar:1/1 flags:0x4
[aformat @ 0x9082be0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'aformat'
[auto-inserted resampler 0 @ 0x9083660] chl:5.1(side) fmt:s16 r:48000Hz -> chl:stereo fmt:s16 r:48000Hz
[mpegts @ 0x9019bc0] muxrate VBR, pcr every 5 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'out.ts':
  Metadata:
    encoder         : Lavf54.6.101
    Stream #0:0: Video: mpeg2video, yuv420p, 320x180 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 59.94 tbc
    Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> mpeg2video)
  Stream #0:1 -> #0:1 (ac3 -> mp2)
Press [q] to stop, [?] for help
frame= 3055 fps= 82 q=2.0 Lsize=   20399kB time=00:00:50.43 bitrate=3313.1kbits/s dup=50 drop=0   
video:17737kB audio:788kB global headers:0kB muxing overhead 10.111193%

comment:23 by ramitb, 12 years ago

By lowest possible I mean the lowest possible supported on my workstation (iCore 7 + 4GB RAM + Nvidia Quadro 3700M with 1GB VRAM). i didn't realize you were changing the resolution while encoding.
Anyways I'm able to play 1080p video's with 60Hz (Blu Ray) on my workstation very smoothly so I don't think it's a horsepower issue.

Any ideas why the DVRMS files dropping packets and creating stuttering videos (WTV I understood were issues with the frame rate).

in reply to:  23 comment:24 by Carl Eugen Hoyos, 12 years ago

Replying to ramitbhalla:

By lowest possible I mean the lowest possible supported on my workstation (iCore 7 + 4GB RAM + Nvidia Quadro 3700M with 1GB VRAM).

You do realize that only the screen counts (my PIII 500 with <1GB does support such high fps in HD because of the screen connected) and you did not describe it?

Anyways I'm able to play 1080p video's with 60Hz (Blu Ray) on my workstation very smoothly so I don't think it's a horsepower issue.

1080@60Hz is not defined for Bluray.

Any ideas why the DVRMS files dropping packets and creating stuttering videos (WTV I understood were issues with the frame rate).

I don't think FFmpeg creates stuttering videos (at least I haven't seen any indication yet).

comment:25 by ramitb, 12 years ago

The screen is a 1080p 42 inch LED Tv that's hooked up via HDMI. According to TV, it's reporting a playback of 1080p @ 60Hz, that's what I'm reporting here.

The real crux of the issue is why are they packets being dropped. Is it something that I'm doing wrong in the command line (as in the WTV case, actually that was an issue of FFMPEG getting a wrong frame rate for which I'll report the issue in a separate ticket/update the existing ticket) or is there an underlying issue with FFMPEG.

1st step is to curb the drop/dup packet, 2nd step would be to figure out what's really the source of the stutter - correct me if I'm wrong here.

in reply to:  25 comment:26 by Carl Eugen Hoyos, 12 years ago

Replying to ramitbhalla:

The real crux of the issue is why are they packets being dropped.

(Frames are being dropped, I am not sure what you mean with packets.)
Because audio starts later than video in your sample file.

Last edited 12 years ago by Carl Eugen Hoyos (previous) (diff)

comment:27 by ramitb, 12 years ago

Okay, so this is happening with many DVR-MS files. Any how to detect and fix/workaround this?

thanks

in reply to:  27 comment:28 by Carl Eugen Hoyos, 12 years ago

Replying to ramitbhalla:

Okay, so this is happening with many DVR-MS files. Any how to detect and fix/workaround this?

Workaround what? The frames are dropped / duplicated initially to get A/V sync, this is intended or do I miss something?

comment:29 by ramitb, 12 years ago

So you're saying that it's normal for FFMPEG to drop frames to get the AV in sync? I'm confused because this is happening with every DVRMS file (received from multiple users). how can every file be corrupted?

With the WTV you isolated the issue to wrong FPS which was corrected manually and it fixed the problem. With DVRMS files, i'm trying to figure out if FFMPEG is able to process the files correctly or not? If every DVRMS file is dropping frames then possibly something is wrong with FFMPEG.
Is my assumption correct?

Last edited 12 years ago by ramitb (previous) (diff)

in reply to:  29 comment:30 by Carl Eugen Hoyos, 12 years ago

Replying to ramitbhalla:

So you're saying that it's normal for FFMPEG to drop frames to get the AV in sync? I'm confused because this is happening with every DVRMS file (received from multiple users). how can every file be corrupted?

I did not want to imply that FFmpeg is dropping frames because the input file is corrupted. (Did I really write this?)

With the WTV you isolated the issue to wrong FPS which was corrected manually and it fixed the problem. With DVRMS files, i'm trying to figure out if FFMPEG is able to process the files correctly or not? If every DVRMS file is dropping frames then possibly something is wrong with FFMPEG.
Is my assumption correct?

I don't think so, and please note that setting the frame rate for Test1.wtv did not "fix" the "problem" you had namely initially dropping or duplicating frames.

comment:31 by ramitb, 12 years ago

Okay - help me understand this, is this a bug with FFMPEG?

  1. WTV - not being able to read the frame rate
  2. DVR-MS - dropping frames

if so, do I need open a separate tickets

If not, what's the resolution to this?

in reply to:  31 comment:32 by Carl Eugen Hoyos, 12 years ago

Replying to ramitbhalla:

Okay - help me understand this, is this a bug with FFMPEG?

  1. WTV - not being able to read the frame rate

Didn't you agree this looks similar to ticket #1065?

  1. DVR-MS - dropping frames

This ticket is about stuttering ts files on slow screens when encoding 60fps material, what does this have to do with dropped frames when encoding asf?

comment:33 by ramitb, 12 years ago

  1. Yes it is, I'll add my comments there
  2. i've opened a separate ticket for DVRMS files dropping frames.

Thanks, please mark this ticket as invalid.

comment:34 by Carl Eugen Hoyos, 12 years ago

Resolution: worksforme
Status: newclosed

I tested Test2.ts on faster hardware now (85Hz screen) and it plays fine as does the result of:

$ ffmpeg -i Test2.ts -ab 384k -acodec ac3 -sameq out.ts

Does the original file play fine for you but the re-encoded file not? (In that case this should be analysed further.) Please re-open if this is the case.

Test2.ts is ~60fps but was originally recorded as ~24fps afaict. In the future, there will hopefully be a filter that drops the duplicated frames, as a workaround you can use -r 24, -r 25 or -r 30 but the result will not be perfect.

comment:35 by ramitb, 12 years ago

Yes the original files do not have any problem playing with WMP, only the converted files are facing problems.

Thanks for teh additional info - again, for my knowledge, was there anything that told you the origianl FPS (24) or was it an educated guess?

Version 0, edited 12 years ago by ramitb (next)
Note: See TracTickets for help on using tickets.