Remove 30 and 60 fps options

This commit is contained in:
Iwan Timmer 2017-06-09 22:19:22 +02:00
parent faf19943fd
commit 8960cc458f
3 changed files with 1 additions and 20 deletions

View File

@ -72,19 +72,10 @@ Change the horizontal resolution to I<WIDTH>
Change the vertical resolution to I<HEIGHT> Change the vertical resolution to I<HEIGHT>
=item B<-30fps>
Use 30 fps for streaming.
This is the default configuration for 1080p and higher.
=item B<-60fps>
Use 60 fps for streaming.
This is the default configuration for 720p.
=item B<-fps> [I<FPS>] =item B<-fps> [I<FPS>]
Change the number of frame per second to I<FPS>. Change the number of frame per second to I<FPS>.
Defaults to 60fps for 720p and 30fps for 1080p and higher.
Only 30 and 60 fps are currently supported by Gamestream. Only 30 and 60 fps are currently supported by Gamestream.
=item B<-bitrate> [I<BITRATE>] =item B<-bitrate> [I<BITRATE>]

View File

@ -45,8 +45,6 @@ static struct option long_options[] = {
{"4k", no_argument, NULL, '0'}, {"4k", no_argument, NULL, '0'},
{"width", required_argument, NULL, 'c'}, {"width", required_argument, NULL, 'c'},
{"height", required_argument, NULL, 'd'}, {"height", required_argument, NULL, 'd'},
{"30fps", no_argument, NULL, 'e'},
{"60fps", no_argument, NULL, 'f'},
{"bitrate", required_argument, NULL, 'g'}, {"bitrate", required_argument, NULL, 'g'},
{"packetsize", required_argument, NULL, 'h'}, {"packetsize", required_argument, NULL, 'h'},
{"app", required_argument, NULL, 'i'}, {"app", required_argument, NULL, 'i'},
@ -136,12 +134,6 @@ static void parse_argument(int c, char* value, PCONFIGURATION config) {
case 'd': case 'd':
config->stream.height = atoi(value); config->stream.height = atoi(value);
break; break;
case 'e':
config->stream.fps = 30;
break;
case 'f':
config->stream.fps = 60;
break;
case 'g': case 'g':
config->stream.bitrate = atoi(value); config->stream.bitrate = atoi(value);
break; break;

View File

@ -146,8 +146,6 @@ static void help() {
printf("\t-4k\t\t\t\tUse 3840x2160 resolution\n"); printf("\t-4k\t\t\t\tUse 3840x2160 resolution\n");
printf("\t-width <width>\t\tHorizontal resolution (default 1280)\n"); printf("\t-width <width>\t\tHorizontal resolution (default 1280)\n");
printf("\t-height <height>\tVertical resolution (default 720)\n"); printf("\t-height <height>\tVertical resolution (default 720)\n");
printf("\t-30fps\t\t\tUse 30fps\n");
printf("\t-60fps\t\t\tUse 60fps\n");
printf("\t-bitrate <bitrate>\tSpecify the bitrate in Kbps\n"); printf("\t-bitrate <bitrate>\tSpecify the bitrate in Kbps\n");
printf("\t-packetsize <size>\tSpecify the maximum packetsize in bytes\n"); printf("\t-packetsize <size>\tSpecify the maximum packetsize in bytes\n");
printf("\t-hevc\t\t\tUse the high efficiency video coding (HEVC)\n"); printf("\t-hevc\t\t\tUse the high efficiency video coding (HEVC)\n");