Skip to content
Snippets Groups Projects
Commit 0a6a282a authored by Robert Krüger's avatar Robert Krüger Committed by Stefano Sabatini
Browse files

Make ffprobe show stream->nb_frames if that info is known.

Patch by Robert Krüger $(echo kru3g3r@signal7.d3 | sed -e 's/3/e/g').

Originally committed as revision 22964 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 18225025
No related branches found
No related tags found
No related merge requests found
...@@ -190,6 +190,8 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx) ...@@ -190,6 +190,8 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
&stream->time_base)); &stream->time_base));
printf("duration=%s\n", time_value_string(val_str, sizeof(val_str), stream->duration, printf("duration=%s\n", time_value_string(val_str, sizeof(val_str), stream->duration,
&stream->time_base)); &stream->time_base));
if (stream->nb_frames)
printf("nb_frames=%"PRId64"\n", stream->nb_frames);
while ((tag = av_metadata_get(stream->metadata, "", tag, AV_METADATA_IGNORE_SUFFIX))) while ((tag = av_metadata_get(stream->metadata, "", tag, AV_METADATA_IGNORE_SUFFIX)))
printf("TAG:%s=%s\n", tag->key, tag->value); printf("TAG:%s=%s\n", tag->key, tag->value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment