Ticket #2080 (closed defect: duplicate)
Conversion of some .wtv files to .mpg produces unplayable file
| Reported by: | peterdeg | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | avformat |
| Version: | git-master | Keywords: | mpegps |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
Summary of the bug: Using Windows 8 Pro with Media Center to record digital TV. FFmpeg is then used to convert the .wtv files to .mpg using "-vcodec copy -acodec copy" options for playback on a PS3.
Some (not all) recordings from one TV station do not convert properly (have not encountered the problem with any other station.
When attempting to play the file using Media Player, it freezes at the first frame. When playing on a PS3, the video plays correctly but there is no audio.
The conversion produces "mpeg_decode_postinit() failure" errors. Modifying analyzeduration and probesize does not remove the error.
How to reproduce:
ffmpeg.exe -y -i "Pat Callinan's 4x4 Adventures_Ten Digital_2012_12_23_11_57_18.wtv" -vcodec copy -acodec copy -f dvd "Pat Callinan's 4x4 Adventures_Ten Digital_2012_12_23_11_57_18.mpg" ffmpeg version N-47062-g26c531c Copyright (c) 2000-2012 the FFmpeg developers built on Nov 25 2012 12:25:21 with gcc 4.7.2 (GCC)}}} I have a sample .wtv file cut down to 10MB. When I convert the sample to .mpg, it does play on Media Player but without sound.
Attachments
Change History
Changed 6 months ago by peterdeg
-
attachment
sample.log
added
comment:2 Changed 6 months ago by peterdeg
Hope the files are readable. wtv_file_fails_convert_to_mpg*
Apologies for the size, I did truncate them to 10MB but something went wrong somewhere and I managed to start uploading the full file (twice) Hopefully, what I have uploaded is useable
comment:3 Changed 5 months ago 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?
comment:4 follow-up: ↓ 5 Changed 5 months ago by peterdeg
Sorry to take so long to respond. Was doing some further testing.
I have two files. The original ~2GB file .mpg and a the small 10MB sample I extracted with dd.
I have tried playing these samples locally on the pc (Win8) using ffplay N-47062-g26c531c, VLC 2.05 and Windows Media Player 12.0.9200.16420.
The pc also runs Twonky to share the files so I can play them remotely on a PS3.
ffplay
- small - video starts immediately. video has sound.
- large - video starts immediately. video has sound.
VLC
- small - video starts immediately. video has sound.
- large - video starts immediately. video has sound.
WMP
- small - video starts after 2 second pause. video does not have sound.
- large - video starts after 150 second pause. video does not have sound. resource monitor shows wmp reading from the disk at ~25MB/sec for the first minute of pause and dropping to 11MB/sec for the rest of the pause.
PS3
- small - video starts immediately. video does not have sound.
- large - video starts immediately. video does not have sound.
In the last couple of months, I've recorded over 50 tv programs on this pc and converted them to .mpg for playback. The problem I'm seeing has so far only happened with shows from one channel (but not all shows on that channel) The original .wtv files plays correctly using WMP.



Output from conversion showing 'mpeg_decode_postinit() failure'