Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#1415 closed defect (fixed)

FFMPEG not able to Stream Copy DVRMS files to TS Files

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

Description

Summary of the bug: FFMPEG is not able to stream copy any DVR-MS files into MPEG TS files.

How to reproduce:
COMMAND:
ffmpeg -i Test3.dvr-ms -acodec copy -vcodec copy -f mpegts test.ts

ffmpeg version N-41195-g8a0efa9 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 31 2012 20:04:59 with gcc 4.6.3
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enab
le-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschro
edinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 55.100 / 51. 55.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, asf, from 'Test3.dvr-ms':
  Metadata:
    DVR Index Granularity: 500
    WM/SubTitleDescription: Journeying south to Myanmar, Luke uncovers the little known foods and flavours of the former
 capital, Yangon. Here he begins his culinary education by learning the art of making the famous Mohinga.
    genre           : Documentary;Other Documentaries
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: SBS HD
    service_name    : SBS HD
    WM/MediaNetworkAffiliation: SBS HD
    WM/MediaOriginalChannel: 30
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
    WM/MediaOriginalRunTime: 1844674
    WM/MediaIsStereo: 0
    WM/MediaIsRepeat: 0
    WM/MediaIsLive  : 0
    WM/MediaIsTape  : 0
    WM/MediaIsDelay : 0
    WM/MediaIsSubtitled: 0
    WM/MediaIsMovie : 0
    WM/MediaIsPremiere: 0
    WM/MediaIsFinale: 0
    WM/MediaIsSAP   : 0
    WM/MediaIsSport : 0
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: 0
    WM/WMRVEncodeTime: 6803286
    WM/WMRVSeriesUID: !GenericSeries!Luke Nguyen's Greater Mekong
    WM/WMRVServiceID: !Generated!2de313550cf54622bf3c9ccd1105c2db
    WM/WMRVRequestID: 184
    WM/WMRVScheduleItemID: 184
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 0
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVHardPrePadding: 184
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: 0
    WM/WMRVDTVContent: 1
    WM/WMRVHDContent: 0
    WM/WMRVEndTime  : 1844674
    WM/WMRVBitrate  : 1844674
    WM/WMRVKeepUntil: 184
    WM/WMRVActualSoftPrePadding: 0
    WM/WMRVActualSoftPostPadding: 0
    WM/WMRVContentProtected: 0
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationDate: 1844674
    WM/WMRVExpirationSpan: 1844674
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : 0
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 198
    WM/MediaThumbStride: 105
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 9
    WM/MediaThumbRatingLevel: 9
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 1970874
    WM/MediaThumbType: 3
    WMFSDKVersion   : 12.0.7601.17514
    WMFSDKNeeded    : 0.0.0.0000
    VBR Peak        : 368
    IsVBR           : 1
    title           : Luke Nguyen's Greater Mekong
  Duration: 00:04:59.84, start: 0.200000, bitrate: 55 kb/s
    Stream #0:0: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0:1: Video: mpeg2video (Main) (DVR  / 0x20525644), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 90000 kb/s, 50 fps,
 50 tbr, 1k tbn, 100 tbc
[mpegts @ 031be640] muxrate VBR, pcr every 5 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'test.ts':
  Metadata:
    DVR Index Granularity: 500
    WM/SubTitleDescription: Journeying south to Myanmar, Luke uncovers the little known foods and flavours of the former
 capital, Yangon. Here he begins his culinary education by learning the art of making the famous Mohinga.
    genre           : Documentary;Other Documentaries
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: SBS HD
    service_name    : SBS HD
    WM/MediaNetworkAffiliation: SBS HD
    WM/MediaOriginalChannel: 30
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
    WM/MediaOriginalRunTime: 1844674
    WM/MediaIsStereo: 0
    WM/MediaIsRepeat: 0
    WM/MediaIsLive  : 0
    WM/MediaIsTape  : 0
    WM/MediaIsDelay : 0
    WM/MediaIsSubtitled: 0
    WM/MediaIsMovie : 0
    WM/MediaIsPremiere: 0
    WM/MediaIsFinale: 0
    WM/MediaIsSAP   : 0
    WM/MediaIsSport : 0
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: 0
    WM/WMRVEncodeTime: 6803286
    WM/WMRVSeriesUID: !GenericSeries!Luke Nguyen's Greater Mekong
    WM/WMRVServiceID: !Generated!2de313550cf54622bf3c9ccd1105c2db
    WM/WMRVRequestID: 184
    WM/WMRVScheduleItemID: 184
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 0
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVHardPrePadding: 184
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: 0
    WM/WMRVDTVContent: 1
    WM/WMRVHDContent: 0
    WM/WMRVEndTime  : 1844674
    WM/WMRVBitrate  : 1844674
    WM/WMRVKeepUntil: 184
    WM/WMRVActualSoftPrePadding: 0
    WM/WMRVActualSoftPostPadding: 0
    WM/WMRVContentProtected: 0
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationDate: 1844674
    WM/WMRVExpirationSpan: 1844674
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : 0
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 198
    WM/MediaThumbStride: 105
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 9
    WM/MediaThumbRatingLevel: 9
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 1970874
    WM/MediaThumbType: 3
    WMFSDKVersion   : 12.0.7601.17514
    WMFSDKNeeded    : 0.0.0.0000
    VBR Peak        : 368
    IsVBR           : 1
    title           : Luke Nguyen's Greater Mekong
    encoder         : Lavf54.6.101
    Stream #0:0: Video: mpeg2video (DVR  / 0x20525644), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 90000 kb/s, 50 fps
