Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#3898 closed defect (fixed)

wtv demuxer returns EOF in the middle of a broken file

Reported by: ramitb Owned by:
Priority: minor Component: avformat
Version: git-master Keywords: wtv
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug: This only happens with some recorded files. The issue is no matter how big the original file is (15 minutes to 2 hours), ffmpeg only remuxes about 50% of the file.

I've included the output here, the original sample I have is about 1GB in size. (15 minutes)

How to reproduce:

ffmpeg -i "c:Doctor Who_BBCAHD_2014_08_23_16_58_00.wtv" -vcodec copy -acodec copy test.ts

ffmpeg version N-62897-g0f9f24c Copyright (c) 2000-2014 the FFmpeg developers
  built on Aug 15 2014 11:44:27 with gcc 4.8.0 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin
/i686-w64-mingw32- --pkg-config=pkg-config --enable-hwaccels --enable-dxva2 --enable-gpl --enable-libx264 --enable-avisy
nth --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-li
btheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --d
isable-w32threads --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-c
flags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschro
edinger --enable-libvpx --enable-libilbc --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32
 --enable-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libb
luray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-l
ibmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --extra-cflags= --extra-cflags= --enable-nonfree
--enable-libfdk-aac --enable-libfaac --enable-runtime-cpudetect
  libavutil      52. 80.100 / 52. 80.100
  libavcodec     55. 60.103 / 55. 60.103
  libavformat    55. 37.102 / 55. 37.102
  libavdevice    55. 13.100 / 55. 13.100
  libavfilter     4.  5.100 /  4.  5.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
[mpeg2video @ 0262f360] Invalid frame dimensions 0x0.
    Last message repeated 30 times
[wtv @ 0262d6c0] Stream #3: not enough frames to estimate rate; consider increasing probesize
Input #0, wtv, from 'c:Doctor Who_BBCAHD_2014_08_23_16_58_00.wtv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : Doctor Who
    WM/SubTitle     : Preshow
    genre           : Drama;General;Series;Sci-Fi/Fantasy
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : Peter Capaldi/Jenna-Louise Coleman/Samuel Anderson;;;
    service_provider: BBCAHD
    service_name    : BBC America HD
    WM/MediaNetworkAffiliation: Satellite
    WM/MediaOriginalChannel: 647
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2014-08-23T07:00:00Z
    WM/MediaOriginalRunTime: 11974957600
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: false
    WM/MediaIsLive  : true
    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: 2014-08-23 23:58:02
    WM/WMRVSeriesUID: !MCSeries!48266208
    WM/WMRVServiceID: !MCService!220772916
    WM/WMRVProgramID: !MCProgram!301952550
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 300
    WM/WMRVOriginalSoftPostPadding: 180
    WM/WMRVHardPrePadding: 4294967116
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: true
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: true
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 198
    WM/MediaThumbStride: 1056
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 9
    WM/MediaThumbRatingLevel: 10
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 4641633065376980942
    Duration        : 10179162251
    WM/WMRVEndTime  : 2014-08-24 00:15:00
    WM/WMRVBitrate  : 3.316121
    WM/WMRVKeepUntil: 4294967295
    WM/WMRVActualSoftPrePadding: 477
    WM/WMRVActualSoftPostPadding: 0
    WM/WMRVContentProtected: false
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationSpan: 9223372036854775807
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : false
  Duration: 00:16:57.22, start: 1.654086, bitrate: 8617 kb/s
    Stream #0:0[0x10](eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:1[0x11]: Video: mpeg2video (Main), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], max. 38810 kb/s, 29.97 fps,
29.97 tbr, 10000k tbn, 59.94 tbc
    Stream #0:2[0x12]: Subtitle: eia_608
    Stream #0:3[0xffffffff]: Video: mjpeg, yuvj420p(pc), 200x113 [SAR 96:96 DAR 200:113], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : TV Thumbnail
File 'test.ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to 'test.ts':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : Doctor Who
    WM/SubTitle     : Preshow
    genre           : Drama;General;Series;Sci-Fi/Fantasy
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : Peter Capaldi/Jenna-Louise Coleman/Samuel Anderson;;;
    service_provider: BBCAHD
    service_name    : BBC America HD
    WM/MediaNetworkAffiliation: Satellite
    WM/MediaOriginalChannel: 647
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2014-08-23T07:00:00Z
    WM/MediaOriginalRunTime: 11974957600
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: false
    WM/MediaIsLive  : true
    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: 2014-08-23 23:58:02
    WM/WMRVSeriesUID: !MCSeries!48266208
    WM/WMRVServiceID: !MCService!220772916
    WM/WMRVProgramID: !MCProgram!301952550
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 300
    WM/WMRVOriginalSoftPostPadding: 180
    WM/WMRVHardPrePadding: 4294967116
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: true
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: true
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 198
    WM/MediaThumbStride: 1056
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 9
    WM/MediaThumbRatingLevel: 10
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 4641633065376980942
    Duration        : 10179162251
    WM/WMRVEndTime  : 2014-08-24 00:15:00
    WM/WMRVBitrate  : 3.316121
    WM/WMRVKeepUntil: 4294967295
    WM/WMRVActualSoftPrePadding: 477
    WM/WMRVActualSoftPostPadding: 0
    WM/WMRVContentProtected: false
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationSpan: 9223372036854775807
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : false
    encoder         : Lavf55.37.102
    Stream #0:0: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, max. 38810 kb/s, 29.97 fps, 90k tbn,
