API Reference webrtc_codecs v#0.1.0

View Source

Modules

Codec plugins for erlang_webrtc, and the plugin that picks one of them from the negotiated codec.

AV1 codec plugin: dav1d decodes, libaom encodes.

Capture raw pictures or audio from a camera, a microphone, a file or a test source, through the ffmpeg executable running as a port.

Read and write the two simple media files tests use: IVF, a list of encoded video frames (VP8, VP9, AV1), and WAV, 16 bit PCM audio.

G.711 codec plugin: PCMU (mu-law) and PCMA (A-law), 8 kHz mono, in pure Erlang.

H.264 codec plugin, on OpenH264.

Opus codec plugin, on libopus.

Test media made in Erlang: a moving picture and a tone to feed an encoder when you have no camera or microphone, and the measures to compare what a decoder gives back.

Show decoded pictures in a window, play decoded audio on the speaker, or write either to a file, through the ffplay and ffmpeg executables running as ports.

VP8 and VP9 codec plugin, on libvpx.