Including credentials in an M3U8 file for VLC using RTSP
Posted: 01 Feb 2025 20:32
Hello,
I'm creating an M3U8 file containing RTSP streams of my IP cameras. Their accesses are restricted with credentials. I can successfully access them using VLC manually, opening a network stream (a popup asks for my username and password, and then I can see my live video). The problem is when I open an M3U8 file that has the stream and the credentials. VLC still asks for the password. This is my M3U8 file:
I tried changing the stream URL to
and also to
...to no avail... Do you know how to store the password in my M3U8 file so that VLC doesn't keep asking for it?
Thank you.
I'm creating an M3U8 file containing RTSP streams of my IP cameras. Their accesses are restricted with credentials. I can successfully access them using VLC manually, opening a network stream (a popup asks for my username and password, and then I can see my live video). The problem is when I open an M3U8 file that has the stream and the credentials. VLC still asks for the password. This is my M3U8 file:
Code: Select all
#EXTM3U
#EXTVLCOPT:network-caching=1000
#EXTVLCOPT:rtsp-user=myusernamegoeshere
#EXTVLCOPT:rtsp-pwd=mypasswordgoeshere
rtsp://192.168.1.10:554
Code: Select all
rtsp://myusernamegoeshere:mypasswordgoeshere@192.168.1.10:554
Code: Select all
http://myusernamegoeshere:mypasswordgoeshere@192.168.1.10:554
Thank you.