docs/4-read/10-vlc.md
VLC can read a stream from the server by using the RTSP, RTMP, HLS and SRT protocols. The recommended one is RTSP.
In order to minimize latency, it is also suggested to change the Network caching parameter of VLC:
50. SaveOpen the following URL:
rtsp://localhost:8554/mystream
The VLC shipped with Ubuntu 21.10 doesn't support playing RTSP due to a license issue (read here and here). To fix the issue, remove the default VLC instance and install the snap version:
sudo apt purge -y vlc
snap install vlc
At the moment VLC doesn't support reading encrypted RTSP streams (RTSPS). However, you can use a proxy like stunnel or nginx or a local MediaMTX instance to decrypt streams before reading them.
Open the following URL:
rtmp://localhost/mystream
Open the following URL:
srt://localhost:8890?streamid=read:mystream