Opened 5 years ago

Closed 4 years ago

#1004 closed defect (fixed)

Stream copying mp2 or mpeg2video from a WTV file causes a failure - non monotonically increasing dts to muxer

Reported by: ramitbhalla Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: wtv mp2 mpeg2video av_interleaved_write_frame
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

When I try to stream copy the audio from a wtv (tried many different types of wtv recordings, all give the same error) directly into any other format I get an error:

COMMAND:


ffmpeg -i CSI.264 -i csi.wtv -c copy -map 0:0 -map 1:2 csi.avi

OUTPUT:


ffmpeg version N-37586-g6833fe4 Copyright (c) 2000-2012 the FFmpeg developers

built on Feb 6 2012 16:02:04 with gcc 4.6.2
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 38.100 / 51. 38.100
libavcodec 54. 1.100 / 54. 1.100
libavformat 54. 0.100 / 54. 0.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 62.100 / 2. 62.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100

[h264 @ 003D9EA0] Increasing reorder buffer to 1
[h264 @ 003D9620] max_analyze_duration 5000000 reached at 5005000
[h264 @ 003D9620] Estimating duration from bitrate, this may be inaccurate
Input #0, h264, from 'CSI.264':

Duration: N/A, bitrate: N/A

Stream #0:0: Video: h264 (Main), yuv420p, 720x480 [SAR 10:11 DAR 15:11], 29.97 fps, 29.97 tbr, 1200k tbn, 59.94 tbc

[mp2 @ 036349A0] Header missing
[mpeg2video @ 03BADC20] mpeg_decode_postinit() failure

Last message repeated 7 times

Input #1, wtv, from 'csi.wtv':

Metadata:

WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74b'
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000e'
Title : CSI: Crime Scene Investigation
WM/SubTitle : Justice Is Served
WM/SubTitleDescription: Grissom investigates the death of a jogger; Catherine tries to determine the cause of death of a little girl on a carnival ride.
genre : Drama;General;Series;Action/Adventure?
WM/OriginalReleaseTime: 0
WM/MediaCredits : William Petersen/Marg? Helgenberger/Paul? Guilfoyle/George? Eads/Gary? Dourdan/Jorja? Fox;Thomas J. Wright;;Eric Szmanda/Robert? David Hall/Skip? O'Brien/David? Berman/Alicia? Coppola/Earl? Brown/Kellie? Waymire/Brad? Johnson/Wayne? Wilderson/Steffanie? Brass/Joseph? Pa
service_provider: USA
service_name : USA Network
WM/MediaNetworkAffiliation: Satellite
WM/MediaOriginalChannel: 42
WM/MediaOriginalChannelSubNumber: 0
WM/MediaOriginalBroadcastDateTime: 2001-04-26T04:00:00Z
WM/MediaOriginalRunTime: 20288549297
WM/MediaIsStereo: true
WM/MediaIsRepeat: true
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-PG
WM/Provider : MediaCenterDefault?
WM/VideoClosedCaptioning: true
WM/WMRVEncodeTime: 2012-01-27 06:28:11
WM/WMRVSeriesUID: !MCSeries!00380341
WM/WMRVServiceID: !MCService!28459373
WM/WMRVProgramID: !MCProgram!29070181
WM/WMRVRequestID: 0
WM/WMRVScheduleItemID: 0
WM/WMRVQuality : 3
WM/WMRVOriginalSoftPrePadding: 1745
WM/WMRVOriginalSoftPostPadding: 120
WM/WMRVHardPrePadding: -1685
WM/WMRVHardPostPadding: 0
WM/WMRVATSCContent: false
WM/WMRVDTVContent: false
WM/WMRVHDContent: false
Duration : 475547199
WM/WMRVEndTime : 2012-01-27 06:28:58
WM/WMRVBitrate : 8.257536
WM/WMRVKeepUntil: 0
WM/WMRVActualSoftPrePadding: 16
WM/WMRVActualSoftPostPadding: -1861
WM/WMRVContentProtected: false
WM/WMRVContentProtectedPercent: 0
WM/WMRVExpirationSpan: 9223372036854775807
WM/WMRVInBandRatingSystem: 255
WM/WMRVInBandRatingLevel: 255
WM/WMRVInBandRatingAttributes: 0
WM/WMRVWatched : false

