[FFmpeg-devel] [PATCH v1 3/3] avfilter/vf_show: display QP table data and properties side data

lance.lmwang at gmail.com lance.lmwang at gmail.com
Sat Aug 24 19:18:00 EEST 2019


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

Below is the final displaying format for the QP table data and properties, timecode:
[Parsed_showinfo_0 @ 0x364fdc0]   side data - pan/scan
[Parsed_showinfo_0 @ 0x364fdc0]   side data - QP table data (1350 bytes)
[Parsed_showinfo_0 @ 0x364fdc0]   side data - QP table properties (8 bytes)
[Parsed_showinfo_0 @ 0x364fdc0]   side data - GOP start timecode - 00:00:00:00

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

diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c
index 31f6b32..5d38783 100644
--- a/libavfilter/vf_showinfo.c
+++ b/libavfilter/vf_showinfo.c
@@ -319,6 +319,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
             av_log(ctx, AV_LOG_INFO, "GOP timecode - %s", tcbuf);
             break;
         }
+#if FF_API_FRAME_QP
+        case AV_FRAME_DATA_QP_TABLE_PROPERTIES:
+            av_log(ctx, AV_LOG_INFO, "QP table properties (%d bytes)", sd->size);
+            break;
+        case AV_FRAME_DATA_QP_TABLE_DATA:
+            av_log(ctx, AV_LOG_INFO, "QP table data (%d bytes)", sd->size);
+            break;
+#endif
         default:
             av_log(ctx, AV_LOG_WARNING, "unknown side data type %d (%d bytes)",
                    sd->type, sd->size);
-- 
2.9.5



More information about the ffmpeg-devel mailing list