[FFmpeg-trac] #3686(undetermined:new): ffprobe returns incorrect duration
FFmpeg
trac at avcodec.org
Fri May 30 03:08:53 CEST 2014
#3686: ffprobe returns incorrect duration
-------------------------------------+-------------------------------------
Reporter: hxuanyu | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
the test video has 7 streams, both ffmpeg-2.0.1 and latest git header
select v:4 and a:5
ffprobe built from latest returns:
Duration: 26:30:50.12, start: 44036.917489, bitrate: 1 kb/s
ffprobe 2.0.1 returns:
Duration: 00:00:07.10, start: 39848.510611, bitrate: 17980 kb/s
using av_rescale(pFormatCtx->streams[i]->duration,
pFormatCtx->streams[i]->time_base.num,
pFormatCtx->streams[i]->time_base.den) to calculate the duration,
ffprobe 2.0.1 shows v:4 has invalid duration
Video [0].length = 7
Audio [1].length is AV_NOPTS_VALUE
Audio [2].length is AV_NOPTS_VALUE
Audio [3].length = 7
Video [4].length is AV_NOPTS_VALUE
Audio [5].length is AV_NOPTS_VALUE
Audio [6].length = 7
Video [7].length = 7
Audio [8].length is AV_NOPTS_VALUE
Audio [9].length is AV_NOPTS_VALUE
Audio [10].length = 6
ffprobe latest shows v:4 has a duration of 95450 seconds
Video [0].length = 7
Audio [1].length is AV_NOPTS_VALUE
Audio [2].length = 6
Audio [3].length = 7
Video [4].length = 95450
Audio [5].length is AV_NOPTS_VALUE
Audio [6].length = 7
Video [7].length = 7
Audio [8].length is AV_NOPTS_VALUE
Audio [9].length is AV_NOPTS_VALUE
Audio [10].length = 6
But in fact the actual duration should be 7 seconds so what ffprobe latest
returns is not correct.
the test video is here
https://dl.dropboxusercontent.com/u/89678527/aaaaaaaavvv_mpeg2video_30_yuv420p_dar4x3_sar10x11_ac3_48000_1_0.ts
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3686>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list