Duration: 00:00:46.54, start: 14.626711, bitrate: 8290 kb/s

Stream #1:0[0x11]: Subtitle: dvb_teletext
Stream #1:1[0x12]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 9000 kb/s, 44.96 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
Stream #1:2[0x13]: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16, 384 kb/s

Output #0, avi, to 'csi.avi':

Metadata:

ISFT : Lavf54.0.100
Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 720x480 [SAR 10:11 DAR 15:11], q=2-31, 29.97 fps, 59.94 tbn, 59.94 tbc
Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, 384 kb/s

Stream mapping:

Stream #0:0 -> #0:0 (copy)
Stream #1:2 -> #0:1 (copy)

Press [q] to stop, ? for help
[avi @ 0325E940] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 10 >= 9
av_interleaved_write_frame(): Invalid argument

Attachments (1)

sample.wtv (1.2 MB) - added by ramitbhalla 5 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 5 years ago by ramitbhalla

I tried a simpler copy of audio (no video) and same error:

COMMAND:


ffmpeg -y -i csi.wtv -acodec copy csi.avi

OUTPUT:


ffmpeg version N-37586-g6833fe4 Copyright (c) 2000-2012 the FFmpeg developers

built on Feb 6 2012 16:02:04 with gcc 4.6.2
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 38.100 / 51. 38.100
libavcodec 54. 1.100 / 54. 1.100
libavformat 54. 0.100 / 54. 0.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 62.100 / 2. 62.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100

[mp2 @ 02B51D00] Header missing
[mpeg2video @ 02B4BC40] mpeg_decode_postinit() failure

Last message repeated 7 times

Input #0, wtv, from 'csi.wtv':

Metadata:

WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74b
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000e
Title : CSI: Crime Scene Investigation
WM/SubTitle : Justice Is Served
WM/SubTitleDescription: Grissom investigates the death of a jogger; Catherine tries to determine the cause of death of a little girl on a carnival ride.
genre : Drama;General;Series;Action/Adventure?
WM/OriginalReleaseTime: 0
WM/MediaCredits : William Petersen/Marg? Helgenberger/Paul? Guilfoyle/George? Eads/Gary? Dourdan/Jorja? Fox;Thomas J. Wright;;Eric Szmanda/Robert? David Hall/Skip? O'Brien/David? Berman/Alicia? Coppola/Earl? Brown/Kellie? Waymire/Brad? Johnson/Wayne? Wilderson/Steffanie? Brass/Joseph? Pa
service_provider: USA
service_name : USA Network
WM/MediaNetworkAffiliation: Satellite
WM/MediaOriginalChannel: 42
WM/MediaOriginalChannelSubNumber: 0
WM/MediaOriginalBroadcastDateTime: 2001-04-26T04:00:00Z
WM/MediaOriginalRunTime: 20288549297
WM/MediaIsStereo: true
WM/MediaIsRepeat: true
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-PG
WM/Provider : MediaCenterDefault?
WM/VideoClosedCaptioning: true
WM/WMRVEncodeTime: 2012-01-27 06:28:11
WM/WMRVSeriesUID: !MCSeries!00380341
WM/WMRVServiceID: !MCService!28459373
WM/WMRVProgramID: !MCProgram!29070181
WM/WMRVRequestID: 0
WM/WMRVScheduleItemID: 0
WM/WMRVQuality : 3
WM/WMRVOriginalSoftPrePadding: 1745
WM/WMRVOriginalSoftPostPadding: 120
WM/WMRVHardPrePadding: -1685
WM/WMRVHardPostPadding: 0
WM/WMRVATSCContent: false
WM/WMRVDTVContent: false
WM/WMRVHDContent: false
Duration : 475547199
WM/WMRVEndTime : 2012-01-27 06:28:58
WM/WMRVBitrate : 8.257536
WM/WMRVKeepUntil: 0
WM/WMRVActualSoftPrePadding: 16
WM/WMRVActualSoftPostPadding: -1861
WM/WMRVContentProtected: false
WM/WMRVContentProtectedPercent: 0
WM/WMRVExpirationSpan: 9223372036854775807
WM/WMRVInBandRatingSystem: 255
WM/WMRVInBandRatingLevel: 255
WM/WMRVInBandRatingAttributes: 0
WM/WMRVWatched : false

