diff --git a/xpra/codecs/gstreamer/encoder.py b/xpra/codecs/gstreamer/encoder.py index 8cd8d24016..782cbc6474 100755 --- a/xpra/codecs/gstreamer/encoder.py +++ b/xpra/codecs/gstreamer/encoder.py @@ -34,11 +34,11 @@ DEFAULT_ENCODER_OPTIONS = { "vaapih264enc" : { "max-bframes" : 0, #int(options.boolget("b-frames", False)) - "tune" : 3, #low-power + #"tune" : 3, #low-power #"rate-control" : 8, #qvbr "compliance-mode" : 0, #restrict-buf-alloc (1) – Restrict the allocation size of coded-buffer #"keyframe-period" : 9999, - "prediction-type" : 1, #hierarchical-p (1) – Hierarchical P frame encode + #"prediction-type" : 1, #hierarchical-p (1) – Hierarchical P frame encode #"quality-factor" : 10, #"quality-level" : 50, #"bitrate" : 2000, @@ -46,6 +46,11 @@ #"keyframe-period" : 4294967295, "aud" : True, }, + "vaapih265enc" : { + "max-bframes" : 0, #int(options.boolget("b-frames", False)) + #"tune" : 3, #low-power + #"rate-control" : 8, #qvbr + }, "x264enc" : { "speed-preset" : "ultrafast", "tune" : "zerolatency", @@ -209,8 +214,8 @@ def add(element, encoding, cs_in, css_out, *args): pass log(f"init_all_specs try vaapi? {vaapi}") if vaapi: - #add("vaapih264enc", "h264", "YUV420P", ("YUV420P", ), 20, 100) add("vaapih264enc", "h264", "NV12", ("YUV420P", ), 20, 100) + add("vaapih265enc", "hevc", "NV12", ("YUV420P", ), 20, 100) if WIN32: add("nvd3d11h264enc", "h264", "YUV420P", ("YUV420P", ), 20, 100) add("nvd3d11h265enc", "hevc", "YUV420P", ("YUV420P", ), 20, 100)