summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2019-08-25 00:17:59 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2019-09-06 22:06:12 +0200
commitede15bf2e359c2d2480ee451d7579a7fdc009665 (patch)
treeaa18e1a6f658fe51562fbb41137402ec3ee5acbe
parentef1342650f97b34e2bf4b25a81278fa5b3c2d17e (diff)
downloadffmpeg-streaming-ede15bf2e359c2d2480ee451d7579a7fdc009665.zip
ffmpeg-streaming-ede15bf2e359c2d2480ee451d7579a7fdc009665.tar.gz
avfilter/vf_showinfo: display GOP timecode side data
Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavfilter/vf_showinfo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c
index 3c13f11..31f6b32 100644
--- a/libavfilter/vf_showinfo.c
+++ b/libavfilter/vf_showinfo.c
@@ -313,6 +313,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
case AV_FRAME_DATA_CONTENT_LIGHT_LEVEL:
dump_content_light_metadata(ctx, sd);
break;
+ case AV_FRAME_DATA_GOP_TIMECODE: {
+ char tcbuf[AV_TIMECODE_STR_SIZE];
+ av_timecode_make_mpeg_tc_string(tcbuf, *(int64_t *)(sd->data));
+ av_log(ctx, AV_LOG_INFO, "GOP timecode - %s", tcbuf);
+ break;
+ }
default:
av_log(ctx, AV_LOG_WARNING, "unknown side data type %d (%d bytes)",
sd->type, sd->size);
OpenPOWER on IntegriCloud