[FFmpeg-devel] [PATCH 2/2] avformat/ivfenc: use the av1_metadata bsf to insert Temporal Delimiter OBUs if needed

James Almer jamrial at gmail.com
Wed Oct 3 03:18:05 EEST 2018


Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/ivfenc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/ivfenc.c b/libavformat/ivfenc.c
index 66441a2a43..adf72117e9 100644
--- a/libavformat/ivfenc.c
+++ b/libavformat/ivfenc.c
@@ -97,6 +97,8 @@ static int ivf_check_bitstream(struct AVFormatContext *s, const AVPacket *pkt)
 
     if (st->codecpar->codec_id == AV_CODEC_ID_VP9)
         ret = ff_stream_add_bitstream_filter(st, "vp9_superframe", NULL);
+    else if (st->codecpar->codec_id == AV_CODEC_ID_AV1)
+        ret = ff_stream_add_bitstream_filter(st, "av1_metadata", "td=insert");
 
     return ret;
 }
-- 
2.19.0



More information about the ffmpeg-devel mailing list