Register name used to load filter: reframer
Passthrough filter ensuring reframing, and optionally decoding, of inputs
This filter forces input pids to be properly framed (1 packet = 1 Access Unit). It is mostly used for file to file operations.
The filter can be used to filter out packets based on SAP types, for example to extract only the key frame (SAP 1,2,3) of a video.
The filter can be used to only keep specific frames of the source.
The filter can be used to force input media to be decoded.
The filter can be used to add real-time regulation of input packets. For example to simulate a live DASH:
"src=m.mp4 reframer:rt=on dst=live.mpd:dynamic"
- off: disables real-time regulation
- on: enables real-time regulation, one clock per pid
- sync: enables real-time regulation one clock for all pids
saps (uint list, minmax: 0|1|2|3|4): drop non-SAP packets, off by default. The list gives the SAP types (0,1,2,3,4) to forward. Note that forwarding only sap 0 will break the decoding
refs (boolean, default: false): forward only frames used as reference frames, if indicated in the input stream
speed (number, default: 1.0): speed for real-time regulation mode - only positive value
raw (boolean, default: false): force input streams to be in raw format (i.e. forces decoding of input)
frames (uint list): drop all except listed frames (first being 1), off by default