[vlc-devel] [PATCH] rtp: add back rtsp options
Andriy Gelman
andriy.gelman at gmail.com
Fri Nov 20 23:46:20 CET 2020
From: Andriy Gelman <andriy.gelman at gmail.com>
Currently running
./vlc -vvv v4l2:///dev/video0 ":sout=#transcode{vcodec=h264,vb=300}:rtp{sdp=rtsp://:8554/test.sdp}"
throws
config/core.c:84: config_GetInt: Assertion `p_config != NULL' failed.
Some options were deleted in commit 3b684ba3518121ae267516d5b004269d16672f3b
but they are still used in rtsp server.
---
modules/stream_out/rtp.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index 68ff34b953..c156b3058b 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -228,6 +228,12 @@ vlc_module_begin ()
add_bool( SOUT_CFG_PREFIX "mp4a-latm", false, RFC3016_TEXT,
RFC3016_LONGTEXT, false )
+ add_integer( "rtsp-timeout", 60, RTSP_TIMEOUT_TEXT,
+ RTSP_TIMEOUT_LONGTEXT, true )
+ add_string( "sout-rtsp-user", "",
+ RTSP_USER_TEXT, RTSP_USER_LONGTEXT, true )
+ add_password("sout-rtsp-pwd", "", RTSP_PASS_TEXT, RTSP_PASS_LONGTEXT)
+
set_callbacks( Open, Close )
vlc_module_end ()
--
2.28.0
More information about the vlc-devel
mailing list