Skip to content

Commit f93776e

Browse files
committed
main: help: hide also some other options
Hidden port, cuda-device and rate limiter in basic view. Those are not more important than many of already hidden. - cuda device - slightly changed description 's/CUDA device/GPU' - it actually selects a card also for NVENC, in the end
1 parent c554fc7 commit f93776e

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/main.cpp

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -391,14 +391,14 @@ static void usage(const char *exec_path, bool full = false)
391391
print_help_item("-f [A:|V:]<settings>", {"FEC settings (audio or video) - use",
392392
"\"none\", \"mult:<nr>\",", "\"ldgm:<max_expected_loss>%%\" or", "\"ldgm:<k>:<m>:<c>\"",
393393
"\"rs:<k>:<n>\""});
394-
print_help_item("-P <port> | <video_rx>:<video_tx>[:<audio_rx>:<audio_tx>]", { "",
395-
"<port> is base port number, also 3",
396-
"subsequent ports can be used for RTCP",
397-
"and audio streams. Default: " + to_string(PORT_BASE) + ".",
398-
"You can also specify all two or four", "ports directly."});
399-
print_help_item("-l <limit_bitrate> | unlimited | auto", {"limit sending bitrate",
400-
"to <limit_bitrate> (with optional k/M/G suffix)"});
401394
if (full) {
395+
print_help_item("-P <port> | <video_rx>:<video_tx>[:<audio_rx>:<audio_tx>]", { "",
396+
"<port> is base port number, also 3",
397+
"subsequent ports can be used for RTCP",
398+
"and audio streams. Default: " + to_string(PORT_BASE) + ".",
399+
"You can also specify all two or four", "ports directly."});
400+
print_help_item("-l <limit_bitrate> | unlimited | auto", {"limit sending bitrate",
401+
"to <limit_bitrate> (with optional k/M/G suffix)"});
402402
print_help_item("-A <address>", {"audio destination address",
403403
"If not specified, will use same as for video"});
404404
}
@@ -414,9 +414,7 @@ static void usage(const char *exec_path, bool full = false)
414414
print_help_item("--audio-scale <factor> | <method> | help",
415415
{"scales received audio"});
416416
print_help_item("--echo-cancellation", {"apply acoustic echo cancellation to audio (experimental)"});
417-
}
418-
print_help_item("--cuda-device <index> | help", {"use specified CUDA device"});
419-
if (full) {
417+
print_help_item("--cuda-device <index> | help", {"use specified GPU"});
420418
print_help_item("--encryption <passphrase>", {"key material for encryption"});
421419
print_help_item("--playback <directory> | help", {"replays recorded audio and video"});
422420
print_help_item("--record[=<directory>]", {"record captured audio and video"});

0 commit comments

Comments
 (0)