[FFmpeg-devel] [PATCH] Add rc_max_rate to ffprobe stream output
Billy Shambrook
billy.shambrook at gmail.com
Sun Jun 1 16:09:41 CEST 2014
---
ffprobe.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ffprobe.c b/ffprobe.c
index 2380ee1..baeca1d 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2122,6 +2122,8 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
print_time("duration", stream->duration, &stream->time_base);
if (dec_ctx->bit_rate > 0) print_val ("bit_rate", dec_ctx->bit_rate, unit_bit_per_second_str);
else print_str_opt("bit_rate", "N/A");
+ if (dec_ctx->rc_max_rate > 0) print_val ("max_bit_rate", dec_ctx->rc_max_rate, unit_bit_per_second_str);
+ else print_str_opt("max_bit_rate", "N/A");
if (stream->nb_frames) print_fmt ("nb_frames", "%"PRId64, stream->nb_frames);
else print_str_opt("nb_frames", "N/A");
if (nb_streams_frames[stream_idx]) print_fmt ("nb_read_frames", "%"PRIu64, nb_streams_frames[stream_idx]);
--
1.8.5.3
More information about the ffmpeg-devel
mailing list