VLC from php --> Linux versus Windows

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
aux
New Cone
New Cone
Posts: 4
Joined: 26 Aug 2006 19:27

VLC from php --> Linux versus Windows

Postby aux » 03 Sep 2006 17:19

Hi,

I have 2 questions

I have a php-script running on linux starting VLC like this:
exec("/usr/local/bin/vlc /-vvv --daemon mms://some.website.com/stream :sout='#transcode{acodec=mpga,vcodec=mpgv,vb=1000,width=704,height=576,ab=192,channels=2}:std{access=http,mux=ts,url=:6789}'");

I'm planning to make script generic so people can use it on their windows machine. Anyone an idea of how to make this line for windows?

The second question:
I stop vlc like this:
exec ("killall vlc")
but I Think it is quite a hard way to kill the process. Isn't there a command to say the vlc daemon to stop?

Thanks in advance.

Aux

aux
New Cone
New Cone
Posts: 4
Joined: 26 Aug 2006 19:27

Postby aux » 10 Sep 2006 00:41

I found out that running this from command-line like:
vlc.exe /-vvv --daemon mms://some.website.com/stream :sout='#transcode{acodec=mpga,vcodec=mpgv,vb=1000,width=704,height=576,ab=192,channels=2}:std{access=http,mux=ts,url=:6789}'");

Gives me blue screens :(

aux
New Cone
New Cone
Posts: 4
Joined: 26 Aug 2006 19:27

Postby aux » 17 Sep 2006 01:24

Took some hard work... but it's solved now..


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 6 guests