diff options
author | Robert Krüger <krueger@signal7.de> | 2010-04-25 23:35:56 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-04-25 23:35:56 +0000 |
commit | 0a6a282a512ca44658db121b7597ae0e70d8a273 (patch) | |
tree | 5444ba6297cca78d37a134f7077725bfb001e35b | |
parent | 18225025ffac195974fe668d273f851f71cff002 (diff) | |
download | ffmpeg-0a6a282a512ca44658db121b7597ae0e70d8a273.tar.gz |
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
-rw-r--r-- | ffprobe.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -190,6 +190,8 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx) &stream->time_base)); printf("duration=%s\n", time_value_string(val_str, sizeof(val_str), stream->duration, &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))) printf("TAG:%s=%s\n", tag->key, tag->value); |