From 5e32a526e5fee2e3cc04eac4eeb03533771fd8e1 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Mon, 14 Dec 2020 23:32:24 +0100 Subject: [PATCH] support proxying rtsps streams --- README.md | 6 ++-- go.mod | 2 +- go.sum | 4 +-- internal/conf/pathconf.go | 13 ++++---- internal/path/path.go | 4 ++- main_test.go | 62 +++++++++++++++++++++++++++++++++++++++ rtsp-simple-server.yml | 1 + 7 files changed, 79 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 6a3f1643..072141be 100644 --- a/README.md +++ b/README.md @@ -157,13 +157,13 @@ serverCert: server.crt Streams can then be published and read with the `rtsps` scheme and the 8555 port: ``` -ffmpeg -i rtsps://... +ffmpeg -i rtsps://ip:8555/... ``` If the client is _GStreamer_ and the server certificate is self signed, remember to disable the certificate validation: ``` -gst-launch-1.0 rtspsrc location=rtsps://... tls-validation-flags=0 +gst-launch-1.0 rtspsrc location=rtsps://ip:8555/... tls-validation-flags=0 ``` If the client is _VLC_, encryption can't be deployed, since _VLC_ doesn't support it. @@ -256,7 +256,7 @@ After starting the server, the webcam is available on `rtsp://localhost:8554/cam ### Convert streams to HLS -HLS is a media format that allows live streams be embedded in web pages, inside standard `