Ticket #2058 (open defect)
FFMPEG sometimes not able to stream copy mpeg2video files, error with pts < dts
| Reported by: | ramitbhalla | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | undetermined |
| Version: | git-master | Keywords: | av_interleaved_write_frame mpegts mpeg2video |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | yes | |
| Analyzed by developer: | no |
Description
Summary of the bug: FFMPEG not able to stream copy some WTV files, even with -fflags +genpts in the command.
I've uploaded the original file and a text file to the FFMPEG ftp server.
Filename is SirDave? US The Firm_WNBCDT_2012_02_18_21_34_17.wtv and SirDave? US The Firm_WNBCDT_2012_02_18_21_34_17.txt
How to reproduce:
OUTPUT:
ffmpeg -fflags +genpts -i "..\SirDave US The Firm_WNBCDT_2012_02_18_21_34_17.wtv" -vcodec copy -acodec copy -map 0:a -map 0:v test-temp.ts
ffmpeg version N-48065-g6375318 Copyright (c) 2000-2012 the FFmpeg developers
built on Dec 21 2012 09:06:30 with gcc 4.7.2 (GCC)
configuration: --enable-static --arch=x86 --target-os=mingw32 --cross-prefix=/home/rdp/dev/ffmpeg-windows-build-helper
s/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth -
-enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheo
ra --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-fontconfig --ena
ble-libass --enable-libutvideo --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-lib
vo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopenc
ore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libbluray --enable-libvpx --enable-runtime-cpudetect
libavutil 52. 12.100 / 52. 12.100
libavcodec 54. 81.100 / 54. 81.100
libavformat 54. 49.102 / 54. 49.102
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 29.100 / 3. 29.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[mpeg2video @ 020cebc0] mpeg_decode_postinit() failure
Last message repeated 33 times
Input #0, wtv, from '..\SirDave US The Firm_WNBCDT_2012_02_18_21_34_17.wtv':
Metadata:
WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
Title : The Firm
WM/SubTitle : Chapter Seven
WM/SubTitleDescription: Mitch's attempts to help a new client, Nate, are complicated when Nate's brother is named as
a co-defendant; Tammy pressures a potential ally into explaining a cryptic clue.
genre : Drama;General;Series
WM/OriginalReleaseTime: 0
WM/MediaCredits : Josh Lucas/Callum Keith Rennie/Molly Parker/Natasha Calis/Juliette Lewis;;;Andrew Jenkins/Stuart H
ughes/Tricia Helfer
service_provider: WNBCDT
service_name : WNBCDT (WNBC-DT)
WM/MediaNetworkAffiliation: NBC Affiliate
WM/MediaOriginalChannel: 4
WM/MediaOriginalChannelSubNumber: 1
WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
WM/MediaOriginalRunTime: 17215789295
WM/MediaIsStereo: true
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-14
WM/Provider : MediaCenterDefault
WM/VideoClosedCaptioning: true
WM/WMRVEncodeTime: 2012-02-19 02:34:18
WM/WMRVSeriesUID: !MCSeries!01419020
WM/WMRVServiceID: !MCService!28459780
WM/WMRVProgramID: !MCProgram!269627380
WM/WMRVRequestID: 0
WM/WMRVScheduleItemID: 0
WM/WMRVQuality : 3
WM/WMRVOriginalSoftPrePadding: 2176
WM/WMRVOriginalSoftPostPadding: 180
WM/WMRVHardPrePadding: -2056
WM/WMRVHardPostPadding: 0
WM/WMRVATSCContent: true
WM/WMRVDTVContent: true
WM/WMRVHDContent: true
Duration : 16944809188
WM/WMRVEndTime : 2012-02-19 03:02:32
WM/WMRVBitrate : 14.730353
WM/WMRVKeepUntil: -1
WM/WMRVActualSoftPrePadding: -1
WM/WMRVActualSoftPostPadding: 152
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: 14
WM/MediaThumbRatingAttributes: 0
WM/MediaThumbAspectRatioX: 16
WM/MediaThumbAspectRatioY: 9
WM/MediaThumbTimeStamp: -4616189618054758400
WM/MediaThumbType: 2
Duration: 00:28:13.87, start: 44.031933, bitrate: 14735 kb/s
Stream #0:0[0x2a](eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream #0:1[0x2b]: Video: mpeg2video (Main), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 10000k tbn
, 59.94 tbc
Stream #0:2[0x2c](spa): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:3[0x2d]: Subtitle: eia_608
Stream #0:4[0x0]: Attachment: mjpeg
Metadata:
title : TV Thumbnail
File 'test-temp.ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to 'test-temp.ts':
Metadata:
WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
Title : The Firm
WM/SubTitle : Chapter Seven
WM/SubTitleDescription: Mitch's attempts to help a new client, Nate, are complicated when Nate's brother is named as
a co-defendant; Tammy pressures a potential ally into explaining a cryptic clue.
genre : Drama;General;Series
WM/OriginalReleaseTime: 0
WM/MediaCredits : Josh Lucas/Callum Keith Rennie/Molly Parker/Natasha Calis/Juliette Lewis;;;Andrew Jenkins/Stuart H
ughes/Tricia Helfer
service_provider: WNBCDT
service_name : WNBCDT (WNBC-DT)
WM/MediaNetworkAffiliation: NBC Affiliate
WM/MediaOriginalChannel: 4
WM/MediaOriginalChannelSubNumber: 1
WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
WM/MediaOriginalRunTime: 17215789295
WM/MediaIsStereo: true
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-14
WM/Provider : MediaCenterDefault
WM/VideoClosedCaptioning: true
WM/WMRVEncodeTime: 2012-02-19 02:34:18
WM/WMRVSeriesUID: !MCSeries!01419020
WM/WMRVServiceID: !MCService!28459780
WM/WMRVProgramID: !MCProgram!269627380
WM/WMRVRequestID: 0
WM/WMRVScheduleItemID: 0
WM/WMRVQuality : 3
WM/WMRVOriginalSoftPrePadding: 2176
WM/WMRVOriginalSoftPostPadding: 180
WM/WMRVHardPrePadding: -2056
WM/WMRVHardPostPadding: 0
WM/WMRVATSCContent: true
WM/WMRVDTVContent: true
WM/WMRVHDContent: true
Duration : 16944809188
WM/WMRVEndTime : 2012-02-19 03:02:32
WM/WMRVBitrate : 14.730353
WM/WMRVKeepUntil: -1
WM/WMRVActualSoftPrePadding: -1
WM/WMRVActualSoftPostPadding: 152
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: 14
WM/MediaThumbRatingAttributes: 0
WM/MediaThumbAspectRatioX: 16
WM/MediaThumbAspectRatioY: 9
WM/MediaThumbTimeStamp: -4616189618054758400
WM/MediaThumbType: 2
encoder : Lavf54.49.102
Stream #0:0(eng): Audio: ac3, 48000 Hz, 5.1(side), 384 kb/s
Stream #0:1(spa): Audio: ac3, 48000 Hz, stereo, 192 kb/s
Stream #0:2: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:2 -> #0:1 (copy)
Stream #0:1 -> #0:2 (copy)
Press [q] to stop, [?] for help
pts (147120491) < dts (147120742) in stream 2me=00:26:52.25 bitrate=15661.8kbits/s
av_interleaved_write_frame(): Invalid argument
Attachments
Change History
comment:2 Changed 5 months ago by ramitbhalla
Yes:
ffmpeg -i "SirDave US The Firm_WNBCDT_2012_02_18_21_34_17.wtv" -an -vcodec copy out.ts
ffmpeg version N-48065-g6375318 Copyright (c) 2000-2012 the FFmpeg developers
built on Dec 21 2012 09:06:30 with gcc 4.7.2 (GCC)
configuration: --enable-static --arch=x86 --target-os=mingw32 --cross-prefix=/home/rdp/dev/ffmpeg-windows-build-helper
s/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth -
-enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheo
ra --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-fontconfig --ena
ble-libass --enable-libutvideo --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-lib
vo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopenc
ore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libbluray --enable-libvpx --enable-runtime-cpudetect
libavutil 52. 12.100 / 52. 12.100
libavcodec 54. 81.100 / 54. 81.100
libavformat 54. 49.102 / 54. 49.102
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 29.100 / 3. 29.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[mpeg2video @ 002ee8a0] mpeg_decode_postinit() failure
Last message repeated 33 times
Input #0, wtv, from 'SirDave US The Firm_WNBCDT_2012_02_18_21_34_17.wtv':
Metadata:
WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
Title : The Firm
WM/SubTitle : Chapter Seven
WM/SubTitleDescription: Mitch's attempts to help a new client, Nate, are complicated when Nate's brother is named as
a co-defendant; Tammy pressures a potential ally into explaining a cryptic clue.
genre : Drama;General;Series
WM/OriginalReleaseTime: 0
WM/MediaCredits : Josh Lucas/Callum Keith Rennie/Molly Parker/Natasha Calis/Juliette Lewis;;;Andrew Jenkins/Stuart H
ughes/Tricia Helfer
service_provider: WNBCDT
service_name : WNBCDT (WNBC-DT)
WM/MediaNetworkAffiliation: NBC Affiliate
WM/MediaOriginalChannel: 4
WM/MediaOriginalChannelSubNumber: 1
WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
WM/MediaOriginalRunTime: 17215789295
WM/MediaIsStereo: true
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-14
WM/Provider : MediaCenterDefault
WM/VideoClosedCaptioning: true
WM/WMRVEncodeTime: 2012-02-19 02:34:18
WM/WMRVSeriesUID: !MCSeries!01419020
WM/WMRVServiceID: !MCService!28459780
WM/WMRVProgramID: !MCProgram!269627380
WM/WMRVRequestID: 0
WM/WMRVScheduleItemID: 0
WM/WMRVQuality : 3
WM/WMRVOriginalSoftPrePadding: 2176
WM/WMRVOriginalSoftPostPadding: 180
WM/WMRVHardPrePadding: -2056
WM/WMRVHardPostPadding: 0
WM/WMRVATSCContent: true
WM/WMRVDTVContent: true
WM/WMRVHDContent: true
Duration : 16944809188
WM/WMRVEndTime : 2012-02-19 03:02:32
WM/WMRVBitrate : 14.730353
WM/WMRVKeepUntil: -1
WM/WMRVActualSoftPrePadding: -1
WM/WMRVActualSoftPostPadding: 152
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: 14
WM/MediaThumbRatingAttributes: 0
WM/MediaThumbAspectRatioX: 16
WM/MediaThumbAspectRatioY: 9
WM/MediaThumbTimeStamp: -4616189618054758400
WM/MediaThumbType: 2
Duration: 00:28:13.87, start: 44.031933, bitrate: 14735 kb/s
Stream #0:0[0x2a](eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream #0:1[0x2b]: Video: mpeg2video (Main), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 10000k tbn
, 59.94 tbc
Stream #0:2[0x2c](spa): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:3[0x2d]: Subtitle: eia_608
Stream #0:4[0x0]: Attachment: mjpeg
Metadata:
title : TV Thumbnail
Output #0, mpegts, to 'out.ts':
Metadata:
WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
Title : The Firm
WM/SubTitle : Chapter Seven
WM/SubTitleDescription: Mitch's attempts to help a new client, Nate, are complicated when Nate's brother is named as
a co-defendant; Tammy pressures a potential ally into explaining a cryptic clue.
genre : Drama;General;Series
WM/OriginalReleaseTime: 0
WM/MediaCredits : Josh Lucas/Callum Keith Rennie/Molly Parker/Natasha Calis/Juliette Lewis;;;Andrew Jenkins/Stuart H
ughes/Tricia Helfer
service_provider: WNBCDT
service_name : WNBCDT (WNBC-DT)
WM/MediaNetworkAffiliation: NBC Affiliate
WM/MediaOriginalChannel: 4
WM/MediaOriginalChannelSubNumber: 1
WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
WM/MediaOriginalRunTime: 17215789295
WM/MediaIsStereo: true
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-14
WM/Provider : MediaCenterDefault
WM/VideoClosedCaptioning: true
WM/WMRVEncodeTime: 2012-02-19 02:34:18
WM/WMRVSeriesUID: !MCSeries!01419020
WM/WMRVServiceID: !MCService!28459780
WM/WMRVProgramID: !MCProgram!269627380
WM/WMRVRequestID: 0
WM/WMRVScheduleItemID: 0
WM/WMRVQuality : 3
WM/WMRVOriginalSoftPrePadding: 2176
WM/WMRVOriginalSoftPostPadding: 180
WM/WMRVHardPrePadding: -2056
WM/WMRVHardPostPadding: 0
WM/WMRVATSCContent: true
WM/WMRVDTVContent: true
WM/WMRVHDContent: true
Duration : 16944809188
WM/WMRVEndTime : 2012-02-19 03:02:32
WM/WMRVBitrate : 14.730353
WM/WMRVKeepUntil: -1
WM/WMRVActualSoftPrePadding: -1
WM/WMRVActualSoftPostPadding: 152
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: 14
WM/MediaThumbRatingAttributes: 0
WM/MediaThumbAspectRatioX: 16
WM/MediaThumbAspectRatioY: 9
WM/MediaThumbTimeStamp: -4616189618054758400
WM/MediaThumbType: 2
encoder : Lavf54.49.102
Stream #0:0: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Press [q] to stop, [?] for help
pts (147120491) < dts (147120742) in stream 0me=00:27:02.62 bitrate=15010.4kbits/s
av_interleaved_write_frame(): Invalid argument
comment:3 Changed 5 months ago by cehoyos
- Keywords wtv mpeg2video added
- Status changed from new to open
- Version changed from unspecified to git-master
comment:4 Changed 5 months ago by ramitbhalla
I'm facing similar issues (same error messagE) with some TS files also. Should I tag those to this ticket also or should I open a new ticket for them?
ffmpeg -y -threads 0 -i "CSI- Crime Scene Investigation_WVLTDT_22_02_2012_21_58_01.ts" -ss 23.19 -t 233.4 -map 0:a -map 0:v -vcodec copy -acodec copy "CSI- Crime Scene Investigation_WVLTDT_22_02_2012_21_58_01_23_256.ts" --> ffmpeg version N-48065-g6375318 Copyright (c) 2000-2012 the FFmpeg developers --> built on Dec 21 2012 09:06:30 with gcc 4.7.2 (GCC) --> configuration: --enable-static --arch=x86 --target-os=mingw32 --cross-prefix=/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-fontconfig --enable-libass --enable-libutvideo --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-libbluray --enable-libvpx --enable-runtime-cpudetect --> libavutil 52. 12.100 / 52. 12.100 --> libavcodec 54. 81.100 / 54. 81.100 --> libavformat 54. 49.102 / 54. 49.102 --> libavdevice 54. 3.102 / 54. 3.102 --> libavfilter 3. 29.100 / 3. 29.100 --> libswscale 2. 1.103 / 2. 1.103 --> libswresample 0. 17.102 / 0. 17.102 --> libpostproc 52. 2.100 / 52. 2.100 --> Input #0, mpegts, from 'CSI- Crime Scene Investigation_WVLTDT_22_02_2012_21_58_01.ts': --> Duration: 01:04:58.13, start: 1.269000, bitrate: 10817 kb/s --> Video duration=3898.13 --> Program 1 --> Metadata: --> service_name : Service01 --> service_provider: FFmpeg --> Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc --> Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s --> Output #0, mpegts, to 'CSI- Crime Scene Investigation_WVLTDT_22_02_2012_21_58_01_23_256.ts': --> Metadata: --> encoder : Lavf54.49.102 --> Stream #0:0: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, 192 kb/s --> Stream #0:1: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 59.94 fps, 90k tbn, 59.94 tbc --> Stream mapping: --> Stream #0:1 -> #0:0 (copy) --> Stream #0:0 -> #0:1 (copy) --> Press [q] to stop, [?] for help --> frame= 0 fps=0.0 q=-1.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s --> frame= 0 fps=0.0 q=-1.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s --> frame= 0 fps=0.0 q=-1.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s --> frame= 0 fps=0.0 q=-1.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s --> pts (22590) < dts (24120) in stream 1 --> av_interleaved_write_frame(): Invalid argument
comment:6 Changed 5 months ago by ramitbhalla
I'm attaching a small sample. Here is the command (simplified) to reproduce the issue:
ffmpeg -threads 0 -i csi.ts -map 0:a -map 0:v -vcodec copy -acodec copy "csi-test.ts"
ffmpeg version N-48065-g6375318 Copyright (c) 2000-2012 the FFmpeg developers
built on Dec 21 2012 09:06:30 with gcc 4.7.2 (GCC)
configuration: --enable-static --arch=x86 --target-os=mingw32 --cross-prefix=/home/rdp/dev/ffmpeg-windows-build-helper
s/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth -
-enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheo
ra --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-fontconfig --ena
ble-libass --enable-libutvideo --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-lib
vo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopenc
ore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libbluray --enable-libvpx --enable-runtime-cpudetect
libavutil 52. 12.100 / 52. 12.100
libavcodec 54. 81.100 / 54. 81.100
libavformat 54. 49.102 / 54. 49.102
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 29.100 / 3. 29.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, mpegts, from 'csi.ts':
Duration: 00:00:01.44, start: 1.269000, bitrate: 7733 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 59.94 fp
s, 59.92 tbr, 90k tbn, 119.88 tbc
Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s
File 'csi-test.ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to 'csi-test.ts':
Metadata:
encoder : Lavf54.49.102
Stream #0:0: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, 192 kb/s
Stream #0:1: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 59.94 fps, 90k
tbn, 59.94 tbc
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 03630060] st:0 PTS: 43650 DTS: 39150 < 39151 invalid, clipping
[mpegts @ 03630060] pts (42120) < dts (43650) in stream 1
av_interleaved_write_frame(): Invalid argument
comment:7 Changed 5 months ago by cehoyos
Isn't this also reproducible with the following command line?
$ ffmpeg -i csi.ts -an -vcodec copy csi-test.ts
comment:8 Changed 5 months ago by ramitbhalla
Yes
ffmpeg.2311.exe -i csi.ts -vcodec copy -an "csi-test.ts"
ffmpeg version N-48065-g6375318 Copyright (c) 2000-2012 the FFmpeg developers
built on Dec 21 2012 09:06:30 with gcc 4.7.2 (GCC)
configuration: --enable-static --arch=x86 --target-os=mingw32 --cross-prefix=/home/rdp/dev/ffmpeg-windows-build-helper
s/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth -
-enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheo
ra --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-fontconfig --ena
ble-libass --enable-libutvideo --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-lib
vo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopenc
ore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libbluray --enable-libvpx --enable-runtime-cpudetect
libavutil 52. 12.100 / 52. 12.100
libavcodec 54. 81.100 / 54. 81.100
libavformat 54. 49.102 / 54. 49.102
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 29.100 / 3. 29.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, mpegts, from 'csi.ts':
Duration: 00:00:01.44, start: 1.269000, bitrate: 7733 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 59.94 fp
s, 59.92 tbr, 90k tbn, 119.88 tbc
Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s
File 'csi-test.ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to 'csi-test.ts':
Metadata:
encoder : Lavf54.49.102
Stream #0:0: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 59.94 fps, 90k
tbn, 59.94 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpegts @ 035d0060] st:0 PTS: 0 DTS: -4500 < -4499 invalid, clipping
[mpegts @ 035d0060] pts (-1530) < dts (0) in stream 0
av_interleaved_write_frame(): Invalid argument
comment:9 Changed 5 months ago by cehoyos
- Keywords mpegts added; wtv removed
- Reproduced by developer set
- Summary changed from FFMPEG sometimes not able to stream copy WTV files, error with pts < dts to FFMPEG sometimes not able to stream copy mpeg2video files, error with pts < dts
The file you originally uploaded does not work here:
$ ls -l SirDave\ US\ The\ Firm_WNBCDT_2012_02_18_21_34_17.wtv -rw-r--r-- 1 cehoyos users 3104090772 Dec 23 21:23 SirDave US The Firm_WNBCDT_2012_02_18_21_34_17.wtv $ md5sum SirDave\ US\ The\ Firm_WNBCDT_2012_02_18_21_34_17.wtv 09b8b98c24a739c04078ba21b956aaed SirDave US The Firm_WNBCDT_2012_02_18_21_34_17.wtv $ ffmpeg -i SirDave\ US\ The\ Firm_WNBCDT_2012_02_18_21_34_17.wtv ffmpeg version N-48238-g10a3fa8 Copyright (c) 2000-2012 the FFmpeg developers built on Dec 27 2012 21:51:00 with gcc 4.7 (SUSE Linux) configuration: --enable-gpl --disable-indev=jack libavutil 52. 12.100 / 52. 12.100 libavcodec 54. 81.100 / 54. 81.100 libavformat 54. 50.102 / 54. 50.102 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 30.101 / 3. 30.101 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [wtv @ 0x2fc0500] unknown guid 704488df063b82cc213dc80000000000, expected dir_entry_guid; remaining directory entries ignored [wtv @ 0x2fc0500] timeline data missing SirDave US The Firm_WNBCDT_2012_02_18_21_34_17.wtv: Invalid data found when processing input
I suggest we concentrate on the transport stream sample until you find a shorter wtv sample to reproduce.
comment:10 Changed 5 months ago by cehoyos
$ ffmpeg -i csi.ts -an -vcodec copy -f null -
ffmpeg version N-48238-g10a3fa8 Copyright (c) 2000-2012 the FFmpeg developers
built on Dec 27 2012 21:51:00 with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl --disable-indev=jack
libavutil 52. 12.100 / 52. 12.100
libavcodec 54. 81.100 / 54. 81.100
libavformat 54. 50.102 / 54. 50.102
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 30.101 / 3. 30.101
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, mpegts, from 'csi.ts':
Duration: 00:00:01.44, start: 1.269000, bitrate: 7733 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.92 tbr, 90k tbn, 119.88 tbc
Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf54.50.102
Stream #0:0: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 59.94 fps, 90k tbn, 59.94 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[null @ 0x200d800] st:0 PTS: 0 DTS: -4500 < -4499 invalid, clipping
[null @ 0x200d800] pts (-1530) < dts (0) in stream 0
[null @ 0x200d800] pts (3060) < dts (4500) in stream 0
[null @ 0x200d800] pts (7560) < dts (9000) in stream 0
[null @ 0x200d800] pts (12060) < dts (13500) in stream 0
[null @ 0x200d800] pts (16560) < dts (18000) in stream 0
[null @ 0x200d800] pts (21060) < dts (22500) in stream 0
[null @ 0x200d800] pts (25560) < dts (27000) in stream 0
[null @ 0x200d800] pts (30060) < dts (31500) in stream 0
[null @ 0x200d800] pts (34560) < dts (36090) in stream 0
[null @ 0x200d800] pts (39060) < dts (40590) in stream 0
[null @ 0x200d800] pts (43560) < dts (45090) in stream 0
[null @ 0x200d800] pts (48060) < dts (49590) in stream 0
[null @ 0x200d800] pts (52560) < dts (54090) in stream 0
[null @ 0x200d800] pts (57060) < dts (58590) in stream 0
[null @ 0x200d800] pts (61560) < dts (63090) in stream 0
[null @ 0x200d800] pts (66060) < dts (67590) in stream 0
[null @ 0x200d800] pts (70560) < dts (72090) in stream 0
[null @ 0x200d800] pts (75060) < dts (76590) in stream 0
[null @ 0x200d800] pts (79560) < dts (81090) in stream 0
frame= 60 fps=0.0 q=-1.0 Lsize=N/A time=00:00:00.93 bitrate=N/A
video:1213kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.001771%
comment:11 Changed 5 months ago by ramitbhalla
Please delete the file, I'll try upload it again with a another ftp client and see if it works.
comment:12 Changed 3 months ago by dodgexander
Any info on this? Getting a lot of these errors with my mpeg2 files.




Is this problem also reproducible with the following command line?
$ ffmpeg -i SirDave?\ US\ The\ Firm_WNBCDT_2012_02_18_21_34_17.wtv -an -vcodec copy out.ts
If yes, please provide complete, uncut console output.