Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Can anyone please advise me on how to open a pwd protected http stream from CLI in vlc?

I checked out the --help and man pages, but they seem to offer only syntax for opening ftp, rmt and smb pwd protected streams (and http-proxy), but not http. Or there is some walk around solution I am not thinking of?

What I have tried already intuitively:

cvlc http://192.168.1.67/videostream.asf?user=admin&pwd=XXX
cvlc http://user:XXX@192.168.1.67/videostream.asf
cvlc http://192.168.1.67/videostream.asf --http-user 'user' --http-pwd 'XXX'

vlc documentation re this is really difficult to interpret into cli commands:

% vlc input_stream --sout "#module1{option1=parameter1{parameter-option1},option
2=parameter2}:module2{option1=...,option2=...}:..."

   You may also use the following syntax :
% vlc input_stream --sout-module1-option1=... --sout-module1-option2=... --sout-
module2-option1=... --sout-module2-option2=... ...

   For example, to transcode a stream and send it, use:
% vlc input_stream --sout '#transcode{options}:standard{options}' 

If I have interpreted the manual correctly (so far I came up with 3 or 4 different options), I need module standard, option access=, then item http:, item options user= and pwd=. All put together should read one of these:

vlc http://192.168.1.67/videostream.asf '#standard{access=http:user=admin,pwd=XXX}'
vlc http://192.168.1.67/videostream.asf '#standard{access=http:user=admin},http:pwd=XXX}'
vlc http://192.168.1.67/videostream.asf --sout-standard-access=http:user=admin

(ok I did not put in the pwd in the last line but vlc did not even pick up the user= as user's name....).

But nothing works and I do not even get anywhere close to putting it right looking at the output produced.

If someone could share a real working sample how that should look like, that would be greatly appreciated.

VERY IMPORTANT - I need a client part of the commands for capturing the stream... This is 100% is doable as I can access this protected stream via GUI.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.