#2433: FFMPEG reporting wrong video duration after encoding WTV to TS MPEG2 -------------------------------------+------------------------------------- Reporter: ramitbhalla | Owner: Type: defect | Status: closed Priority: normal | Component: Version: git-master | undetermined Keywords: | Resolution: Blocking: | worksforme Analyzed by developer: 0 | Blocked By: | Reproduced by developer: 0 -------------------------------------+------------------------------------- Changes (by cehoyos):
* keywords: regression => * priority: important => normal * status: reopened => closed * resolution: => worksforme Comment: Unrelated: As explained in ticket #1835, you should probably use -qscale 2 Related: Why are you using 32bit builds? I would expect the 64bit builds to be faster (additionally, they are less buggy). Works fine here, probably related to ticket #2435. {{{ $ ffmpeg -probesize 100M -analyzeduration 300M -y -ss 2 -i Wrong\ Audio\ Track\ Selected\ -\ Hearing\ impaired.wtv -vcodec mpeg2video -qscale 0 -map 0:3 -qscale 0 -r 25 -acodec copy -map 0:a test.ts ffmpeg version N-51511-g599866f Copyright (c) 2000-2013 the FFmpeg developers built on Apr 26 2013 16:55:14 with gcc 4.8.0 (GCC) configuration: --cc='/usr/local/gcc-4.8.0/bin/gcc -m32' libavutil 52. 24.100 / 52. 24.100 libavcodec 55. 2.100 / 55. 2.100 libavformat 55. 1.100 / 55. 1.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 48.105 / 3. 48.105 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 [wtv @ 0x9df45a0] truncated file Last message repeated 3 times [h264 @ 0x9df6360] non-existing SPS 0 referenced in buffering period [h264 @ 0x9df6360] non-existing PPS referenced [h264 @ 0x9df6360] non-existing SPS 0 referenced in buffering period [h264 @ 0x9df6360] non-existing PPS 0 referenced [h264 @ 0x9df6360] decode_slice_header error ... [h264 @ 0x9df6360] non-existing PPS 0 referenced [h264 @ 0x9df6360] decode_slice_header error [h264 @ 0x9df6360] no frame! [h264 @ 0x9df6360] mmco: unref short failure Last message repeated 2 times [wtv @ 0x9df45a0] Stream #4: not enough frames to estimate rate; consider increasing probesize Input #0, wtv, from 'Wrong Audio Track Selected - Hearing impaired.wtv': Metadata: WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74 WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000 Title : Ripper Street WM/SubTitle : I Need Light WM/SubTitleDescription: Crime drama set in Victorian London. A young woman is found brutally murdered, the hallmark signs of the Ripper upon her. One-time H Division boss Chief Inspector Frederick Abberline believes that Jack has returned, but Reid - the precinct's new master - genre : Drama;Other WM/OriginalReleaseTime: 0 WM/MediaCredits : Matthew Macfadyen/Jerome Flynn/Adam Rothenberg/MyAnna Buring/Jonathan Barnwell/Clive Russell/David Wilmot/David Dawson/Charlene McKenna/Amanda Hale/Steven Robertson/Mark Dexter/Geoff Bell/Julian Bleach/Morgan Jones/Garry Mountaine/Sarah Gallagher/Bush Mou service_provider: BBC One HD service_name : BBC One HD WM/MediaOriginalChannel: 101 WM/MediaOriginalChannelSubNumber: 0 WM/MediaOriginalBroadcastDateTime: 2012-12-30T00:00:00Z WM/MediaOriginalRunTime: 38963956829 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/Provider : MediaCenterDefault WM/VideoClosedCaptioning: false WM/WMRVEncodeTime: 2012-12-30 20:58:03 WM/WMRVSeriesUID: !GenericSeries!Ripper Street WM/WMRVServiceID: !MCService!759242 WM/WMRVProgramID: !MCProgram!48631413 WM/WMRVRequestID: 0 WM/WMRVScheduleItemID: 0 WM/WMRVQuality : 3 WM/WMRVOriginalSoftPrePadding: 420 WM/WMRVOriginalSoftPostPadding: 180 WM/WMRVHardPrePadding: -300 WM/WMRVHardPostPadding: 0 WM/WMRVATSCContent: false WM/WMRVDTVContent: true WM/WMRVHDContent: false Duration : 38973390000 WM/WMRVEndTime : 2012-12-30 22:03:00 WM/WMRVBitrate : 7.082451 WM/WMRVKeepUntil: 0 WM/WMRVActualSoftPrePadding: 416 WM/WMRVActualSoftPostPadding: 180 WM/WMRVContentProtected: false WM/WMRVContentProtectedPercent: 0 WM/WMRVExpirationDate: 1901-12-13 20:45:52 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: 255 WM/MediaThumbRatingLevel: 255 WM/MediaThumbRatingAttributes: 0 WM/MediaThumbAspectRatioX: 1920 WM/MediaThumbAspectRatioY: 1080 WM/MediaThumbTimeStamp: -4616189618054758400 Duration: 01:05:03.16, start: 2.000998, bitrate: 7071 kb/s Stream #0:0[0x97](eng): Subtitle: dvb_subtitle Stream #0:1[0x98](eng): Audio: aac_latm ([2][22][0][0] / 0x1602), 48000 Hz, stereo, fltp (hearing impaired) Stream #0:2[0x99](eng): Audio: aac_latm ([2][22][0][0] / 0x1602), 48000 Hz, stereo, fltp Stream #0:3[0x9a]: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 10000k tbn, 50 tbc Stream #0:4[0x0]: Video: mjpeg, yuvj420p, 200x113 [SAR 120:120 DAR 200:113], 90k tbr, 90k tbn, 90k tbc Metadata: title : TV Thumbnail Please use -q:a or -q:v, -qscale is ambiguous Last message repeated 1 times Output #0, mpegts, to 'test.ts': Metadata: WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74 WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000 Title : Ripper Street WM/SubTitle : I Need Light WM/SubTitleDescription: Crime drama set in Victorian London. A young woman is found brutally murdered, the hallmark signs of the Ripper upon her. One-time H Division boss Chief Inspector Frederick Abberline believes that Jack has returned, but Reid - the precinct's new master - genre : Drama;Other WM/OriginalReleaseTime: 0 WM/MediaCredits : Matthew Macfadyen/Jerome Flynn/Adam Rothenberg/MyAnna Buring/Jonathan Barnwell/Clive Russell/David Wilmot/David Dawson/Charlene McKenna/Amanda Hale/Steven Robertson/Mark Dexter/Geoff Bell/Julian Bleach/Morgan Jones/Garry Mountaine/Sarah Gallagher/Bush Mou service_provider: BBC One HD service_name : BBC One HD WM/MediaOriginalChannel: 101 WM/MediaOriginalChannelSubNumber: 0 WM/MediaOriginalBroadcastDateTime: 2012-12-30T00:00:00Z WM/MediaOriginalRunTime: 38963956829 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/Provider : MediaCenterDefault WM/VideoClosedCaptioning: false WM/WMRVEncodeTime: 2012-12-30 20:58:03 WM/WMRVSeriesUID: !GenericSeries!Ripper Street WM/WMRVServiceID: !MCService!759242 WM/WMRVProgramID: !MCProgram!48631413 WM/WMRVRequestID: 0 WM/WMRVScheduleItemID: 0 WM/WMRVQuality : 3 WM/WMRVOriginalSoftPrePadding: 420 WM/WMRVOriginalSoftPostPadding: 180 WM/WMRVHardPrePadding: -300 WM/WMRVHardPostPadding: 0 WM/WMRVATSCContent: false WM/WMRVDTVContent: true WM/WMRVHDContent: false Duration : 38973390000 WM/WMRVEndTime : 2012-12-30 22:03:00 WM/WMRVBitrate : 7.082451 WM/WMRVKeepUntil: 0 WM/WMRVActualSoftPrePadding: 416 WM/WMRVActualSoftPostPadding: 180 WM/WMRVContentProtected: false WM/WMRVContentProtectedPercent: 0 WM/WMRVExpirationDate: 1901-12-13 20:45:52 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: 255 WM/MediaThumbRatingLevel: 255 WM/MediaThumbRatingAttributes: 0 WM/MediaThumbAspectRatioX: 1920 WM/MediaThumbAspectRatioY: 1080 WM/MediaThumbTimeStamp: -4616189618054758400 encoder : Lavf55.1.100 Stream #0:0: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream #0:1(eng): Audio: aac_latm ([2][22][0][0] / 0x1602), 48000 Hz, stereo (hearing impaired) Stream #0:2(eng): Audio: aac_latm ([2][22][0][0] / 0x1602), 48000 Hz, stereo Stream mapping: Stream #0:3 -> #0:0 (h264 -> mpeg2video) Stream #0:1 -> #0:1 (copy) Stream #0:2 -> #0:2 (copy) Press [q] to stop, [?] for help [h264 @ 0x9ed8de0] Missing reference picture, default is 0 [h264 @ 0x9ed8de0] decode_slice_header error [h264 @ 0x9ed8de0] Missing reference picture, default is 0 [h264 @ 0x9ed8de0] decode_slice_header error [h264 @ 0x9ed8de0] Missing reference picture, default is 0 [h264 @ 0x9ed8de0] decode_slice_header error [h264 @ 0x9f1e680] mmco: unref short failure [h264 @ 0x9f1e680] reference picture missing during reorder [h264 @ 0x9f1e680] Missing reference picture, default is 65438 Last message repeated 1 times [h264 @ 0x9f1e680] reference picture missing during reorder [h264 @ 0x9f1e680] Missing reference picture, default is 65438 Last message repeated 1 times [h264 @ 0x9f20660] mmco: unref short failure [h264 @ 0x9f1e680] reference picture missing during reorder [h264 @ 0x9f1e680] Missing reference picture, default is 65438 Last message repeated 1 times [h264 @ 0x9f1e680] reference picture missing during reorder [h264 @ 0x9f1e680] Missing reference picture, default is 65438 Last message repeated 1 times [h264 @ 0x9f1e680] reference picture missing during reorder [h264 @ 0x9f1e680] Missing reference picture, default is 65438 Last message repeated 1 times [h264 @ 0x9f1e680] reference picture missing during reorder [h264 @ 0x9f1e680] Missing reference picture, default is 65438 Last message repeated 1 times error while decoding MB 6 54, bytestream (-13)=00:23:30.84 bitrate=12547.4kbits/s dup=42 drop=0 [h264 @ 0x9ed8de0] concealing 1723 DC, 1723 AC, 1723 MV errors in B frame [h264 @ 0x9f1f340] mmco: unref short failure [h264 @ 0x9f1f340] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one frame=72782 fps=155 q=0.0 Lsize= 4210946kB time=00:48:31.24 bitrate=11849.3kbits/s dup=215 drop=0 video:3835456kB audio:59526kB subtitle:0 global headers:0kB muxing overhead 8.112076% }}} {{{ $ ffmpeg -i test.ts ffmpeg version N-51511-g599866f Copyright (c) 2000-2013 the FFmpeg developers built on Apr 26 2013 16:55:14 with gcc 4.8.0 (GCC) configuration: --cc='/usr/local/gcc-4.8.0/bin/gcc -m32' libavutil 52. 24.100 / 52. 24.100 libavcodec 55. 2.100 / 55. 2.100 libavformat 55. 1.100 / 55. 1.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 48.105 / 3. 48.105 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 Input #0, mpegts, from 'test.ts': Duration: 00:48:31.24, start: 1.400000, bitrate: 11849 kb/s Program 1 Metadata: service_name : BBC One HD service_provider: BBC One HD Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101](eng): Audio: aac_latm ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp (hearing impaired) Stream #0:2[0x102](eng): Audio: aac_latm ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp At least one output file must be specified }}} -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2433#comment:18> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://avcodec.org/mailman/listinfo/ffmpeg-trac