29.97 tbc
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), 384 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=15726 fps=1473 q=-1.0 Lsize=  598845kB time=00:08:48.67 bitrate=9279.2kbits/s
video:527065kB audio:24742kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.524186%

The sample file is too large to upload but is available here:

http://mcebuddy:mcebuddy@files.mcebuddy2x.com/UPLOAD/Item%202100%20converted%20videos%20not%20complete/Doctor%20Who_BBCAHD_2014_08_23_16_58_00.wtv

Any idea why? The original file plays fine.

Change History (16)

comment:1 by ramitb, 10 years ago

Just to let you know the same issue is faced with all encoders, handbrake, ffmpeg remuxsupp etc.
However when playing in MCE or WMP it plays fine. So it's likely a video issue but interestingly still why would ffmpeg stop half way through.

comment:2 by ramitb, 10 years ago

Resolution: invalid
Status: newclosed

I'm closing this ticket however if you're interested in looking into this (why it plays but not encodes) please feel free to reopen it.

comment:3 by Carl Eugen Hoyos, 10 years ago

Component: undeterminedavformat
Keywords: wtv added
Reproduced by developer: set
Resolution: invalid
Status: closedreopened
Summary: Remuxing WTV only remuxes about half the filewtv demuxer returns EOF in the middle of the file
Version: unspecifiedgit-master

Seeking allows to play nearly 17 minutes, both ffmpeg and ffplay stop after 8:48,

$ ffmpeg -i Doctor\ Who_BBCAHD_2014_08_23_16_58_00.wtv -map_metadata -1 -f null -
ffmpeg version N-65922-g2082c00 Copyright (c) 2000-2014 the FFmpeg developers
  built on Aug 27 2014 15:39:49 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  0.101 / 56.  0.101
  libavformat    56.  3.100 / 56.  3.100
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  0.103 /  5.  0.103
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
[mpeg2video @ 0x33c9d60] Invalid frame dimensions 0x0.
    Last message repeated 30 times
[wtv @ 0x33c3c60] Stream #3: not enough frames to estimate rate; consider increasing probesize
Input #0, wtv, from 'Doctor Who_BBCAHD_2014_08_23_16_58_00.wtv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : Doctor Who
    WM/SubTitle     : Preshow
    genre           : Drama;General;Series;Sci-Fi/Fantasy
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : Peter Capaldi/Jenna-Louise Coleman/Samuel Anderson;;;
    service_provider: BBCAHD
    service_name    : BBC America HD
    WM/MediaNetworkAffiliation: Satellite
    WM/MediaOriginalChannel: 647
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2014-08-23T07:00:00Z
    WM/MediaOriginalRunTime: 11974957600
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: false
    WM/MediaIsLive  : true
    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: 2014-08-23 23:58:02
    WM/WMRVSeriesUID: !MCSeries!48266208
    WM/WMRVServiceID: !MCService!220772916
    WM/WMRVProgramID: !MCProgram!301952550
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 300
    WM/WMRVOriginalSoftPostPadding: 180
    WM/WMRVHardPrePadding: 4294967116
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: true
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: true
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 198
    WM/MediaThumbStride: 1056
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 9
    WM/MediaThumbRatingLevel: 10
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 4641633065376980942
    Duration        : 10179162251
    WM/WMRVEndTime  : 2014-08-24 00:15:00
    WM/WMRVBitrate  : 3.316121
    WM/WMRVKeepUntil: 4294967295
    WM/WMRVActualSoftPrePadding: 477
    WM/WMRVActualSoftPostPadding: 0
    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
  Duration: 00:16:57.22, start: 1.654086, bitrate: 8617 kb/s
    Stream #0:0[0x10](eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:1[0x11]: Video: mpeg2video (Main), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], max. 38810 kb/s, 29.97 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
    Stream #0:2[0x12]: Subtitle: eia_608
    Stream #0:3[0xffffffff]: Video: mjpeg, yuvj420p(pc, bt470bg), 200x113 [SAR 96:96 DAR 200:113], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : TV Thumbnail
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf56.3.100
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
    Metadata:
      encoder         : Lavc56.0.101 rawvideo
    Stream #0:1: Audio: pcm_s16le, 48000 Hz, 5.1(side), s16, 4608 kb/s
    Metadata:
      encoder         : Lavc56.0.101 pcm_s16le
