mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-26 20:10:31 +00:00
webrtcsink: Configure only 4 threads for x264enc
More threads can cause more slices to be created, and Chrome simply falls apart if there are more than a few slices and fails decoding. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1275>
This commit is contained in:
parent
ca51cf2509
commit
0331522128
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ fn configure_encoder(enc: &gst::Element, start_bitrate: u32) {
|
|||
enc.set_property("bitrate", start_bitrate / 1000);
|
||||
enc.set_property_from_str("tune", "zerolatency");
|
||||
enc.set_property_from_str("speed-preset", "ultrafast");
|
||||
enc.set_property("threads", 12u32);
|
||||
enc.set_property("threads", 4u32);
|
||||
enc.set_property("key-int-max", 2560u32);
|
||||
enc.set_property("b-adapt", false);
|
||||
enc.set_property("vbv-buf-capacity", 120u32);
|
||||
|
|
Loading…
Reference in a new issue