Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#3141 closed enhancement (fixed)

ffprobe doesn't show the maximum number of reference frames

Reported by: julian Owned by:
Priority: wish Component: undetermined
Version: git-master Keywords: h264
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

some formats (h264) support a variable number of maximum reference frames.

knowing this information is important to determine video compatibility because some devices (PS3) only support a limited number.

mediainfo easily shows this information

$ mediainfo test.mkv 
[…]

Video
[…]
Format settings, ReFrames                : 9 frames

i've found no way to determine this using ffprobe, so either the feature is missing or the documentation (website, help-section) is lacking.

Change History (6)

comment:1 by Carl Eugen Hoyos, 10 years ago

Keywords: h264 added
Priority: normalwish
Status: newopen
Type: defectenhancement
Version: 2.1git-master

comment:2 by Michael Niedermayer, 9 years ago

Resolution: fixed
Status: openclosed

comment:3 by julian, 9 years ago

thanks very much, while adding more useful information, could anyone have a look at #3153?

comment:4 by julian, 9 years ago

can the reference frame count information also be added to the normal stream output information printed by ffmpeg? or are there any plans to unite ffprobe and ffmpeg?

in reply to:  4 comment:5 by Carl Eugen Hoyos, 9 years ago

Replying to julian:

can the reference frame count information also be added to the normal stream output information printed by ffmpeg?

It is shown now for -loglevel verbose.

or are there any plans to unite ffprobe and ffmpeg?

This seems very unlikely to me.

comment:6 by julian, 9 years ago

thanks great to know

i've added the ref frame output myself, if anyone else is interested the patch is

--- new/ffmpeg-2.5.3/libavformat/dump.c	2015-03-10 14:57:38.000000000 +0100
+++ old/ffmpeg-2.5.3/libavformat/dump.c	2015-01-10 05:21:06.000000000 +0100
@@ -418,8 +418,6 @@
         av_log(NULL, AV_LOG_INFO, " (visual impaired)");
     if (st->disposition & AV_DISPOSITION_CLEAN_EFFECTS)
         av_log(NULL, AV_LOG_INFO, " (clean effects)");
+
+    av_log(NULL, AV_LOG_INFO, " |refs: %d|", st->codec->refs);
     av_log(NULL, AV_LOG_INFO, "\n");
 
     dump_metadata(NULL, st->metadata, "    ");
Note: See TracTickets for help on using tickets.