Page 1 of 1

404 Not found

Posted: 19 Jan 2008 00:43
by rv888
Hi everyone,

I have the latest SVN of VLC installed 0.9.0-svn. If I attempt to std out via access=http to let say's 0.0.0.0:8080/file.mpg and then go to http://mydomain.com:8080/file.mpg, it won't stream. But if I set the std to 0.0.0.0:8080 (without the file) and go to http://mydomain.com:8080/, it'll play. If I paste the url http://mydomain.com:8080/file.mpg into a browser, I get a 404 Not Found error. Is there a setting I missed to turn on the ability to use a file name as the stream reference?

I did have the generic version (0.8.6d) installed via yum and this version would work just fine for this feature. However, it didn't support some of the newer features that latest SVN did, so I upgraded. Now this part no longer works.

What have I missed? Was there something in the config I needed to enable? I'm busy scouring the wiki and man pages for anything...

Thanks

Re: 404 Not found

Posted: 19 Jan 2008 01:00
by rv888
Here's something I just noticed.

In the verbose I see the following:

main private error: option sout-standard-dst is unsafe and is blocked by security policy

Security Policy?

Re: 404 Not found

Posted: 19 Jan 2008 20:08
by Rémi Denis-Courmont
It seems you are a victim of the bleeding edge security framework added a few days ago.
How did you set the sout? --sout...? :sout=... or something else ?

Re: 404 Not found

Posted: 21 Jan 2008 06:17
by rv888
I discovered the vlcrc file hidden away. I uncommented the security line and changed it from 2 to 1, and the tried again. It worked.

However, I'd really like to know what 2 or 1 means since I don't see ANYTHING online regarding this stuff yet. What exactly did I allow in by changing this?

Re: 404 Not found

Posted: 21 Jan 2008 14:33
by funman
you can use vlc --help --advanced --help-verbose |& less to read the full help for EVERY vlc option, or go to http://trac.videolan.org/vlc/changeset/24345 to find exactly what is this option.

Re: 404 Not found

Posted: 23 Jan 2008 16:59
by Rémi Denis-Courmont
You can complain on the vlc-devel mailing list that changeset [24345] makes no sense. That's about it.

Re: 404 Not found

Posted: 11 Feb 2008 14:54
by mnemonic
Could it be that the current help doesn't give any info about "--security-policy"? At least I can't find anything regarding that.

I would like to have a little bit more info on how the "--security-policy" commandline switch is to be used so that I can use the std as I am used to.
In fact "--security-policy allow", "--security-policy prompt" didn't change anything, it simply won't let me stream.

This is my current commandline in case someone needs to know:

Code: Select all

./vlc -I dummy -vvv input_stream --sout '#transcode{vcodec=FLV1,acodec=mp3,samplerate=44100}:std{access=http,mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/stream.flv}'
Currently I have to edit the vlcrc file like explained by rv888 to get vlc doing what I want.

Thanks and kind regards :)