nvh264enc: Do not wrongly set vbv-buffer-size and use the cbr-ld-hq rc-mode

vbv-buffer-size which is in kbits can't be set while playing so we
can't really use it for our use case.
This commit is contained in:
Thibault Saunier 2021-12-03 19:59:46 +00:00 committed by Mathieu Duponchelle
parent 8128c14fa9
commit da0a934307

View file

@ -349,8 +349,7 @@ fn setup_encoding(
"nvh264enc" => {
enc.set_property("bitrate", 2048u32);
enc.set_property("gop-size", 2560i32);
enc.set_property_from_str("rc-mode", "cbr");
enc.set_property("vbv-buffer-size", 120u32);
enc.set_property_from_str("rc-mode", "cbr-ld-hq");
enc.set_property("zerolatency", true);
}
_ => (),