RTP: VAAPI seems to not support VBR and low-power mode at the same time

This commit is contained in:
Marvin W 2022-01-21 15:34:06 +01:00
parent 37cfbd8c76
commit f270fc7686
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A

View file

@ -140,7 +140,7 @@ public class Dino.Plugins.Rtp.CodecUtil {
public static string? get_encode_args(string media, string codec, string encode, JingleRtp.PayloadType? payload_type) { public static string? get_encode_args(string media, string codec, string encode, JingleRtp.PayloadType? payload_type) {
// H264 // H264
if (encode == "msdkh264enc") return @" rate-control=vbr"; if (encode == "msdkh264enc") return @" rate-control=vbr";
if (encode == "vaapih264enc") return @" rate-control=vbr tune=low-power"; if (encode == "vaapih264enc") return @" rate-control=vbr";
if (encode == "x264enc") return @" byte-stream=1 speed-preset=ultrafast tune=zerolatency bframes=0 cabac=false dct8x8=false"; if (encode == "x264enc") return @" byte-stream=1 speed-preset=ultrafast tune=zerolatency bframes=0 cabac=false dct8x8=false";
// VP8 // VP8