Added ability to stream specific monitor on Linux

This commit is contained in:
kiralycraft
2021-02-28 15:52:47 +02:00
parent 415dec37ad
commit 7abcfc0390
4 changed files with 463 additions and 302 deletions

View File

@@ -93,6 +93,9 @@
# adapter_name = Radeon RX 580 Series
# output_name = \\.\DISPLAY1
# !! Linux only !!
# Set the display number to stream. I have no idea how they are numbered. They start from 0.
linux_monitor_id = 3
###############################################
# FFmpeg software encoding parameters
@@ -102,7 +105,7 @@
# Constant Rate Factor. Between 1 and 52. It allows QP to go up during motion and down with still image, resulting in constant perceived quality
# Higher value means more compression, but less quality
# If crf == 0, then use QP directly instead
# crf = 0
crf = 18
# Quantitization Parameter
# Higher value means more compression, but less quality
@@ -113,7 +116,7 @@
# Increasing the value slightly reduces encoding efficiency, but the tradeoff is usually
# worth it to gain the use of more CPU cores for encoding. The ideal value is the lowest
# value that can reliably encode at your desired streaming settings on your hardware.
# min_threads = 1
min_threads = 1
# Allows the client to request HEVC Main or HEVC Main10 video streams.
# HEVC is more CPU-intensive to encode, so enabling this may reduce performance when using software encoding.
@@ -121,14 +124,14 @@
# If set to 1, Sunshine will not advertise support for HEVC
# If set to 2, Sunshine will advertise support for HEVC Main profile
# If set to 3, Sunshine will advertise support for HEVC Main and Main10 (HDR) profiles
# hevc_mode = 0
hevc_mode = 0
# Force a specific encoder, otherwise Sunshine will use the first encoder that is available
# supported encoders:
# nvenc
# software
#
# encoder = nvenc
# encoder = vaapi
##################################### Software #####################################
# See x264 --fullhelp for the different presets
# sw_preset = superfast