[FFmpeg-cvslog] avformat/ivfenc: use the av1_metadata bsf to insert Temporal Delimiter OBUs if needed
James Almer
git at videolan.org
Mon Nov 5 03:07:21 EET 2018
ffmpeg | branch: release/4.1 | James Almer <jamrial at gmail.com> | Tue Oct 2 21:08:54 2018 -0300| [1c98cf4ddd38400793a4d01b3c3a662beb9e3ba8] | committer: James Almer
avformat/ivfenc: use the av1_metadata bsf to insert Temporal Delimiter OBUs if needed
Reviewed-by: Mark Thompson <sw at jkqxz.net>
Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 2d2af23349cae0d84c8ed51c249bfc1e6f2e28a2)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1c98cf4ddd38400793a4d01b3c3a662beb9e3ba8
---
configure | 1 +
libavformat/ivfenc.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/configure b/configure
index 5a5d0b0868..f3fa0cde86 100755
--- a/configure
+++ b/configure
@@ -3180,6 +3180,7 @@ image2_alias_pix_demuxer_select="image2_demuxer"
image2_brender_pix_demuxer_select="image2_demuxer"
ipod_muxer_select="mov_muxer"
ismv_muxer_select="mov_muxer"
+ivf_muxer_select="av1_metadata"
matroska_audio_muxer_select="matroska_muxer"
matroska_demuxer_select="iso_media riffdec"
matroska_demuxer_suggest="bzlib lzo zlib"
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;
}
More information about the ffmpeg-cvslog
mailing list