mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 02:26:35 +00:00
webrtcsink: fix property types for rav1enc
Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/572 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1667>
This commit is contained in:
parent
000c486568
commit
6e9855c36b
1 changed files with 5 additions and 4 deletions
|
@ -788,10 +788,10 @@ fn configure_encoder(enc: &gst::Element, start_bitrate: u32) {
|
||||||
enc.set_property_from_str("usage-profile", "realtime");
|
enc.set_property_from_str("usage-profile", "realtime");
|
||||||
}
|
}
|
||||||
"rav1enc" => {
|
"rav1enc" => {
|
||||||
enc.set_property("bitrate", start_bitrate);
|
enc.set_property("bitrate", start_bitrate as i32);
|
||||||
enc.set_property("low-latency", true);
|
enc.set_property("low-latency", true);
|
||||||
enc.set_property("max-key-frame-interval", 715827882);
|
enc.set_property("max-key-frame-interval", 715827882u64);
|
||||||
enc.set_property("speed-preset", 10);
|
enc.set_property("speed-preset", 10u32);
|
||||||
}
|
}
|
||||||
"vpuenc_h264" => {
|
"vpuenc_h264" => {
|
||||||
enc.set_property("bitrate", start_bitrate / 1000);
|
enc.set_property("bitrate", start_bitrate / 1000);
|
||||||
|
@ -1048,9 +1048,10 @@ impl VideoEncoder {
|
||||||
self.element
|
self.element
|
||||||
.set_property("bitrate", (bitrate / 1000) as u32);
|
.set_property("bitrate", (bitrate / 1000) as u32);
|
||||||
}
|
}
|
||||||
"nvv4l2h264enc" | "nvv4l2vp8enc" | "nvv4l2vp9enc" | "rav1enc" => {
|
"nvv4l2h264enc" | "nvv4l2vp8enc" | "nvv4l2vp9enc" => {
|
||||||
self.element.set_property("bitrate", bitrate as u32)
|
self.element.set_property("bitrate", bitrate as u32)
|
||||||
}
|
}
|
||||||
|
"rav1enc" => self.element.set_property("bitrate", bitrate),
|
||||||
_ => return Err(WebRTCSinkError::BitrateNotSupported),
|
_ => return Err(WebRTCSinkError::BitrateNotSupported),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue