[FFmpeg-user] Wrong PTS calculated for wtv format

anshul anshul.ffmpeg at gmail.com
Wed Jul 16 08:52:55 CEST 2014


Hi

I am parsing wtv video with following command

*ffprobe and stream info*
[anshul at daku_daddy vlc-2.1.4]$ ffprobe ~/test_videos/8.wtv
ffprobe version N-64076-g1d54a6c Copyright (c) 2007-2014 the FFmpeg 
developers
   built on Jun 20 2014 14:30:36 with gcc 4.8 (SUSE Linux)
   configuration: --enable-gpl --enable-libx264 --disable-optimizations
   libavutil      52. 89.100 / 52. 89.100
   libavcodec     55. 67.100 / 55. 67.100
   libavformat    55. 44.100 / 55. 44.100
   libavdevice    55. 13.101 / 55. 13.101
   libavfilter     4.  8.100 /  4.  8.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 19.100 /  0. 19.100
   libpostproc    52.  3.100 / 52.  3.100
[wtv @ 0x9f533a0] truncated file
[mpeg2video @ 0x9f55360] Invalid frame dimensions 0x0.
     Last message repeated 4 times
Input #0, wtv, from '/home/anshul/test_videos/8.wtv':
   Metadata:
     WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
     WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
     Title           : CSI-NY (TNT)
     WM/OriginalReleaseTime: 2012
     WM/MediaCredits : ;;;
     service_provider: TNTHD
     service_name    : Turner Network TV HD
     WM/MediaNetworkAffiliation: Satellite
     WM/MediaOriginalChannel: 245
     WM/MediaOriginalChannelSubNumber: 0
     WM/MediaOriginalBroadcastDateTime: 2012-10-23T04:00:00Z
     WM/MediaOriginalRunTime: 1932489651
     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: 2012-10-23 04:34:46
     WM/WMRVServiceID: !MCService!27819970
     WM/WMRVProgramID: !Generated!85250c4413084190a897bc2b35249bea
     WM/WMRVRequestID: 0
     WM/WMRVScheduleItemID: 0
     WM/WMRVQuality  : 3
     WM/WMRVOriginalSoftPrePadding: 103
     WM/WMRVOriginalSoftPostPadding: 0
     WM/WMRVHardPrePadding: 4294967193
     WM/WMRVHardPostPadding: 0
     WM/WMRVATSCContent: false
     WM/WMRVDTVContent: true
     WM/WMRVHDContent: false
     Duration        : 1949691516
     WM/WMRVEndTime  : 2012-10-23 04:38:01
     WM/WMRVBitrate  : 20.971520
     WM/WMRVKeepUntil: 4294967294
     WM/WMRVActualSoftPrePadding: 4294967293
     WM/WMRVActualSoftPostPadding: 1
     WM/WMRVContentProtected: true
     WM/WMRVContentProtectedPercent: 95
     WM/WMRVExpirationDate: 1901-12-13 20:45:52
     WM/WMRVExpirationSpan: 9223372036854775807
     WM/WMRVInBandRatingSystem: 255
     WM/WMRVInBandRatingLevel: 255
     WM/WMRVInBandRatingAttributes: 0
     WM/WMRVWatched  : false
     WM/MediaThumbWidth: 0
     WM/MediaThumbHeight: 0
     WM/MediaThumbStride: 0
     WM/MediaThumbRet: 4
     WM/MediaThumbRatingSystem: 255
     WM/MediaThumbRatingLevel: 255
     WM/MediaThumbRatingAttributes: 0
     WM/MediaThumbAspectRatioX: 2001089816
     WM/MediaThumbAspectRatioY: 0
     WM/MediaThumbTimeStamp: 4633405321944707173
   Duration: 00:03:12.66, start: 2.689973, bitrate: 7336 kb/s
     Stream #0:0[0x62]: Subtitle: eia_608
     Stream #0:1[0x63]: Video: mpeg2video (Main), yuv420p(tv), 720x480 
[SAR 8:9 DAR 4:3], max. 9000 kb/s, 29.97 fps, 29.97 tbr, 10000k tbn, 
59.94 tbc
     Stream #0:2[0x64]: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, 
stereo, s16p, 256 kb/s
Unsupported codec with id 1664495672 for input stream 0


When i use ffprobe -show_packets for same video, I get pts of all 
subtitle packet same
pts=1668330

I have put all files having same issue here 
<http://gsocdev.ccextractor.org/%7Ewillem/wtv/>
http://gsocdev.ccextractor.org/~willem/wtv/


-Anshul


More information about the ffmpeg-user mailing list