[FFmpeg-cvslog] avfilter/vf_showinfo: display GOP timecode side data
Limin Wang
git at videolan.org
Fri Sep 6 23:07:39 EEST 2019
ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Sun Aug 25 00:17:59 2019 +0800| [ede15bf2e359c2d2480ee451d7579a7fdc009665] | committer: Michael Niedermayer
avfilter/vf_showinfo: display GOP timecode side data
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ede15bf2e359c2d2480ee451d7579a7fdc009665
---
libavfilter/vf_showinfo.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c
index 3c13f11524..31f6b32aa4 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);
More information about the ffmpeg-cvslog
mailing list