On 12/23/25 02:08, Bernhard Döbler via ffmpeg-user wrote:
Later, under certain conditions, -  if (do_read_frames ||
do_read_packets) { - the video is read and decoded. Only then, refs is
populated with the correct value.

I'm wondering why it is output, at all, if I call ffprobe without
analyze_frames, when the value is wrong.

"refs" does not belong to AVCodecParameters, so the logic actually is to require a further analysis with ffprobe's own decoder, that is by design (note that, in general, a decoder is not always required to populate AVCodecParameters fields).

I think you are right, "refs" should not be displayed here, the information is always wrong if not reading frames ; maybe it should be moved to side data or simply hidden. I go talk this with devel...

Anyway, maybe I miss the point, but you can simply combine analyze_frames with "-read_intervals %+0.1" to your command line to keep it lightweight, so it should be no big deal for your use case.

Nicolas

_______________________________________________
ffmpeg-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to