mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-18 11:10:04 +00:00
94 lines
2.9 KiB
Plaintext
94 lines
2.9 KiB
Plaintext
# If no external IP address is given, the local IP address is used
|
|
# external_ip = 123.456.789.12
|
|
|
|
# The private key must be 2048 bits
|
|
# pkey = /dir/pkey.pem
|
|
|
|
# The certificate must be signed with a 2048 bit key
|
|
# cert = /dir/cert.pem
|
|
|
|
# The name displayed by Moonlight
|
|
# If not specified, the PC's hostname is used
|
|
# sunshine_name = Sunshine
|
|
|
|
# The minimum log level printed to standard out
|
|
#
|
|
# none -> no logs are printed to standard out
|
|
#
|
|
# verbose = [0]
|
|
# debug = [1]
|
|
# info = [2]
|
|
# warning = [3]
|
|
# error = [4]
|
|
# fatal = [5]
|
|
# none = [6]
|
|
#
|
|
# min_log_level = info
|
|
|
|
# The origin of the remote endpoint address that is not denied for HTTP method /pin
|
|
# Could be any of the following values:
|
|
# pc|lan|wan
|
|
# pc: Only localhost may access /pin
|
|
# lan: Only those in LAN may access /pin
|
|
# wan: Anyone may access /pin
|
|
#
|
|
# origin_pin_allowed = lan
|
|
|
|
# Pretty self-explanatory
|
|
unique_id = 03904e64-51da-4fb3-9afd-a9f7ff70fea4
|
|
|
|
# The file where info on paired devices is stored
|
|
# file_devices = devices.json
|
|
|
|
# How long to wait in milliseconds for data from moonlight before shutting down the stream
|
|
ping_timeout = 2000
|
|
|
|
# The file where configuration for the different applications that Sunshine can run during a stream
|
|
# file_apps = apps.json
|
|
|
|
# How much error correcting packets must be send for every video
|
|
# This is just some random number, don't know the optimal value
|
|
# The higher fec_percentage, the lower space for the actual data to send per frame there is
|
|
#
|
|
# The value must be greater than 0 and lower than or equal to 100
|
|
fec_percentage = 10
|
|
|
|
|
|
# The back/select button on the controller
|
|
# On the Shield, the home and powerbutton are not passed to Moonlight
|
|
# If, after the timeout, the back button is still pressed down, Home/Guide button press is emulated.
|
|
# If back_button_timeout < 0, then the Home/Guide button will not be emulated
|
|
# back_button_timeout = 2000
|
|
|
|
# The name of the audio sink used for Audio Loopback
|
|
# If you do not specify this variable, pulseaudio will select the default monitor device.
|
|
#
|
|
# You can find the name of the audio sink using the following command:
|
|
# pacmd list-sources | grep "name:"
|
|
# audio_sink = alsa_output.pci-0000_09_00.3.analog-stereo.monitor
|
|
|
|
|
|
###############################################
|
|
# FFmpeg software encoding parameters
|
|
# Honestly, I have no idea what the optimal values would be.
|
|
# Play around with this :)
|
|
|
|
# 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
|
|
|
|
# Quantitization Parameter
|
|
# Higher value means more compression, but less quality
|
|
# If crf != 0, then this parameter is ignored
|
|
qp = 28
|
|
|
|
# Number of threads used by ffmpeg to encode the video
|
|
threads = 8
|
|
|
|
|
|
# See x264 --fullhelp for the different presets
|
|
profile = baseline
|
|
preset = superfast
|
|
tune = zerolatency
|