From 2c6fe44145e77c9b6c86b5072fc77484bbf93b27 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 15 Jul 2024 14:48:45 +0200 Subject: [PATCH] vcap/rtsp: add examples --- src/video_capture/rtsp.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/video_capture/rtsp.c b/src/video_capture/rtsp.c index 8693fd5ab..cb913f501 100644 --- a/src/video_capture/rtsp.c +++ b/src/video_capture/rtsp.c @@ -260,13 +260,28 @@ show_help(bool full) { color_printf(TBOLD("[:rtp_rx_port=]")); } color_printf("\n\t" TBOLD("-t rtsp:[full]help") "\n"); - color_printf("\noptions:\n"); + color_printf("\nOptions:\n"); color_printf("\t " TBOLD("") " - RTSP server URI\n"); printf("\t " TBOLD("decompress") " - decompress the stream " "(default: disabled)\n"); if (full) { printf("\t " TBOLD("") " - video RTP receiver port number\n"); } + color_printf("\nExamples:\n"); + color_printf("\t" TBOLD("uv -t rtsp://192.168.0.30/mystream") "\n"); + color_printf("\t" TBOLD("uv -t rtsp://[fe80::30]/mystream") "\n"); + color_printf("\t\t- capture streem on implict port (554)\n"); + color_printf("\t" + TBOLD("uv -t rtsp://192.168.0.20:8554/mystream") "\n"); + color_printf("\t\t- capture streem on port 8554 (optionally with " + "authentization)\n"); + color_printf("\t" + TBOLD("uv -t rtsp://user:pass@[fe80::30]/mystream") "\n"); + color_printf("\t\t- capture streem on default port with authentization\n"); + color_printf( + "\t" TBOLD("uv -t rtsp://192.168.0.20/mystream:decompress") "\n"); + color_printf("\t\t- same as first case but decompress the stream " + "(to allow to use a different compression)\n"); color_printf("\n"); }