[FFmpeg-trac] #2398(undetermined:open): Bad timestamps for h264 wtv (was: Copy Encoder Produces Broken Output)

FFmpeg trac at avcodec.org
Tue Mar 26 09:24:30 CET 2013


#2398: Bad timestamps for h264 wtv
-------------------------------------+-------------------------------------
             Reporter:  dodgexander  |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  wtv h264     |               Resolution:
  dts                                |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * keywords:   => wtv h264 dts
 * status:  new => open
 * version:  unspecified => git-master
 * reproduced:  0 => 1


Comment:

 Sample uploaded to http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket2398/

 The input sample plays fine with WMP, if video gets remuxed with FFmpeg,
 the resulting file plays with visible stutter in WMP, this (probably)
 corresponds to the "invalid pts, clipping" messages. Reproducible both
 with and without audio.
 {{{
 $ ffmpeg -ss 5:00 -i Ticket\ 2398.wtv -vcodec copy -an -t 5 -map_metadata
 -1 out.ts
 ffmpeg version N-51295-gea4c99d Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Mar 25 2013 23:17:19 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --disable-indev=jack
   libavutil      52. 22.101 / 52. 22.101
   libavcodec     55.  1.100 / 55.  1.100
   libavformat    55.  0.100 / 55.  0.100
   libavdevice    55.  0.100 / 55.  0.100
   libavfilter     3. 48.102 /  3. 48.102
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 [wtv @ 0x2b8cf40] reported file length (0x90ca4974) exceeds number of
 available sectors (0x40000000)
 [wtv @ 0x2b8cf40] truncated file
     Last message repeated 1 times
 [h264 @ 0x2b8f560] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x2b8f560] non-existing PPS referenced
 [h264 @ 0x2b8f560] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x2b8f560] non-existing PPS 0 referenced
 [h264 @ 0x2b8f560] decode_slice_header error
 [h264 @ 0x2b8f560] non-existing PPS 0 referenced
 [h264 @ 0x2b8f560] decode_slice_header error
 [h264 @ 0x2b8f560] non-existing PPS 0 referenced
 [h264 @ 0x2b8f560] decode_slice_header error
 [h264 @ 0x2b8f560] non-existing PPS 0 referenced
 [h264 @ 0x2b8f560] decode_slice_header error
 [h264 @ 0x2b8f560] non-existing PPS 0 referenced
 [h264 @ 0x2b8f560] decode_slice_header error
 [h264 @ 0x2b8f560] non-existing PPS 0 referenced
 [h264 @ 0x2b8f560] decode_slice_header error
 [h264 @ 0x2b8f560] no frame!

 [...]

 [h264 @ 0x2b8f560] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x2b8f560] non-existing PPS referenced
 [h264 @ 0x2b8f560] non-existing SPS 0 referenced in buffering period
 [h264 @ 0x2b8f560] non-existing PPS 0 referenced
 [h264 @ 0x2b8f560] decode_slice_header error
 [h264 @ 0x2b8f560] non-existing PPS 0 referenced
 [h264 @ 0x2b8f560] decode_slice_header error
 [h264 @ 0x2b8f560] non-existing PPS 0 referenced
 [h264 @ 0x2b8f560] decode_slice_header error
 [h264 @ 0x2b8f560] non-existing PPS 0 referenced
 [h264 @ 0x2b8f560] decode_slice_header error
 [h264 @ 0x2b8f560] non-existing PPS 0 referenced
 [h264 @ 0x2b8f560] decode_slice_header error
 [h264 @ 0x2b8f560] non-existing PPS 0 referenced
 [h264 @ 0x2b8f560] decode_slice_header error
 [h264 @ 0x2b8f560] no frame!
 [h264 @ 0x2b8f560] mmco: unref short failure
     Last message repeated 2 times
 Input #0, wtv, from 'Ticket 2398.wtv':
   Metadata:
     WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
     WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
     Title           : The Football League Show
     WM/SubTitleDescription: Manish Bhasin presents the best of the action
 from the Football League. With the Championship taking a break, Leagues
 One and Two take centre stage. The focus is on the race for promotion to
 the Championship as Sheffield United meet Brentford at Bramall L
     genre           : Sports;Football
     WM/OriginalReleaseTime: 0
     WM/MediaCredits : ;;Manish Bhasin;
     service_provider: BBC One HD
     service_name    : BBC One HD
     WM/MediaOriginalChannel: 101
     WM/MediaOriginalChannelSubNumber: 0
     WM/MediaOriginalBroadcastDateTime: 2013-03-23T00:00:00Z
     WM/MediaOriginalRunTime: 23959271785
     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 : true
     WM/Provider     : MediaCenterDefault
     WM/VideoClosedCaptioning: false
     WM/WMRVEncodeTime: 2013-03-23 23:58:04
     WM/WMRVSeriesUID: !GenericSeries!The Football League Show
     WM/WMRVServiceID: !MCService!759242
     WM/WMRVProgramID: !MCProgram!50424839
     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: false
     Duration        : 23971198007
     WM/WMRVEndTime  : 2013-03-24 00:38:01
     WM/WMRVBitrate  : 8.109982
     WM/WMRVKeepUntil: -1
     WM/WMRVActualSoftPrePadding: 415
     WM/WMRVActualSoftPostPadding: 181
     WM/WMRVContentProtected: false
     WM/WMRVContentProtectedPercent: 0
     WM/WMRVExpirationDate: 9999-12-31 23:59:59
     WM/WMRVExpirationSpan: 9223372036854775807
     WM/WMRVInBandRatingSystem: 255
     WM/WMRVInBandRatingLevel: 255
     WM/WMRVInBandRatingAttributes: 0
     WM/WMRVWatched  : false
   Duration: 00:14:59.49, start: 2.048551, bitrate: 2797 kb/s
     Stream #0:0[0x21](eng): Subtitle: dvb_subtitle
     Stream #0:1[0x22](eng): Audio: aac_latm ([2][22][0][0] / 0x1602),
 48000 Hz, stereo, fltp (hearing impaired)
     Stream #0:2[0x23](eng): Audio: aac_latm ([2][22][0][0] / 0x1602),
 48000 Hz, 5.1, fltp
     Stream #0:3[0x24]: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR
 16:9], 25 fps, 25 tbr, 10000k tbn, 50 tbc
 Output #0, mpegts, to 'out.ts':
   Metadata:
     encoder         : Lavf55.0.100
     Stream #0:0: Video: h264, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9],
 q=2-31, 25 fps, 90k tbn, 25 tbc
 Stream mapping:
   Stream #0:3 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 [mpegts @ 0x2baf7e0] st:0 PTS: 85907 DTS: 85907 < 93108 invalid, clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 87707 DTS: 87707 < 93109 invalid, clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 82307 DTS: 82307 < 93110 invalid, clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 84107 DTS: 84107 < 93111 invalid, clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 89507 DTS: 89507 < 93112 invalid, clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 91307 DTS: 91307 < 93113 invalid, clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 96707 DTS: 96707 < 100308 invalid, clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 98507 DTS: 98507 < 100309 invalid, clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 197507 DTS: 197507 < 204708 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 199307 DTS: 199307 < 204709 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 193907 DTS: 193907 < 204710 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 195707 DTS: 195707 < 204711 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 201107 DTS: 201107 < 204712 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 202907 DTS: 202907 < 204713 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 208307 DTS: 208307 < 211908 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 210107 DTS: 210107 < 211909 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 226307 DTS: 226307 < 233508 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 228107 DTS: 228107 < 233509 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 222707 DTS: 222707 < 233510 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 224507 DTS: 224507 < 233511 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 229907 DTS: 229907 < 233512 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 231707 DTS: 231707 < 233513 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 237107 DTS: 237107 < 240708 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 238907 DTS: 238907 < 240709 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 255107 DTS: 255107 < 262308 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 256907 DTS: 256907 < 262309 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 251507 DTS: 251507 < 262310 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 253307 DTS: 253307 < 262311 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 258707 DTS: 258707 < 262312 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 260507 DTS: 260507 < 262313 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 265907 DTS: 265907 < 269508 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 267707 DTS: 267707 < 269509 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 283907 DTS: 283907 < 291108 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 285707 DTS: 285707 < 291109 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 280307 DTS: 280307 < 291110 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 282107 DTS: 282107 < 291111 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 287507 DTS: 287507 < 291112 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 289307 DTS: 289307 < 291113 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 305507 DTS: 305507 < 309108 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 307307 DTS: 307307 < 309109 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 319907 DTS: 319907 < 323508 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 321707 DTS: 321707 < 323509 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 334307 DTS: 334307 < 337908 invalid,
 clipping
 [mpegts @ 0x2baf7e0] st:0 PTS: 336107 DTS: 336107 < 337909 invalid,
 clipping
 frame=  215 fps=0.0 q=-1.0 Lsize=    7968kB time=00:00:05.03
 bitrate=12964.6kbits/s
 video:7377kB audio:0kB subtitle:0 global headers:0kB muxing overhead
 8.005957%
 }}}

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


More information about the FFmpeg-trac mailing list