Duration: 00:00:46.54, start: 14.626711, bitrate: 8290 kb/s

Stream #0:0[0x11]: Subtitle: dvb_teletext
Stream #0:1[0x12]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 9000 kb/s, 44.96 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
Stream #0:2[0x13]: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16, 384 kb/s

[buffer @ 02B542C0] w:720 h:480 pixfmt:yuv420p tb:1/1000000 sar:8/9 sws_param:
Output #0, avi, to 'csi.avi':

Metadata:

WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74b
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000e
INAM : CSI: Crime Scene Investigation
WM/SubTitle : Justice Is Served
WM/SubTitleDescription: Grissom investigates the death of a jogger; Catherine tries to determine the cause of death of a little girl on a carnival ride.
IGNR : Drama;General;Series;Action/Adventure?
WM/OriginalReleaseTime: 0
ILNG : en-us
WM/MediaCredits : William Petersen/Marg? Helgenberger/Paul? Guilfoyle/George? Eads/Gary? Dourdan/Jorja? Fox;Thomas J. Wright;;Eric Szmanda/Robert? David Hall/Skip? O'Brien/David? Berman/Alicia? Coppola/Earl? Brown/Kellie? Waymire/Brad? Johnson/Wayne? Wilderson/Steffanie? Brass/Joseph? Pa
service_provider: USA
service_name : USA Network
WM/MediaNetworkAffiliation: Satellite
WM/MediaOriginalChannel: 42
WM/MediaOriginalChannelSubNumber: 0
WM/MediaOriginalBroadcastDateTime: 2001-04-26T04:00:00Z
WM/MediaOriginalRunTime: 20288549297
WM/MediaIsStereo: true
WM/MediaIsRepeat: true
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-PG
WM/Provider : MediaCenterDefault?
WM/VideoClosedCaptioning: true
WM/WMRVEncodeTime: 2012-01-27 06:28:11
WM/WMRVSeriesUID: !MCSeries!00380341
WM/WMRVServiceID: !MCService!28459373
WM/WMRVProgramID: !MCProgram!29070181
WM/WMRVRequestID: 0
WM/WMRVScheduleItemID: 0
WM/WMRVQuality : 3
WM/WMRVOriginalSoftPrePadding: 1745
WM/WMRVOriginalSoftPostPadding: 120
WM/WMRVHardPrePadding: -1685
WM/WMRVHardPostPadding: 0
WM/WMRVATSCContent: false
WM/WMRVDTVContent: false
WM/WMRVHDContent: false
Duration : 475547199
WM/WMRVEndTime : 2012-01-27 06:28:58
WM/WMRVBitrate : 8.257536
WM/WMRVKeepUntil: 0
WM/WMRVActualSoftPrePadding: 16
WM/WMRVActualSoftPostPadding: -1861
WM/WMRVContentProtected: false
WM/WMRVContentProtectedPercent: 0
WM/WMRVExpirationSpan: 9223372036854775807
WM/WMRVInBandRatingSystem: 255
WM/WMRVInBandRatingLevel: 255
WM/WMRVInBandRatingAttributes: 0
WM/WMRVWatched : false
ISFT : Lavf54.0.100
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 200 kb/s, 29.97 tbn, 29.97 tbc
Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, 384 kb/s

Stream mapping:

Stream #0:1 -> #0:0 (mpeg2video -> mpeg4)
Stream #0:2 -> #0:1 (copy)

Press [q] to stop, ? for help
[avi @ 0372E020] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 10 >= 9
av_interleaved_write_frame(): Invalid argument

comment:2 Changed 5 years ago by ramitbhalla

Yet another simpler option, only audio and same problem:

COMMAND:


ffmpeg -y -i csi.wtv -vn -acodec copy csi.avi

OUTPUT:


ffmpeg version N-37586-g6833fe4 Copyright (c) 2000-2012 the FFmpeg developers

built on Feb 6 2012 16:02:04 with gcc 4.6.2
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 38.100 / 51. 38.100
libavcodec 54. 1.100 / 54. 1.100
libavformat 54. 0.100 / 54. 0.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 62.100 / 2. 62.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100

[mp2 @ 03211D00] Header missing
[mpeg2video @ 0320BC40] mpeg_decode_postinit() failure

Last message repeated 7 times

Input #0, wtv, from 'csi.wtv':

