[FFmpeg-devel] [PATCH] avformat: add AV1 RTP depacketizer and packetizer
Chris Hodges
Chris.Hodges at axis.com
Mon Dec 2 16:57:15 EET 2024
Hi,
On 11/25/24 18:47, Tristan Matthews via ffmpeg-devel wrote:
> One nit I'd add is that since the RTP AV1 spec is still in draft (according to https://aomediacodec.github.io/av1-rtp-spec/) this feature should probably be marked experimental as is done for VP9 in RTP, see:
> https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/f8e91ab05ff3d111626ab8a3b5d570865a934f07:/libavformat/rtpenc.c#l221
>
> in which case CLI users will have to add `-strict experimental` to their options.
I've added this as suggested.
> For the keyframe detection issue I'm not sure if this is something missing in FFMPEG's RTP stack (e.g. I've noticed that both GStreamer and libwebrtc signal that a buffer contains a keyframe at a higher level), but if not could you set it if you're dealing with a FRAME OBU of type 0 (keyframe) or 2 (intra-only)? You'd need to parse the OBU to extract that however.
It turns out this was a lapsus on my side, when I used the flags field
in the RTPMuxContext structure instead of the flags in AVPacket. After
transferring the key frame information to the encoder function, I could
remove the workaround.
I also added the key frame info to the AVPacket during demuxing that was
missing before.
New patch attached.
--
Best regards, Chris
-------------- next part --------------
An embedded message was scrubbed...
From: Chris Hodges <chrishod at axis.com>
Subject: [PATCH] avformat: add AV1 RTP depacketizer and packetizer
Date: Mon, 26 Aug 2024 11:29:29 +0200
Size: 42866
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241202/1ff2d2be/attachment.eml>
More information about the ffmpeg-devel
mailing list