From 9043e8f663026c55c0ce550abd8c94ac5796d22e Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 25 Aug 2024 16:18:55 -0500 Subject: [PATCH] Remove hard limits for bitrate and FPS command-line options --- app/cli/commandlineparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/cli/commandlineparser.cpp b/app/cli/commandlineparser.cpp index c5300779..0e50a75b 100644 --- a/app/cli/commandlineparser.cpp +++ b/app/cli/commandlineparser.cpp @@ -414,7 +414,7 @@ void StreamCommandLineParser::parse(const QStringList &args, StreamingPreference if (parser.isSet("fps")) { preferences->fps = parser.getIntOption("fps"); if (!inRange(preferences->fps, 10, 480)) { - parser.showError("FPS must be in range: 10 - 480"); + fprintf(stderr, "Warning: FPS is out of the supported range (10 - 480 FPS). Performance may suffer!\n"); } } @@ -422,7 +422,7 @@ void StreamCommandLineParser::parse(const QStringList &args, StreamingPreference if (parser.isSet("bitrate")) { preferences->bitrateKbps = parser.getIntOption("bitrate"); if (!inRange(preferences->bitrateKbps, 500, 500000)) { - parser.showError("Bitrate must be in range: 500 - 500000"); + fprintf(stderr, "Warning: Bitrate is out of the supported range (500 - 500000 Kbps). Performance may suffer!\n"); } } else if (displaySet || parser.isSet("fps")) { preferences->bitrateKbps = preferences->getDefaultBitrate(