[FFmpeg-devel] [PATCH] Display decoded frame number on error
Gyan
ffmpeg at gyani.pro
Fri Jul 12 13:57:04 EEST 2019
On 12-07-2019 04:08 PM, Remi Achard wrote:
>> Which is good: that means you get the same number with or without it.
>>
> Sorry I was unclear, I mean that best_effort_timestamp is relative to trim
> start.
> Would be nice to have the abosulte timestamp in the file, regardless of
> where the -ss flag starts no ?
Add `-copyts` for that. If you want the index of the first decode
failure, you don't need this patch. Run with `-xerror -v verbose`.
ist->frames_decoded will be printed for each input stream. Add 1 to
that. The `time=` value at the end should be the timestamp + duration of
the last successfully decoded frame, but if you have other streams or
vsync cfr set, this may not hold.
Gyan
More information about the ffmpeg-devel
mailing list