Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#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)

201_ffprobe.txt (4.2 KB ) - added by hxuanyu 11 years ago.
latest_ffprobe.txt (4.3 KB ) - added by hxuanyu 11 years ago.

Download all attachments as: .zip

Change History (5)

by hxuanyu, 11 years ago

Attachment: 201_ffprobe.txt added

by hxuanyu, 11 years ago

Attachment: latest_ffprobe.txt added

comment:1 by Carl Eugen Hoyos, 11 years ago

Is this problem not reproducible with ffmpeg?

comment:2 by Michael Niedermayer, 10 years ago

Reproduced by developer: set
Resolution: fixed
Status: newclosed

comment:3 by Carl Eugen Hoyos, 10 years ago

Component: undeterminedavformat
Keywords: regression added
Priority: normalimportant
Version: unspecifiedgit-master
Note: See TracTickets for help on using tickets.