mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-04-09 21:45:24 +00:00
default config values match the example values
This commit is contained in:
parent
c0ff2c79e8
commit
009c7a7bdc
@ -38,7 +38,7 @@
|
|||||||
# file_state = sunshine_state.json
|
# file_state = sunshine_state.json
|
||||||
|
|
||||||
# How long to wait in milliseconds for data from moonlight before shutting down the stream
|
# How long to wait in milliseconds for data from moonlight before shutting down the stream
|
||||||
ping_timeout = 2000
|
# ping_timeout = 2000
|
||||||
|
|
||||||
# The file where configuration for the different applications that Sunshine can run during a stream
|
# The file where configuration for the different applications that Sunshine can run during a stream
|
||||||
# file_apps = apps.json
|
# file_apps = apps.json
|
||||||
@ -48,7 +48,7 @@ ping_timeout = 2000
|
|||||||
# The higher fec_percentage, the lower space for the actual data to send per frame there is
|
# 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
|
# The value must be greater than 0 and lower than or equal to 100
|
||||||
fec_percentage = 10
|
# fec_percentage = 10
|
||||||
|
|
||||||
|
|
||||||
# The back/select button on the controller
|
# The back/select button on the controller
|
||||||
@ -86,18 +86,18 @@ fec_percentage = 10
|
|||||||
# 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
|
# 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
|
# Higher value means more compression, but less quality
|
||||||
# If crf == 0, then use QP directly instead
|
# If crf == 0, then use QP directly instead
|
||||||
crf = 0
|
# crf = 0
|
||||||
|
|
||||||
# Quantitization Parameter
|
# Quantitization Parameter
|
||||||
# Higher value means more compression, but less quality
|
# Higher value means more compression, but less quality
|
||||||
# If crf != 0, then this parameter is ignored
|
# If crf != 0, then this parameter is ignored
|
||||||
qp = 28
|
# qp = 28
|
||||||
|
|
||||||
# Minimum number of threads used by ffmpeg to encode the video.
|
# Minimum number of threads used by ffmpeg to encode the video.
|
||||||
# Increasing the value slightly reduces encoding efficiency, but the tradeoff is usually
|
# 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
|
# 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.
|
# value that can reliably encode at your desired streaming settings on your hardware.
|
||||||
min_threads = 2
|
# min_threads = 2
|
||||||
|
|
||||||
# Allows the client to request HEVC Main or HEVC Main10 video streams.
|
# 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.
|
# HEVC is more CPU-intensive to encode, so enabling this may reduce performance.
|
||||||
@ -107,5 +107,5 @@ min_threads = 2
|
|||||||
# hevc_mode = 2
|
# hevc_mode = 2
|
||||||
|
|
||||||
# See x264 --fullhelp for the different presets
|
# See x264 --fullhelp for the different presets
|
||||||
preset = superfast
|
# preset = superfast
|
||||||
tune = zerolatency
|
# tune = zerolatency
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
namespace config {
|
namespace config {
|
||||||
using namespace std::literals;
|
using namespace std::literals;
|
||||||
video_t video {
|
video_t video {
|
||||||
35, // crf
|
0, // crf
|
||||||
35, // qp
|
28, // qp
|
||||||
|
|
||||||
2, // min_threads
|
2, // min_threads
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ stream_t stream {
|
|||||||
|
|
||||||
APPS_JSON_PATH,
|
APPS_JSON_PATH,
|
||||||
|
|
||||||
13 // fecPercentage
|
10 // fecPercentage
|
||||||
};
|
};
|
||||||
|
|
||||||
nvhttp_t nvhttp {
|
nvhttp_t nvhttp {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user