Stream mapping:
  Stream #0:1 -> #0:0 (mpeg2video (native) -> rawvideo (native))
  Stream #0:0 -> #0:1 (ac3 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[mpeg2video @ 0x33caac0] ac-tex damaged at 92 603.65 bitrate=N/A
[mpeg2video @ 0x33caac0] Warning MVs not available
[mpeg2video @ 0x33caac0] concealing 981 DC, 981 AC, 981 MV errors in P frame
frame=15725 fps=1003 q=0.0 Lsize=N/A time=00:08:48.76 bitrate=N/A
video:1474kB audio:296910kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
$ time ffplay -autoexit Doctor\ Who_BBCAHD_2014_08_23_16_58_00.wtv
ffplay version N-65922-g2082c00 Copyright (c) 2003-2014 the FFmpeg developers
  built on Aug 27 2014 15:39:49 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  0.101 / 56.  0.101
  libavformat    56.  3.100 / 56.  3.100
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  0.103 /  5.  0.103
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
[mpeg2video @ 0x7f45c0007000] Invalid frame dimensions 0x0. f=0/0
    Last message repeated 30 times
[wtv @ 0x7f45c0000920] Stream #3: not enough frames to estimate rate; consider increasing probesize
Input #0, wtv, from 'Doctor Who_BBCAHD_2014_08_23_16_58_00.wtv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : Doctor Who
    WM/SubTitle     : Preshow
    genre           : Drama;General;Series;Sci-Fi/Fantasy
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : Peter Capaldi/Jenna-Louise Coleman/Samuel Anderson;;;
    service_provider: BBCAHD
    service_name    : BBC America HD
    WM/MediaNetworkAffiliation: Satellite
    WM/MediaOriginalChannel: 647
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2014-08-23T07:00:00Z
    WM/MediaOriginalRunTime: 11974957600
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: false
    WM/MediaIsLive  : true
    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: 2014-08-23 23:58:02
    WM/WMRVSeriesUID: !MCSeries!48266208
    WM/WMRVServiceID: !MCService!220772916
    WM/WMRVProgramID: !MCProgram!301952550
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 300
    WM/WMRVOriginalSoftPostPadding: 180
    WM/WMRVHardPrePadding: 4294967116
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: true
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: true
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 198
    WM/MediaThumbStride: 1056
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 9
    WM/MediaThumbRatingLevel: 10
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 4641633065376980942
    Duration        : 10179162251
    WM/WMRVEndTime  : 2014-08-24 00:15:00
    WM/WMRVBitrate  : 3.316121
    WM/WMRVKeepUntil: 4294967295
    WM/WMRVActualSoftPrePadding: 477
    WM/WMRVActualSoftPostPadding: 0
    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
  Duration: 00:16:57.22, start: 1.654086, bitrate: 8617 kb/s
    Stream #0:0[0x10](eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:1[0x11]: Video: mpeg2video (Main), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], max. 38810 kb/s, 29.97 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
    Stream #0:2[0x12]: Subtitle: eia_608
    Stream #0:3[0xffffffff]: Video: mjpeg, yuvj420p(pc, bt470bg), 200x113 [SAR 96:96 DAR 200:113], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : TV Thumbnail
No codec could be found with id 1664495672
[mpeg2video @ 0x7f45c0007000] ac-tex damaged at 92 60    0B f=0/0
[mpeg2video @ 0x7f45c0007000] Warning MVs not available
[mpeg2video @ 0x7f45c0007000] concealing 981 DC, 981 AC, 981 MV errors in P frame
 530.35 A-V: -0.014 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0

real    8m48.768s
user    2m37.037s
sys     0m6.833s

But with a ten second seek at ~528 it works fine:

$ ffplay -autoexit Doctor\ Who_BBCAHD_2014_08_23_16_58_00.wtv
ffplay version N-65922-g2082c00 Copyright (c) 2003-2014 the FFmpeg developers
  built on Aug 27 2014 15:39:49 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  0.101 / 56.  0.101
  libavformat    56.  3.100 / 56.  3.100
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  0.103 /  5.  0.103
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
[mpeg2video @ 0x7fdbc8007000] Invalid frame dimensions 0x0. f=0/0
    Last message repeated 30 times
