@@ -562,6 +562,10 @@ static void dump_stream_format(const AVFormatContext *ic, int i,
}
if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) {
+
+ if (st->codecpar->level > 0)
+ av_log(NULL, AV_LOG_INFO, ", Level %d", st->codecpar->level);
+
int fps = st->avg_frame_rate.den && st->avg_frame_rate.num;
int tbr = st->r_frame_rate.den && st->r_frame_rate.num;
int tbn = st->time_base.den && st->time_base.num;
@@ -577,6 +581,11 @@ static void dump_stream_format(const AVFormatContext *ic, int i,
print_fps(1 / av_q2d(st->time_base), "tbn");
}
+ if (st->start_time != AV_NOPTS_VALUE && st->start_time != 0 && st->time_base.den && st->time_base.num) {
+ const double stream_start = st->start_time * av_q2d(st->time_base);
+ av_log(NULL, AV_LOG_INFO, ", Start-Time %.3fs", stream_start);
+ }
+
if (st->disposition & AV_DISPOSITION_DEFAULT)
av_log(NULL, AV_LOG_INFO, " (default)");
if (st->disposition & AV_DISPOSITION_DUB)
Signed-off-by: softworkz <softworkz@hotmail.com> --- libavformat/dump.c | 9 +++++++++ 1 file changed, 9 insertions(+)