#3686 closed defect (fixed)
ffprobe returns incorrect duration
Reported by: | hxuanyu | Owned by: | |
---|---|---|---|
Priority: | important | Component: | avformat |
Version: | git-master | Keywords: | regression |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
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
Attachments (2)
Change History (5)
by , 11 years ago
Attachment: | 201_ffprobe.txt added |
---|
by , 11 years ago
Attachment: | latest_ffprobe.txt added |
---|
comment:1 by , 11 years ago
comment:2 by , 10 years ago
Reproduced by developer: | set |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:3 by , 10 years ago
Component: | undetermined → avformat |
---|---|
Keywords: | regression added |
Priority: | normal → important |
Version: | unspecified → git-master |
Regression since 394b0c830a21e6fa343053d3b8fa92b9b08fd380
Is this problem not reproducible with
ffmpeg
?