Metadata:

WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74b
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000e
Title : CSI: Crime Scene Investigation
WM/SubTitle : Justice Is Served
WM/SubTitleDescription: Grissom investigates the death of a jogger; Catherine tries to determine the cause of death of a little girl on a carnival ride.
genre : Drama;General;Series;Action/Adventure?
WM/OriginalReleaseTime: 0
WM/MediaCredits : William Petersen/Marg? Helgenberger/Paul? Guilfoyle/George? Eads/Gary? Dourdan/Jorja? Fox;Thomas J. Wright;;Eric Szmanda/Robert? David Hall/Skip? O'Brien/David? Berman/Alicia? Coppola/Earl? Brown/Kellie? Waymire/Brad? Johnson/Wayne? Wilderson/Steffanie? Brass/Joseph? Pa
service_provider: USA
service_name : USA Network
WM/MediaNetworkAffiliation: Satellite
WM/MediaOriginalChannel: 42
WM/MediaOriginalChannelSubNumber: 0
WM/MediaOriginalBroadcastDateTime: 2001-04-26T04:00:00Z
WM/MediaOriginalRunTime: 20288549297
WM/MediaIsStereo: true
WM/MediaIsRepeat: true
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-PG
WM/Provider : MediaCenterDefault?
WM/VideoClosedCaptioning: true
WM/WMRVEncodeTime: 2012-01-27 06:28:11
WM/WMRVSeriesUID: !MCSeries!00380341
WM/WMRVServiceID: !MCService!28459373
WM/WMRVProgramID: !MCProgram!29070181
WM/WMRVRequestID: 0
WM/WMRVScheduleItemID: 0
WM/WMRVQuality : 3
WM/WMRVOriginalSoftPrePadding: 1745
WM/WMRVOriginalSoftPostPadding: 120
WM/WMRVHardPrePadding: -1685
WM/WMRVHardPostPadding: 0
WM/WMRVATSCContent: false
WM/WMRVDTVContent: false
WM/WMRVHDContent: false
Duration : 475547199
WM/WMRVEndTime : 2012-01-27 06:28:58
WM/WMRVBitrate : 8.257536
WM/WMRVKeepUntil: 0
WM/WMRVActualSoftPrePadding: 16
WM/WMRVActualSoftPostPadding: -1861
WM/WMRVContentProtected: false
WM/WMRVContentProtectedPercent: 0
WM/WMRVExpirationSpan: 9223372036854775807
WM/WMRVInBandRatingSystem: 255
WM/WMRVInBandRatingLevel: 255
WM/WMRVInBandRatingAttributes: 0
WM/WMRVWatched : false

Duration: 00:00:46.54, start: 14.626711, bitrate: 8290 kb/s

Stream #0:0[0x11]: Subtitle: dvb_teletext
Stream #0:1[0x12]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 9000 kb/s, 44.96 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
Stream #0:2[0x13]: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16, 384 kb/s

Output #0, avi, to 'csi.avi':

Metadata:

WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74b
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000e
INAM : CSI: Crime Scene Investigation
WM/SubTitle : Justice Is Served
WM/SubTitleDescription: Grissom investigates the death of a jogger; Catherine tries to determine the cause of death of a little girl on a carnival ride.
IGNR : Drama;General;Series;Action/Adventure?
WM/OriginalReleaseTime: 0
ILNG : en-us
WM/MediaCredits : William Petersen/Marg? Helgenberger/Paul? Guilfoyle/George? Eads/Gary? Dourdan/Jorja? Fox;Thomas J. Wright;;Eric Szmanda/Robert? David Hall/Skip? O'Brien/David? Berman/Alicia? Coppola/Earl? Brown/Kellie? Waymire/Brad? Johnson/Wayne? Wilderson/Steffanie? Brass/Joseph? Pa
service_provider: USA
service_name : USA Network
WM/MediaNetworkAffiliation: Satellite
WM/MediaOriginalChannel: 42
WM/MediaOriginalChannelSubNumber: 0
WM/MediaOriginalBroadcastDateTime: 2001-04-26T04:00:00Z
WM/MediaOriginalRunTime: 20288549297
WM/MediaIsStereo: true
WM/MediaIsRepeat: true
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-PG
WM/Provider : MediaCenterDefault?
WM/VideoClosedCaptioning: true
WM/WMRVEncodeTime: 2012-01-27 06:28:11
WM/WMRVSeriesUID: !MCSeries!00380341
WM/WMRVServiceID: !MCService!28459373
WM/WMRVProgramID: !MCProgram!29070181
WM/WMRVRequestID: 0
WM/WMRVScheduleItemID: 0
WM/WMRVQuality : 3
WM/WMRVOriginalSoftPrePadding: 1745
WM/WMRVOriginalSoftPostPadding: 120
WM/WMRVHardPrePadding: -1685
WM/WMRVHardPostPadding: 0
WM/WMRVATSCContent: false
WM/WMRVDTVContent: false
WM/WMRVHDContent: false
Duration : 475547199
WM/WMRVEndTime : 2012-01-27 06:28:58
WM/WMRVBitrate : 8.257536
WM/WMRVKeepUntil: 0
WM/WMRVActualSoftPrePadding: 16
WM/WMRVActualSoftPostPadding: -1861
WM/WMRVContentProtected: false
WM/WMRVContentProtectedPercent: 0
WM/WMRVExpirationSpan: 9223372036854775807
WM/WMRVInBandRatingSystem: 255
WM/WMRVInBandRatingLevel: 255
WM/WMRVInBandRatingAttributes: 0
WM/WMRVWatched : false
ISFT : Lavf54.0.100
Stream #0:0: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, 384 kb/s

Stream mapping:

Stream #0:2 -> #0:0 (copy)

