2019-12-03 19:23:33 +00:00
|
|
|
# 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
|
|
|
|
|
2019-12-25 23:01:06 +00:00
|
|
|
# The name displayed by Moonlight
|
|
|
|
# sunshine_name = sunshine
|
|
|
|
|
2019-12-03 19:23:33 +00:00
|
|
|
# Pretty self-explanatory
|
|
|
|
unique_id = 03904e64-51da-4fb3-9afd-a9f7ff70fea4
|
|
|
|
|
|
|
|
# The file where info on paired devices is stored
|
2019-12-16 21:02:21 +00:00
|
|
|
# file_devices = devices.json
|
2019-12-03 19:23:33 +00:00
|
|
|
|
|
|
|
# How long to wait in milliseconds for data from moonlight before shutting down the stream
|
2019-12-11 22:37:20 +00:00
|
|
|
ping_timeout = 2000
|
|
|
|
|
2019-12-16 21:02:21 +00:00
|
|
|
# The file where configuration for the different applications that Sunshine can run during a stream
|
|
|
|
# file_apps = apps.json
|
|
|
|
|
2019-12-11 22:37:20 +00:00
|
|
|
# How much error correcting packets must be send for every video max_b_frames
|
|
|
|
# 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
|
2019-12-12 12:13:10 +00:00
|
|
|
fec_percentage = 1
|
2019-12-03 19:23:33 +00:00
|
|
|
|
2019-12-22 22:34:12 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
2019-12-03 19:23:33 +00:00
|
|
|
###############################################
|
|
|
|
# FFmpeg software encoding parameters
|
|
|
|
# Honestly, I have no idea what the optimal values would be.
|
|
|
|
# Play around with this :)
|
|
|
|
max_b_frames = 16
|
|
|
|
gop_size = 24
|
|
|
|
|
2019-12-12 12:13:10 +00:00
|
|
|
# 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
|
2019-12-03 19:23:33 +00:00
|
|
|
# Higher value means more compression, but less quality
|
2019-12-12 12:13:10 +00:00
|
|
|
# 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
|
2019-12-06 19:52:08 +00:00
|
|
|
|
2019-12-06 20:41:30 +00:00
|
|
|
# Number of threads used by ffmpeg to encode the video
|
2019-12-12 12:13:10 +00:00
|
|
|
threads = 8
|
2019-12-06 20:41:30 +00:00
|
|
|
|
|
|
|
|
2019-12-06 19:52:08 +00:00
|
|
|
# See x264 --fullhelp for the different presets
|
2019-12-12 12:13:10 +00:00
|
|
|
profile = baseline
|
|
|
|
preset = superfast
|
|
|
|
tune = zerolatency
|