Fps configurable in configuration file

This commit is contained in:
Iwan Timmer 2015-12-01 15:51:34 +01:00
parent 869ed8b8af
commit dba74524c7
2 changed files with 8 additions and 0 deletions

View File

@ -77,6 +77,10 @@ Use 30 fps for streaming.
Use 60 fps for streaming.
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>]
Change bitrate to I<BITRATE> kbps.

View File

@ -61,6 +61,7 @@ static struct option long_options[] = {
{"remote", no_argument, NULL, 's'},
{"fullscreen", no_argument, NULL, 't'},
{"surround", no_argument, NULL, 'u'},
{"fps", required_argument, NULL, 'v'},
{0, 0, 0, 0},
};
@ -192,6 +193,9 @@ static void parse_argument(int c, char* value, PCONFIGURATION config) {
case 'u':
config->stream.audioConfiguration = AUDIO_CONFIGURATION_51_SURROUND;
break;
case 'v':
config->stream.fps = atoi(value);
break;
case 1:
if (config->action == NULL)
config->action = value;