Press [q] to stop, ? for help
[avi @ 032120E0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 10 >= 9
av_interleaved_write_frame(): Invalid argument

comment:3 Changed 5 years ago by cehoyos

  • Keywords mp2 av_interleaved_write_frame added; non monotonically increasing dts removed

Please provide a sample.

Changed 5 years ago by ramitbhalla

comment:4 Changed 5 years ago by cehoyos

  • Keywords mpeg2video added
  • Priority changed from important to normal
  • Reproduced by developer set
  • Status changed from new to open
  • Summary changed from Stream copying Audio from a WTV file causes a failure - non monotonically increasing dts to muxer to Stream copying mp2 or mpeg2video from a WTV file causes a failure - non monotonically increasing dts to muxer
  • Version changed from unspecified to git-master

For future reports: It is a good idea if you provide complete, uncut console output that actually matches the sample you upload.

If you believe this is a regression (that would make the ticket important), please provide complete, uncut output for a working revision (or find the change introducing the problem).

$ ffmpeg -i sample.wtv -vn -acodec copy out.avi
ffmpeg version N-37961-gf649247 Copyright (c) 2000-2012 the FFmpeg developers
  built on Feb 18 2012 00:14:32 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
  libavutil      51. 39.100 / 51. 39.100
  libavcodec     54.  3.100 / 54.  3.100
  libavformat    54.  1.100 / 54.  1.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 62.101 /  2. 62.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
[mp2 @ 0x13fc0e0] Header missing
[mpeg2video @ 0x13e00a0] mpeg_decode_postinit() failure
    Last message repeated 3 times
Input #0, wtv, from 'sample.wtv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : Tosh.0
    WM/SubTitleDescription: ``Scarlet Takes a Tumble'' web redemption; Terrell Owen's celebrity video.
    genre           : Comedy;General;Series
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;Daniel Tosh;
    service_provider: COMEDY
    service_name    : Comedy Central
    WM/MediaNetworkAffiliation: Satellite
    WM/MediaOriginalChannel: 68
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2009-06-25T04:00:00Z
    WM/MediaOriginalRunTime: 14683466790
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: true
    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-14
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: true
    WM/WMRVEncodeTime: 2012-02-17 21:36:31
    WM/WMRVSeriesUID: !MCSeries!01149630
    WM/WMRVServiceID: !MCService!28455994
    WM/WMRVProgramID: !MCProgram!214620429
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 3
    WM/WMRVOriginalSoftPrePadding: 569
    WM/WMRVOriginalSoftPostPadding: 120
    WM/WMRVHardPrePadding: -509
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: false
    WM/WMRVHDContent: false
    Duration        : 22361279
    WM/WMRVEndTime  : 2012-02-17 21:36:33
    WM/WMRVBitrate  : 8.257536
    WM/WMRVKeepUntil: 0
    WM/WMRVActualSoftPrePadding: -1
    WM/WMRVActualSoftPostPadding: -1346
    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
    WM/MediaThumbWidth: 0
    WM/MediaThumbHeight: 0
    WM/MediaThumbStride: 0
    WM/MediaThumbRet: 4
    WM/MediaThumbRatingSystem: 0
    WM/MediaThumbRatingLevel: 0
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 0
    WM/MediaThumbAspectRatioY: 0
    WM/MediaThumbTimeStamp: -4616189618054758400
  Duration: 00:00:01.00, start: 11.724668, bitrate: 10475 kb/s
    Stream #0:0[0x11]: Subtitle: dvb_teletext
    Stream #0:1[0x12]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 9000 kb/s, 34.97 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
    Stream #0:2[0x13]: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16, 384 kb/s
Output #0, avi, to 'out.avi':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    INAM            : Tosh.0
    WM/SubTitleDescription: ``Scarlet Takes a Tumble'' web redemption; Terrell Owen's celebrity video.
    IGNR            : Comedy;General;Series
    WM/OriginalReleaseTime: 0
    ILNG            : en-us
    WM/MediaCredits : ;;Daniel Tosh;
    service_provider: COMEDY
    service_name    : Comedy Central
    WM/MediaNetworkAffiliation: Satellite
    WM/MediaOriginalChannel: 68
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2009-06-25T04:00:00Z
    WM/MediaOriginalRunTime: 14683466790
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: true
    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-14
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: true
    WM/WMRVEncodeTime: 2012-02-17 21:36:31
    WM/WMRVSeriesUID: !MCSeries!01149630
    WM/WMRVServiceID: !MCService!28455994
    WM/WMRVProgramID: !MCProgram!214620429
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 3
    WM/WMRVOriginalSoftPrePadding: 569
    WM/WMRVOriginalSoftPostPadding: 120
    WM/WMRVHardPrePadding: -509
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: false
    WM/WMRVHDContent: false
    Duration        : 22361279
    WM/WMRVEndTime  : 2012-02-17 21:36:33
    WM/WMRVBitrate  : 8.257536
    WM/WMRVKeepUntil: 0
    WM/WMRVActualSoftPrePadding: -1
    WM/WMRVActualSoftPostPadding: -1346
    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
    WM/MediaThumbWidth: 0
    WM/MediaThumbHeight: 0
    WM/MediaThumbStride: 0
    WM/MediaThumbRet: 4
    WM/MediaThumbRatingSystem: 0
    WM/MediaThumbRatingLevel: 0
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 0
    WM/MediaThumbAspectRatioY: 0
    WM/MediaThumbTimeStamp: -4616189618054758400
    ISFT            : Lavf54.1.100
    Stream #0:0: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, 384 kb/s
Stream mapping:
  Stream #0:2 -> #0:0 (copy)
Press [q] to stop, [?] for help
DTS 2223905, next:252391 st:2 invalid droping
[avi @ 0x13fd440] pts < dts in stream 0
av_interleaved_write_frame(): Invalid argument
$ ffmpeg -i sample.wtv -an -vcodec copy out.avi
ffmpeg version N-37961-gf649247 Copyright (c) 2000-2012 the FFmpeg developers
  built on Feb 18 2012 00:14:32 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
  libavutil      51. 39.100 / 51. 39.100
  libavcodec     54.  3.100 / 54.  3.100
  libavformat    54.  1.100 / 54.  1.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 62.101 /  2. 62.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
[mp2 @ 0x13fc0e0] Header missing
[mpeg2video @ 0x13e00a0] mpeg_decode_postinit() failure
    Last message repeated 3 times
Input #0, wtv, from 'sample.wtv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : Tosh.0
    WM/SubTitleDescription: ``Scarlet Takes a Tumble'' web redemption; Terrell Owen's celebrity video.
    genre           : Comedy;General;Series
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;Daniel Tosh;
    service_provider: COMEDY
    service_name    : Comedy Central
    WM/MediaNetworkAffiliation: Satellite
    WM/MediaOriginalChannel: 68
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2009-06-25T04:00:00Z
    WM/MediaOriginalRunTime: 14683466790
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: true
    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-14
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: true
    WM/WMRVEncodeTime: 2012-02-17 21:36:31
    WM/WMRVSeriesUID: !MCSeries!01149630
    WM/WMRVServiceID: !MCService!28455994
    WM/WMRVProgramID: !MCProgram!214620429
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 3
    WM/WMRVOriginalSoftPrePadding: 569
    WM/WMRVOriginalSoftPostPadding: 120
    WM/WMRVHardPrePadding: -509
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: false
    WM/WMRVHDContent: false
    Duration        : 22361279
    WM/WMRVEndTime  : 2012-02-17 21:36:33
    WM/WMRVBitrate  : 8.257536
    WM/WMRVKeepUntil: 0
    WM/WMRVActualSoftPrePadding: -1
    WM/WMRVActualSoftPostPadding: -1346
    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
    WM/MediaThumbWidth: 0
    WM/MediaThumbHeight: 0
    WM/MediaThumbStride: 0
    WM/MediaThumbRet: 4
    WM/MediaThumbRatingSystem: 0
    WM/MediaThumbRatingLevel: 0
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 0
    WM/MediaThumbAspectRatioY: 0
    WM/MediaThumbTimeStamp: -4616189618054758400
  Duration: 00:00:01.00, start: 11.724668, bitrate: 10475 kb/s
    Stream #0:0[0x11]: Subtitle: dvb_teletext
    Stream #0:1[0x12]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 9000 kb/s, 34.97 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
    Stream #0:2[0x13]: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16, 384 kb/s
Output #0, avi, to 'out.avi':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    INAM            : Tosh.0
    WM/SubTitleDescription: ``Scarlet Takes a Tumble'' web redemption; Terrell Owen's celebrity video.
    IGNR            : Comedy;General;Series
    WM/OriginalReleaseTime: 0
    ILNG            : en-us
    WM/MediaCredits : ;;Daniel Tosh;
    service_provider: COMEDY
    service_name    : Comedy Central
    WM/MediaNetworkAffiliation: Satellite
    WM/MediaOriginalChannel: 68
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2009-06-25T04:00:00Z
    WM/MediaOriginalRunTime: 14683466790
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: true
    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-14
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: true
    WM/WMRVEncodeTime: 2012-02-17 21:36:31
    WM/WMRVSeriesUID: !MCSeries!01149630
    WM/WMRVServiceID: !MCService!28455994
    WM/WMRVProgramID: !MCProgram!214620429
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 3
    WM/WMRVOriginalSoftPrePadding: 569
    WM/WMRVOriginalSoftPostPadding: 120
    WM/WMRVHardPrePadding: -509
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: false
    WM/WMRVHDContent: false
    Duration        : 22361279
    WM/WMRVEndTime  : 2012-02-17 21:36:33
    WM/WMRVBitrate  : 8.257536
    WM/WMRVKeepUntil: 0
    WM/WMRVActualSoftPrePadding: -1
    WM/WMRVActualSoftPostPadding: -1346
    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
    WM/MediaThumbWidth: 0
    WM/MediaThumbHeight: 0
    WM/MediaThumbStride: 0
    WM/MediaThumbRet: 4
    WM/MediaThumbRatingSystem: 0
    WM/MediaThumbRatingLevel: 0
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 0
    WM/MediaThumbAspectRatioY: 0
    WM/MediaThumbTimeStamp: -4616189618054758400
    ISFT            : Lavf54.1.100
    Stream #0:0: Video: mpeg2video (mpg2 / 0x3267706D), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 9000 kb/s, 34.97 fps, 59.94 tbn, 59.94 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
Press [q] to stop, [?] for help
[avi @ 0x13fd440] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 10 >= 10
av_interleaved_write_frame(): Invalid argument

comment:5 Changed 5 years ago by ramitbhalla

Sorry about that, the video I usiing is too large to upload so I recorded a short sample from MCE and uploaded it. All WTV videos' are creating the same problem.

Will be more careful about the importance level. Working on a open source project that uses ffmpeg to convert WTV to H.264 file using CUDA offloading. So am a little bummed about running into stream copy issues with the audio in WTV files - wanted to preserve the original audio to avoid quality loss.

comment:6 Changed 4 years ago by ramitbhalla

Hi,

Any thoughts on why this issues is happening and if it can be fixed?

comment:7 Changed 4 years ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed

Fixed by Michael.

Note: See TracTickets for help on using tickets.