Opened 5 years ago

Closed 5 years ago

Last modified 5 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 5 years ago.
latest_ffprobe.txt (4.3 KB) - added by hxuanyu 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by hxuanyu

Changed 5 years ago by hxuanyu

comment:1 Changed 5 years ago by cehoyos

Is this problem not reproducible with ffmpeg?

comment:2 Changed 5 years ago by michael

  • Reproduced by developer set
  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Keywords regression added
  • Priority changed from normal to important
  • Version changed from unspecified to git-master
Note: See TracTickets for help on using tickets.