Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions mediad/src/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,12 @@ pub fn start(

set_congestion_control(&sink, congestion_control);

// A weak link drops the frame rate, never the resolution. Lowering the resolution puts a
// software `videoscale` in front of `mpph264enc`, and a system-memory frame into
// `mpph264enc` is what oopsed the board kernel twice; `videorate` only drops frames, so the
// camera's buffers still reach the encoder untouched.
sink.set_property_from_str("enable-mitigation-modes", "downsampled");

// The encoder settings, applied through the hook that exists for it.
//
// Handing `webrtcsink` the encoder would otherwise *lose* them, which would make this change a
Expand Down
Loading