, 90k tbn, 50 tbc
    Stream #0:1: Audio: mp2, 48000 Hz, stereo, 192 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 031be640] first pts value must set
av_interleaved_write_frame(): Invalid data found when processing input

Attachments (1)

Test3.dvr-ms (2.0 MB ) - added by ramitb 12 years ago.

Download all attachments as: .zip

Change History (6)

by ramitb, 12 years ago

Attachment: Test3.dvr-ms added

comment:1 by Carl Eugen Hoyos, 12 years ago

Keywords: av_interleaved_write_frame asf mpeg2video added
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

Also reproducible with -an.

comment:2 by Carl Eugen Hoyos, 11 years ago

Works with:
$ ffmpeg -fflags +genpts -i Test3.dvr-ms -acodec copy -vcodec copy test.ts

comment:3 by Carl Eugen Hoyos, 11 years ago

Resolution: fixed
Status: openclosed

I created ticket #1979 with the enhancement request to automatically insert -fflags +genpts if necessary.

comment:4 by ramitb, 11 years ago

Request you to please reopen this issue, it's broken again. I'm not able to convert any DVRMS files.

I'm uploading another sample here (it's too big):
http://www.mediafire.com/?a9rwcywc75i9iw0

I've tried with and without genpts and it's not converting, same error. Here is the sample output

ffmpeg.current -i "..\MPEG-1 DVRMS.dvr-ms" -codec copy -fflags +genpts test.ts
ffmpeg version N-46726-g2f74f8d Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov 13 2012 19:29:51 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable
-bzlib --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enab
le-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroed
inger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52.  6.100 / 52.  6.100
  libavcodec     54. 71.100 / 54. 71.100
  libavformat    54. 36.100 / 54. 36.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 23.100 /  3. 23.100
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
[mpeg2video @ 02d39700] interlaced frame in progressive sequence, ignoring
[mpeg2video @ 02d39700] invalid frame_pred_frame_dct
[mpeg2video @ 02d39700] slice below image (30 >= 30)
[asf @ 003baf60] max_analyze_duration 5000000 reached at 5016000
Input #0, asf, from '..\MPEG-1 DVRMS.dvr-ms':
  Metadata:
    DVR Index Granularity: 500
    WM/SubTitle     : Ch 9, 6:00 PM
    WM/SubTitleDescription: Nine Digital 6:00 PM
    WM/OriginalReleaseTime: 0001-01-01T00:00:00Z
    service_provider: Nine Digital
    service_name    : Nine Digital
    WM/MediaOriginalChannel: 9
    WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
    WM/WMRVServiceID: 191625:4114:1056:1057
    WM/WMRVProgramID: None
    WM/MediaOriginalRunTime: 8201308
    WM/WMRVEncodeTime: 1844674
    WM/MediaIsStereo: 0
    WM/VideoClosedCaptioning: 0
    WM/MediaIsRepeat: 0
    WM/MediaIsLive  : 0
    WM/MediaIsTape  : 0
    WM/MediaIsDelay : 0
    WM/MediaIsSubtitled: 0
    WM/MediaIsMovie : 0
    WM/MediaIsPremiere: 0
    WM/MediaIsFinale: 0
    WM/MediaIsSAP   : 0
    WM/WMRVRequestID: 645
    WM/WMRVScheduleItemID: 656
    WM/WMRVQuality  : 3
    WM/WMRVOriginalSoftPrePadding: 0
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVActualSoftPrePadding: 0
    WM/WMRVHardPrePadding: 0
    WM/WMRVEndTime  : 2579709
    WM/WMRVExpirationDate: 1844674
    WM/WMRVBitrate  : 0
    WM/WMRVKeepUntil: 184
    WM/WMRVHardPostPadding: 0
    WM/WMRVActualSoftPostPadding: 0
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : 0
    WM/WMRVATSCContent: 0
    WM/WMRVDTVContent: 1
    WM/WMRVHDContent: 0
    WM/WMRVContentProtected: 0
    WM/MediaThumbTimeStamp: 1844674
    WM/MediaThumbWidth: 360
    WM/MediaThumbHeight: 288
    WM/MediaThumbStride: 108
    WM/MediaThumbRet: 0
    WM/MediaThumbType: 3
    WM/MediaThumbRatingSystem: 255
    WM/MediaThumbRatingLevel: 255
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WMFSDKVersion   : 11.0.6001.7000
    WMFSDKNeeded    : 0.0.0.0000
    VBR Peak        : 159
    IsVBR           : 1
    title           : Manual Recording
  Duration: 00:03:01.34, start: 37.280000, bitrate: 6117 kb/s
    Stream #0:0: Video: mjpeg, yuvj420p, 200x200 [SAR 96:96 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : TV Thumbnail
      comment         : Movie/video screen capture
    Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s
    Stream #0:2: Video: mpeg2video (DVR  / 0x20525644), yuv420p, 704x480 [SAR 64:45 DAR 1408:675], 12000 kb/s, 25.33 fps
