change x264enc default bitrate to match nvh264enc

Assume default bitrate should be the same for a given codec (here, H264 is 2048u32) regardless of which encoder is used (x264enc, nvh264enc).
This commit is contained in:
machenmusik 2022-02-08 19:22:59 -05:00 committed by Mathieu Duponchelle
parent 51c2f35909
commit 9e7406cec0

View file

@ -389,7 +389,7 @@ fn setup_encoding(
pay.set_property_from_str("picture-id-mode", "15-bit");
}
"x264enc" => {
enc.set_property("bitrate", 25608u32);
enc.set_property("bitrate", 2048u32);
enc.set_property_from_str("tune", "zerolatency");
enc.set_property_from_str("speed-preset", "ultrafast");
enc.set_property("threads", 12u32);