Skip to content

WebCodec encoder

Register name used to load filter: wcenc
This filter may be automatically loaded during graph resolution.

This filter encodes video streams using WebCodec encoder of the browser

Options

c (str): codec identifier. Can be any supported GPAC codec name or ffmpeg codec name - updated to ffmpeg codec name after initialization

fintra (frac, default: -1/1): force intra / IDR frames at the given period in sec, e.g. fintra=2 will force an intra every 2 seconds and fintra=1001/1000 will force an intra every 30 frames on 30000/1001=29.97 fps video; ignored for audio

all_intra (bool, default: false, updatable): only produce intra frames

b (uint, default: 0): bitrate in bits per seconds, defaults to 2M for video and 124K for audio

queued (uint, default: 10): maximum number of packets to queue in webcodec instance

Was this page helpful?