webrtc_codecs_av1 (webrtc_codecs v0.1.0)
View SourceAV1 codec plugin: dav1d decodes, libaom encodes.
webrtc:add_transceiver(Pc, video, #{frames => true, codec_plugin => {webrtc_codecs_av1, #{}}}).decode/2 takes a temporal unit in the low overhead format and gives
one webrtc_codecs:picture/0 per picture shown, with the RTP
timestamp of the frame. After a frame it cannot decode it drops frames
until the next key frame.
encode/2 takes webrtc_codecs:picture/0 and encodes in real time at
a constant bitrate. It follows bitrate (bits per second) and makes a
key frame for keyframe => true. Pictures of another size start a new
stream with a key frame.
Main profile, 8 bit 4:2:0 only. Each library is optional: with only one of them the plugin only decodes or only encodes.
Options:
bitrate: of the encoder at start, default from the picture sizemin_bitrate,max_bitrate: bounds for the bitrate, default 30000 and nonekeyframe_interval: most frames between two key frames, default 3000threads: of the encoder, default from the picture size and the number of schedulers, and of the decoder, default 1cpu_used: libaom speed setting, 0 to 11, default 9max_pixels: largest picture the decoder accepts, default 3840 x 2160
Summary
Functions
The types of the OBUs of a temporal unit in the low overhead format (AV1 bitstream section 5.3), read from their headers.
Functions
-spec obu_types(binary()) -> {ok, [0..15]} | error.
The types of the OBUs of a temporal unit in the low overhead format (AV1 bitstream section 5.3), read from their headers.