Opened 5 years ago

Closed 4 years ago

Last modified 4 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 Changed 5 years ago by cehoyos

  • Keywords h264 added
  • Priority changed from normal to wish
  • Status changed from new to open
  • Type changed from defect to enhancement
  • Version changed from 2.1 to git-master

comment:2 Changed 4 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed

comment:3 Changed 4 years ago by julian

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

comment:4 follow-up: Changed 4 years ago by julian

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?

comment:5 in reply to: ↑ 4 Changed 4 years ago by cehoyos

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 Changed 4 years ago by julian

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.