[FFmpeg-trac] #2080(undetermined:new): Conversion of some .wtv files to .mpg produces unplayable file

FFmpeg trac at avcodec.org
Tue Jan 8 01:29:42 CET 2013


#2080: Conversion of some .wtv files to .mpg produces unplayable file
-------------------------------------+-------------------------------------
             Reporter:  peterdeg     |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by cehoyos):

 I tested the following:
 {{{
 $ ffmpeg -i wtv_file_fails_convert_to_mpg.wtv -vcodec copy -acodec copy
 out.mpg
 ffmpeg version N-48607-gdbf0a90 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Jan  7 2013 23:18:39 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --disable-indev=jack
   libavutil      52. 13.100 / 52. 13.100
   libavcodec     54. 86.100 / 54. 86.100
   libavformat    54. 59.106 / 54. 59.106
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 32.100 /  3. 32.100
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 [wtv @ 0x301a780] reported file length (0xbcc50cd7) exceeds number of
 available sectors (0x40000000)
 [wtv @ 0x301a780] truncated file
     Last message repeated 2 times
 [mjpeg @ 0x3058bc0] overread 8
 [mpeg2video @ 0x3021e00] 0x0 is invalid
     Last message repeated 2 times
 [mp2 @ 0x3021580] Header missing
 [mpeg2video @ 0x3021e00] 0x0 is invalid
     Last message repeated 2 times
 [wtv @ 0x301a780] max_analyze_duration 5000000 reached at 5016000
 Input #0, wtv, from 'wtv_file_fails_convert_to_mpg.wtv':
   Metadata:
     WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
     WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
     Title           : Pat Callinan's 4x4 Adventures
     WM/SubTitleDescription: Pat Callinan, the editor of 4WD Monthly
 Magazine, travels far and wide visiting remote places in Australia that
 are only accessible by 4 wheel drive. (Or by foot, but considering this is
 a car show, walking might get short shrift.) This is what these cars
     genre           : Adventure;Lifestyle;Travel;Other
     WM/OriginalReleaseTime: 0
     WM/MediaCredits : ;;;
     service_provider: Ten Digital
     service_name    : Ten Digital
     WM/MediaNetworkAffiliation: IceTV
     WM/MediaOriginalChannel: 10
     WM/MediaOriginalChannelSubNumber: 0
     WM/MediaOriginalBroadcastDateTime: 2012-12-22T13:00:00Z
     WM/MediaOriginalRunTime: 46575157557
     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: PG
     WM/Provider     : MediaCenterDefault
     WM/VideoClosedCaptioning: false
     WM/WMRVEncodeTime: 2012-12-23 00:57:22
     WM/WMRVSeriesUID: !Series!14502
     WM/WMRVServiceID: !Service!5
     WM/WMRVProgramID: !Program!107052805
     WM/WMRVRequestID: 0
     WM/WMRVScheduleItemID: 0
     WM/WMRVQuality  : 0
     WM/WMRVOriginalSoftPrePadding: 480
     WM/WMRVOriginalSoftPostPadding: 900
     WM/WMRVHardPrePadding: -300
     WM/WMRVHardPostPadding: 0
     WM/WMRVATSCContent: false
     WM/WMRVDTVContent: true
     WM/WMRVHDContent: false
     WM/MediaThumbWidth: 352
     WM/MediaThumbHeight: 281
     WM/MediaThumbStride: 1056
     WM/MediaThumbRet: 0
     WM/MediaThumbRatingSystem: 255
     WM/MediaThumbRatingLevel: 255
     WM/MediaThumbRatingAttributes: 0
     WM/MediaThumbAspectRatioX: 16
     WM/MediaThumbAspectRatioY: 9
     WM/MediaThumbTimeStamp: -4616189618054758400
   Duration: 00:25:35.50, start: 1.638778, bitrate: 354 kb/s
     Stream #0:0[0x1f](eng): Subtitle: dvb_teletext
     Stream #0:1[0x21](eng): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz,
 stereo, s16p, 256 kb/s
     Stream #0:2[0x22]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR
 64:45 DAR 16:9], 25 fps, 25 tbr, 10000k tbn, 50 tbc
     Stream #0:3[0x0]: Video: mjpeg, yuvj420p, 200x160 [SAR 96:96 DAR 5:4],
 90k tbr, 90k tbn, 90k tbc
     Metadata:
       title           : TV Thumbnail
 Output #0, mpeg, to 'out.mpg':
   Metadata:
     WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
     WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
     Title           : Pat Callinan's 4x4 Adventures
     WM/SubTitleDescription: Pat Callinan, the editor of 4WD Monthly
 Magazine, travels far and wide visiting remote places in Australia that
 are only accessible by 4 wheel drive. (Or by foot, but considering this is
 a car show, walking might get short shrift.) This is what these cars
     genre           : Adventure;Lifestyle;Travel;Other
     WM/OriginalReleaseTime: 0
     WM/MediaCredits : ;;;
     service_provider: Ten Digital
     service_name    : Ten Digital
     WM/MediaNetworkAffiliation: IceTV
     WM/MediaOriginalChannel: 10
     WM/MediaOriginalChannelSubNumber: 0
     WM/MediaOriginalBroadcastDateTime: 2012-12-22T13:00:00Z
     WM/MediaOriginalRunTime: 46575157557
     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: PG
     WM/Provider     : MediaCenterDefault
     WM/VideoClosedCaptioning: false
     WM/WMRVEncodeTime: 2012-12-23 00:57:22
     WM/WMRVSeriesUID: !Series!14502
     WM/WMRVServiceID: !Service!5
     WM/WMRVProgramID: !Program!107052805
     WM/WMRVRequestID: 0
     WM/WMRVScheduleItemID: 0
     WM/WMRVQuality  : 0
     WM/WMRVOriginalSoftPrePadding: 480
     WM/WMRVOriginalSoftPostPadding: 900
     WM/WMRVHardPrePadding: -300
     WM/WMRVHardPostPadding: 0
     WM/WMRVATSCContent: false
     WM/WMRVDTVContent: true
     WM/WMRVHDContent: false
     WM/MediaThumbWidth: 352
     WM/MediaThumbHeight: 281
     WM/MediaThumbStride: 1056
     WM/MediaThumbRet: 0
     WM/MediaThumbRatingSystem: 255
     WM/MediaThumbRatingLevel: 255
     WM/MediaThumbRatingAttributes: 0
     WM/MediaThumbAspectRatioX: 16
     WM/MediaThumbAspectRatioY: 9
     WM/MediaThumbTimeStamp: -4616189618054758400
     encoder         : Lavf54.59.106
     Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR 16:9],
 q=2-31, 25 fps, 90k tbn, 25 tbc
     Stream #0:1(eng): Audio: mp2 (P[0][0][0] / 0x0050), 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
 frame=  341 fps=0.0 q=-1.0 Lsize=    8232kB time=00:00:14.16
 bitrate=4762.1kbits/s
 video:7759kB audio:436kB subtitle:0 global headers:0kB muxing overhead
 0.452536%
 }}}
 {{{
 $ md5sum out.mpg
 91d2e34203c5405ab718afd0ff334fcc  out.mpg
 }}}
 {{{
 $ ffmpeg -i out.mpg
 ffmpeg version N-48607-gdbf0a90 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Jan  7 2013 23:18:39 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --disable-indev=jack
   libavutil      52. 13.100 / 52. 13.100
   libavcodec     54. 86.100 / 54. 86.100
   libavformat    54. 59.106 / 54. 59.106
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 32.100 /  3. 32.100
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 [mp2 @ 0x13efa60] Header missing
 [mpeg @ 0x13e9500] max_analyze_duration 5000000 reached at 5016000
 Input #0, mpeg, from 'out.mpg':
   Duration: 00:00:14.12, start: 0.500000, bitrate: 4775 kb/s
     Stream #0:0[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s
     Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR
 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
 At least one output file must be specified
 }}}
 The output file looks as expected and plays fine with ffplay and MPlayer
 (and vlc).
 What is the exact problem?

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


More information about the FFmpeg-trac mailing list