[FFmpeg-devel] [PATCH v1] avfilter/showinfo: support displaying for webvtt id and setting side data

lance.lmwang at gmail.com lance.lmwang at gmail.com
Fri Aug 23 17:25:40 EEST 2019


From: Limin Wang <lance.lmwang at gmail.com>

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
 libavfilter/vf_showinfo.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c
index 3c13f11..d1f074a 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_PKT_DATA_WEBVTT_IDENTIFIER:
+            av_log(ctx, AV_LOG_INFO, "WebVTT (%d bytes)", sd->size);
+            break;
+        case AV_PKT_DATA_WEBVTT_SETTINGS:
+            av_log(ctx, AV_LOG_INFO, "WebVTT Settings (%d bytes)", sd->size);
+            break;
         default:
             av_log(ctx, AV_LOG_WARNING, "unknown side data type %d (%d bytes)",
                    sd->type, sd->size);
-- 
2.6.4



More information about the ffmpeg-devel mailing list