, 25 tbr, 1k tbn, 50 tbc
Output #0, mpegts, to 'test.ts':
  Metadata:
    DVR Index Granularity: 500
    WM/SubTitle     : Ch 9, 6:00 PM
    WM/SubTitleDescription: Nine Digital 6:00 PM
    WM/OriginalReleaseTime: 0001-01-01T00:00:00Z
    service_provider: Nine Digital
    service_name    : Nine Digital
    WM/MediaOriginalChannel: 9
    WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
    WM/WMRVServiceID: 191625:4114:1056:1057
    WM/WMRVProgramID: None
    WM/MediaOriginalRunTime: 8201308
    WM/WMRVEncodeTime: 1844674
    WM/MediaIsStereo: 0
    WM/VideoClosedCaptioning: 0
    WM/MediaIsRepeat: 0
    WM/MediaIsLive  : 0
    WM/MediaIsTape  : 0
    WM/MediaIsDelay : 0
    WM/MediaIsSubtitled: 0
    WM/MediaIsMovie : 0
    WM/MediaIsPremiere: 0
    WM/MediaIsFinale: 0
    WM/MediaIsSAP   : 0
    WM/WMRVRequestID: 645
    WM/WMRVScheduleItemID: 656
    WM/WMRVQuality  : 3
    WM/WMRVOriginalSoftPrePadding: 0
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVActualSoftPrePadding: 0
    WM/WMRVHardPrePadding: 0
    WM/WMRVEndTime  : 2579709
    WM/WMRVExpirationDate: 1844674
    WM/WMRVBitrate  : 0
    WM/WMRVKeepUntil: 184
    WM/WMRVHardPostPadding: 0
    WM/WMRVActualSoftPostPadding: 0
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : 0
    WM/WMRVATSCContent: 0
    WM/WMRVDTVContent: 1
    WM/WMRVHDContent: 0
    WM/WMRVContentProtected: 0
    WM/MediaThumbTimeStamp: 1844674
    WM/MediaThumbWidth: 360
    WM/MediaThumbHeight: 288
    WM/MediaThumbStride: 108
    WM/MediaThumbRet: 0
    WM/MediaThumbType: 3
    WM/MediaThumbRatingSystem: 255
    WM/MediaThumbRatingLevel: 255
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WMFSDKVersion   : 11.0.6001.7000
    WMFSDKNeeded    : 0.0.0.0000
    VBR Peak        : 159
    IsVBR           : 1
    title           : Manual Recording
    encoder         : Lavf54.36.100
    Stream #0:0: Video: mpeg2video (DVR  / 0x20525644), yuv420p, 704x480 [SAR 64:45 DAR 1408:675], q=2-31, 12000 kb/s, 2
5.33 fps, 90k tbn, 50 tbc
    Stream #0:1: Audio: mp2, 48000 Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0:2 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0360a020] st:0 PTS: 33390 DTS: 33390 < 40591 invalid, clipping
[mpegts @ 0360a020] st:0 PTS: 36990 DTS: 36990 < 40592 invalid, clipping
[mpegts @ 0360a020] st:0 PTS: 44190 DTS: 44190 < 51391 invalid, clipping
[mpegts @ 0360a020] st:0 PTS: 47790 DTS: 47790 < 51392 invalid, clipping
[mpegts @ 0360a020] first pts value must set
av_interleaved_write_frame(): Invalid data found when processing input

comment:5 by ramitb, 11 years ago

Please ignore, my bad, I put the fflags in the wrong place. It's working in the right place.

But i'm still getting a lot of these errors:
[mpegts @ 03476920] st:0 PTS: 52648740 DTS: 52648740 < 52651711 invalid, clipping
[mpegts @ 03476920] st:0 PTS: 52650180 DTS: 52650180 < 52651712 invalid, clipping
[mpegts @ 03476920] st:0 PTS: 52653240 DTS: 52653240 < 52656211 invalid, clipping

Note: See TracTickets for help on using tickets.