Open password protected http stream with VLC

I want to stream a video / media file that is hosted by a http server, but the webserver protects the file with HTTP authentication. The GUI asks for for the credentials on every opening of the stream.

This is quite annoying. Can the password be saved somehow?


Solution 1:

Not really saved, but you can enter the credentials in the URL itself:

When your media file URL is http://server.com/my_media_file.mkv, then simply add http://<user>:<password>@server.com/my_media_file.mkv.

The authentication tokens must not contain whitespace - VLC cannot process that.