[wtv @ 0x7fdbc8000920] Stream #3: not enough frames to estimate rate; consider increasing probesize
Input #0, wtv, from 'Doctor Who_BBCAHD_2014_08_23_16_58_00.wtv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : Doctor Who
    WM/SubTitle     : Preshow
    genre           : Drama;General;Series;Sci-Fi/Fantasy
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : Peter Capaldi/Jenna-Louise Coleman/Samuel Anderson;;;
    service_provider: BBCAHD
    service_name    : BBC America HD
    WM/MediaNetworkAffiliation: Satellite
    WM/MediaOriginalChannel: 647
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2014-08-23T07:00:00Z
    WM/MediaOriginalRunTime: 11974957600
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: false
    WM/MediaIsLive  : true
    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: 2014-08-23 23:58:02
    WM/WMRVSeriesUID: !MCSeries!48266208
    WM/WMRVServiceID: !MCService!220772916
    WM/WMRVProgramID: !MCProgram!301952550
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 300
    WM/WMRVOriginalSoftPostPadding: 180
    WM/WMRVHardPrePadding: 4294967116
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: true
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: true
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 198
    WM/MediaThumbStride: 1056
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 9
    WM/MediaThumbRatingLevel: 10
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 4641633065376980942
    Duration        : 10179162251
    WM/WMRVEndTime  : 2014-08-24 00:15:00
    WM/WMRVBitrate  : 3.316121
    WM/WMRVKeepUntil: 4294967295
    WM/WMRVActualSoftPrePadding: 477
    WM/WMRVActualSoftPostPadding: 0
    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
  Duration: 00:16:57.22, start: 1.654086, bitrate: 8617 kb/s
    Stream #0:0[0x10](eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:1[0x11]: Video: mpeg2video (Main), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], max. 38810 kb/s, 29.97 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
    Stream #0:2[0x12]: Subtitle: eia_608
    Stream #0:3[0xffffffff]: Video: mjpeg, yuvj420p(pc, bt470bg), 200x113 [SAR 96:96 DAR 200:113], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : TV Thumbnail
No codec could be found with id 1664495672
1019.69 A-V: -0.031 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0

in reply to:  2 comment:4 by Carl Eugen Hoyos, 10 years ago

Status: reopenedopen

Replying to ramitbhalla:

I'm closing this ticket

Why?

comment:5 by ramitb, 10 years ago

Since I saw handbrake display the same symptoms, wasn't sure if it warranted a "bug" status.

comment:6 by Carl Eugen Hoyos, 10 years ago

Since the following is not necessarily clear;

  • A file that plays fine with WMP but fails with ffplay (like this one) warrants a bug report.
  • A file that plays fine with WMP but fails transcoding with ffmpeg warrants a bug report.

Both are completely independent of how other open-source tools behave: It makes no big difference if a file plays fine with vlc or MPlayer when you open a bug report on this bug tracker.

in reply to:  description comment:7 by Carl Eugen Hoyos, 10 years ago

Priority: normalminor

Replying to ramitbhalla:

The original file plays fine.

I am not a native speaker and I probably just misunderstood this sentence.
I would still like to know what you meant.

Marking as minor since there is no application known that behaves better than FFmpeg.

comment:8 by ramitb, 10 years ago

The file plays back just fine in WMP and MCE, it doesn't stop half way through. So I figured if it can play fine it should also be able to convert/remux. Since FFMEPG failed to remux/convert it I reported it.

in reply to:  8 comment:9 by Carl Eugen Hoyos, 10 years ago

Replying to ramitbhalla:

The file plays back just fine in WMP

Which version did you test? It fails here just like FFmpeg but with an OOM failure.

Please comment on ticket #2252, it is very important that you explain the misunderstanding there!

comment:10 by ramitb, 10 years ago

Windows 7, WMP v12

need some time to look into the 2252 to test it. I don't have any xbox equipment so have requested some folks to test it.

in reply to:  10 comment:11 by Carl Eugen Hoyos, 10 years ago

Replying to ramitbhalla:

Windows 7, WMP v12

Fails here after 8:48

need some time to look into the 2252 to test it. I don't have any xbox equipment so have requested some folks to test it.

You misunderstand: The claim is that FFmpeg from MCEBuddy produces a different output file than FFmpeg from http://ffmpeg.org
Is that true?

comment:12 by ramitb, 10 years ago

I don't see why it would which is why I asked for the 2 outputs to compare.

comment:13 by ramitb, 10 years ago

BTW you're right about 8:48. I was referring to the ability to skip past it and have WMP play the entire file but I can see, with ffmpeg I can use the -ss to skip past it too.

comment:14 by Carl Eugen Hoyos, 10 years ago

Summary: wtv demuxer returns EOF in the middle of the filewtv demuxer returns EOF in the middle of a broken file

comment:15 by Carl Eugen Hoyos, 10 years ago

Resolution: fixed
Status: openclosed

Fixed by Peter Ross in 9b8eedd7 - thank you for the sample!

comment:16 by ramitb, 10 years ago

Thanks @pross, tested and working.

Note: See TracTickets for help on using tickets.