Multibitrate ingest¶
Many cameras and encoders output several qualities as separate streams. The mbr input merges them into one multibitrate stream: the viewer gets a single playlist with all qualities and adaptive switching.
Configuration¶
streams:
cam1:
inputs:
- mbr:
inputs:
- rtsp:
url: rtsp://admin:password@10.0.0.5/stream0 # high quality
- rtsp:
url: rtsp://admin:password@10.0.0.5/stream1 # low quality
Inside mbr.inputs the same protocols are allowed as in regular inputs.
Note
TODO: track alignment rules (timestamps, GOP), quality ordering in the playlist, behavior when one quality goes down.
Alternative: transcoder¶
If there is a single source, multibitrate is prepared by the transcoder.