mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-02 15:56:02 +00:00
Fps configurable in configuration file
This commit is contained in:
parent
869ed8b8af
commit
dba74524c7
@ -77,6 +77,10 @@ Use 30 fps for streaming.
|
|||||||
Use 60 fps for streaming.
|
Use 60 fps for streaming.
|
||||||
This is the default configuration.
|
This is the default configuration.
|
||||||
|
|
||||||
|
=item B<-fps> [I<FPS>]
|
||||||
|
|
||||||
|
Change the number of frame per second to I<FPS>
|
||||||
|
|
||||||
=item B<-bitrate> [I<BITRATE>]
|
=item B<-bitrate> [I<BITRATE>]
|
||||||
|
|
||||||
Change bitrate to I<BITRATE> kbps.
|
Change bitrate to I<BITRATE> kbps.
|
||||||
|
@ -61,6 +61,7 @@ static struct option long_options[] = {
|
|||||||
{"remote", no_argument, NULL, 's'},
|
{"remote", no_argument, NULL, 's'},
|
||||||
{"fullscreen", no_argument, NULL, 't'},
|
{"fullscreen", no_argument, NULL, 't'},
|
||||||
{"surround", no_argument, NULL, 'u'},
|
{"surround", no_argument, NULL, 'u'},
|
||||||
|
{"fps", required_argument, NULL, 'v'},
|
||||||
{0, 0, 0, 0},
|
{0, 0, 0, 0},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -192,6 +193,9 @@ static void parse_argument(int c, char* value, PCONFIGURATION config) {
|
|||||||
case 'u':
|
case 'u':
|
||||||
config->stream.audioConfiguration = AUDIO_CONFIGURATION_51_SURROUND;
|
config->stream.audioConfiguration = AUDIO_CONFIGURATION_51_SURROUND;
|
||||||
break;
|
break;
|
||||||
|
case 'v':
|
||||||
|
config->stream.fps = atoi(value);
|
||||||
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
if (config->action == NULL)
|
if (config->action == NULL)
|
||||||
config->action = value;
|
config->action = value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user