Starting VLC = ok, but starting from PHP only works local
Posted: 14 Jan 2007 16:17
Hi,
I made a PHP script which starts streaming
stream.php
When running on the server the following code, it works perfectly:
When running it on a remote PC using a webbrowser VLC does start, but it doesn't stream anything
Anyone? I have similar scripts invoking VLC as Daemon, so I don't think it has to do anything with rights.
I made a PHP script which starts streaming
stream.php
Code: Select all
<?php
$output = "/usr/bin/vlc /-vvv --daemon http://192.168.1.2/video.m3u :sout='#transcode{acodec=mpga,vcodec=DIV3,ab=60,vb=150,scale=0.50,deinterlace,fps=15,channels=1,width=240,height=192}:std{access=http,mux=ts,url=192.168.1.80:789}'";
exec ($output);
?>
Code: Select all
php stream.php
Code: Select all
http://192.168.1.80/stream.php