screencastService: Use 'screen' encoder profile for openH264

There are "camera" and "screen", the former being the default. Using the
later should slightly increase image quality.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3259>
This commit is contained in:
Robert Mader 2024-04-02 02:41:57 +02:00
parent 796f347fa7
commit 490ecc536a

View File

@ -38,7 +38,7 @@ const PIPELINES = [
'capsfilter caps=video/x-raw(memory:DMABuf),max-framerate=%F/1 ! \
glupload ! glcolorconvert ! gldownload ! \
queue ! \
openh264enc deblocking=off background-detection=false complexity=low adaptive-quantization=false qp-max=26 qp-min=26 multi-thread=%T slice-mode=auto ! \
openh264enc deblocking=off background-detection=false complexity=low adaptive-quantization=false qp-max=26 qp-min=26 multi-thread=%T slice-mode=auto usage-type=screen ! \
queue ! \
h264parse ! \
mp4mux fragment-duration=500 fragment-mode=first-moov-then-finalise',
@ -50,7 +50,7 @@ const PIPELINES = [
'capsfilter caps=video/x-raw,max-framerate=%F/1 ! \
videoconvert chroma-mode=none dither=none matrix-mode=output-only n-threads=%T ! \
queue ! \
openh264enc deblocking=off background-detection=false complexity=low adaptive-quantization=false qp-max=26 qp-min=26 multi-thread=%T slice-mode=auto ! \
openh264enc deblocking=off background-detection=false complexity=low adaptive-quantization=false qp-max=26 qp-min=26 multi-thread=%T slice-mode=auto usage-type=screen ! \
queue ! \
h264parse ! \
mp4mux fragment-duration=500 fragment-mode=first-moov-then-finalise',