Mercurial > libavformat.hg
changeset 855:379c4e948363 libavformat
print more time_base fps stuff if av_log level is at debug or above
print more likely correct fps
not sure if this is formated optimally ...
author | michael |
---|---|
date | Sun, 18 Sep 2005 14:45:17 +0000 |
parents | c9d9796a3d00 |
children | acad29abfb70 |
files | utils.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Sun Sep 11 08:32:25 2005 +0000 +++ b/utils.c Sun Sep 18 14:45:17 2005 +0000 @@ -2598,6 +2598,7 @@ } for(i=0;i<ic->nb_streams;i++) { AVStream *st = ic->streams[i]; + int g= ff_gcd(st->time_base.num, st->time_base.den); avcodec_string(buf, sizeof(buf), st->codec, is_output); av_log(NULL, AV_LOG_INFO, " Stream #%d.%d", index, i); /* the pid is an important information, so we display it */ @@ -2612,6 +2613,10 @@ if (strlen(st->language) > 0) { av_log(NULL, AV_LOG_INFO, "(%s)", st->language); } + av_log(NULL, AV_LOG_DEBUG, ", %d/%d", st->time_base.num/g, st->time_base.den/g); + if(st->codec->codec_type == CODEC_TYPE_VIDEO){ + av_log(NULL, AV_LOG_INFO, ", %5.2f fps", av_q2d(st->r_frame_rate)); + } av_log(NULL, AV_LOG_INFO, ": %s\n", buf); } }