[FFmpeg-trac] #3032(undetermined:open): ffmpeg fails to stream copy mpeg2 TS file with timestamp discontinuity

FFmpeg trac at avcodec.org
Sun Oct 13 08:45:51 CEST 2013


#3032: ffmpeg fails to stream copy mpeg2 TS file with timestamp discontinuity
-------------------------------------+-------------------------------------
             Reporter:  ramitbhalla  |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
  av_interleaved_write_frame mpegts  |               Blocked By:
  mpeg2video dts                     |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by ramitbhalla):

 I've uploaded one more sample file "Ticket #3032-2.wtv" which exhibits the
 same issue. When you stream copy audio and video it fails with the same
 message.


 {{{
 ffmpeg.2314Custom.exe -i "Ticket #3032-2.wtv" -an -sn -map 0:2 -vcodec
 copy -f
 mpegts test.ts
 ffmpeg version N-56896-ga927276 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Oct  5 2013 09:46:09 with gcc 4.8.0 (GCC)
   configuration: --arch=x86 --target-os=mingw32 --cross-
 prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin
 /i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264
 --enable-avisynth --enable-libxvid --enable-lib
 mp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-
 libvorbis --enable-libtheora --enable-libspeex --enabl
 e-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype
 --enable-libopus --disable-w32threads --enable-frei0r
  --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-
 libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable
 -libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc
 --enable-libschroedinger --enable-libvpx --enable-
 libilbc --enable-iconv --enable-libtwolame --extra-
 cflags=-DLIBTWOLAME_STATIC --enable-libmodplug --extra-libs=-lstdc++
 --enable-libzvbi --enable-libcaca
 --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32
 --enab
 le-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-
 libass --enable-libutvideo --enable-libbluray -
 -extra-cflags= --enable-nonfree --enable-libfdk-aac --enable-runtime-
 cpudetect
   libavutil      52. 46.100 / 52. 46.100
   libavcodec     55. 34.100 / 55. 34.100
   libavformat    55. 19.100 / 55. 19.100
   libavdevice    55.  3.100 / 55.  3.100
   libavfilter     3. 88.101 /  3. 88.101
   libswscale      2.  5.100 /  2.  5.100
   libswresample   0. 17.103 /  0. 17.103
   libpostproc    52.  3.100 / 52.  3.100
 [wtv @ 03c93800] truncated file
     Last message repeated 3 times
 [mpeg2video @ 03c95300] Invalid frame dimensions 0x0.
     Last message repeated 19 times
 Input #0, wtv, from 'Ticket #3032-2.wtv':
   Metadata:
     WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
     WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
     Title           : Jeopardy!
     WM/SubTitle     : College Tournament
     genre           : Series;Game Show
     WM/OriginalReleaseTime: 0
     WM/MediaCredits : ;;Alex Trebek;
     service_provider: WABCDT
     service_name    : WABCDT (WABC-DT)
     WM/MediaNetworkAffiliation: ABC Affiliate
     WM/MediaOriginalChannel: 7
     WM/MediaOriginalChannelSubNumber: 1
     WM/MediaOriginalBroadcastDateTime: 2012-02-13T05:00:00Z
     WM/MediaOriginalRunTime: 14000583314
     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/ParentalRating: TV-G
     WM/Provider     : MediaCenterDefault
     WM/VideoClosedCaptioning: true
     WM/WMRVEncodeTime: 2012-02-14 00:09:39
     WM/WMRVSeriesUID: !MCSeries!00002348
     WM/WMRVServiceID: !MCService!28455323
     WM/WMRVProgramID: !MCProgram!268783601
     WM/WMRVRequestID: 0
     WM/WMRVScheduleItemID: 0
     WM/WMRVQuality  : 3
     WM/WMRVOriginalSoftPrePadding: 696
     WM/WMRVOriginalSoftPostPadding: 180
     WM/WMRVHardPrePadding: -576
     WM/WMRVHardPostPadding: 0
     WM/WMRVATSCContent: true
     WM/WMRVDTVContent: true
     WM/WMRVHDContent: true
     Duration        : 2724125811
     WM/WMRVEndTime  : 2012-02-14 00:14:12
     WM/WMRVBitrate  : 20.971520
     WM/WMRVKeepUntil: -1
     WM/WMRVActualSoftPrePadding: 259
     WM/WMRVActualSoftPostPadding: -947
     WM/WMRVContentProtected: false
     WM/WMRVContentProtectedPercent: 0
     WM/WMRVExpirationSpan: 9223372036854775807
     WM/WMRVInBandRatingSystem: 255
     WM/WMRVInBandRatingLevel: 255
     WM/WMRVInBandRatingAttributes: 0
     WM/WMRVWatched  : false
     WM/MediaThumbWidth: 352
     WM/MediaThumbHeight: 198
     WM/MediaThumbStride: 1056
     WM/MediaThumbRet: 0
     WM/MediaThumbRatingSystem: 9
     WM/MediaThumbRatingLevel: 8
     WM/MediaThumbRatingAttributes: 0
     WM/MediaThumbAspectRatioX: 16
     WM/MediaThumbAspectRatioY: 9
     WM/MediaThumbTimeStamp: -4616189618054758400
   Duration: 00:04:31.68, start: 17.188806, bitrate: 9255 kb/s
     Stream #0:0[0x12](eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384
 kb/s
     Stream #0:1[0x13](spa): Audio: ac3, 48000 Hz, stereo, fltp, 96 kb/s
     Stream #0:2[0x14]: Video: mpeg2video (Main), yuv420p(tv), 1280x720
 [SAR 1:1 DAR 16:9], max. 24000 kb/s, 59.94 fps, 5
 9.94 tbr, 10000k tbn, 119.88 tbc
     Stream #0:3[0x15]: Subtitle: eia_608
     Stream #0:4[0xffffffff]: Video: mjpeg, yuvj420p(pc), 200x113 [SAR
 96:96 DAR 200:113], 90k tbr, 90k tbn, 90k tbc
     Metadata:
       title           : TV Thumbnail
 Output #0, mpegts, to 'test.ts':
   Metadata:
     WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
     WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
     Title           : Jeopardy!
     WM/SubTitle     : College Tournament
     genre           : Series;Game Show
     WM/OriginalReleaseTime: 0
     WM/MediaCredits : ;;Alex Trebek;
     service_provider: WABCDT
     service_name    : WABCDT (WABC-DT)
     WM/MediaNetworkAffiliation: ABC Affiliate
     WM/MediaOriginalChannel: 7
     WM/MediaOriginalChannelSubNumber: 1
     WM/MediaOriginalBroadcastDateTime: 2012-02-13T05:00:00Z
     WM/MediaOriginalRunTime: 14000583314
     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/ParentalRating: TV-G
     WM/Provider     : MediaCenterDefault
     WM/VideoClosedCaptioning: true
     WM/WMRVEncodeTime: 2012-02-14 00:09:39
     WM/WMRVSeriesUID: !MCSeries!00002348
     WM/WMRVServiceID: !MCService!28455323
     WM/WMRVProgramID: !MCProgram!268783601
     WM/WMRVRequestID: 0
     WM/WMRVScheduleItemID: 0
     WM/WMRVQuality  : 3
     WM/WMRVOriginalSoftPrePadding: 696
     WM/WMRVOriginalSoftPostPadding: 180
     WM/WMRVHardPrePadding: -576
     WM/WMRVHardPostPadding: 0
     WM/WMRVATSCContent: true
     WM/WMRVDTVContent: true
     WM/WMRVHDContent: true
     Duration        : 2724125811
     WM/WMRVEndTime  : 2012-02-14 00:14:12
     WM/WMRVBitrate  : 20.971520
     WM/WMRVKeepUntil: -1
     WM/WMRVActualSoftPrePadding: 259
     WM/WMRVActualSoftPostPadding: -947
     WM/WMRVContentProtected: false
     WM/WMRVContentProtectedPercent: 0
     WM/WMRVExpirationSpan: 9223372036854775807
     WM/WMRVInBandRatingSystem: 255
     WM/WMRVInBandRatingLevel: 255
     WM/WMRVInBandRatingAttributes: 0
     WM/WMRVWatched  : false
     WM/MediaThumbWidth: 352
     WM/MediaThumbHeight: 198
     WM/MediaThumbStride: 1056
     WM/MediaThumbRet: 0
     WM/MediaThumbRatingSystem: 9
     WM/MediaThumbRatingLevel: 8
     WM/MediaThumbRatingAttributes: 0
     WM/MediaThumbAspectRatioX: 16
     WM/MediaThumbAspectRatioY: 9
     WM/MediaThumbTimeStamp: -4616189618054758400
     encoder         : Lavf55.19.100
     Stream #0:0: Video: mpeg2video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9],
 q=2-31, max. 24000 kb/s, 59.94 fps, 90k tbn, 5
 9.94 tbc
 Stream mapping:
   Stream #0:2 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 [mpegts @ 03c92d80] Non-monotonous DTS in output stream 0:0; previous:
 622957, current: 255090; changing to 622958. This
  may result in incorrect timestamps in the output file.
 [mpegts @ 03c92d80] pts (628601) < dts (628963) in stream 0
 av_interleaved_write_frame(): Invalid argument
 }}}

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


More information about the FFmpeg-trac mailing list