Launching VLC from PHP
Posted: 07 Dec 2003 11:43
In Linux, I'm trying to launch vlc from a php script that I have written by using the following code:
------------------------------------------------------
shell_exec("nice -10 vlc -vvv v4l:/dev/video:norm=ntsc:frequency=283262:size=320x240:channel=0:adev=/dev/dsp:audio=0
--sout '#transcode{vcodec=mp4v,acodec=mpga,vb=1000,ab=128,vt=800000,keyint=80,deinterlace}:std{access=udp,mux=ts,url=224.0.0.0}' &> /dev/null &");
-------------------------------------------------------
I get no errors, but VLC doesn't get spawned into a process. When I pipe all output into a regular file I get the following information:
Gtk-WARNING **: cannot open display:
[00000157] main private debug: waiting for thread completion
anyone know how I can fix this?
-thanx, ryan
------------------------------------------------------
shell_exec("nice -10 vlc -vvv v4l:/dev/video:norm=ntsc:frequency=283262:size=320x240:channel=0:adev=/dev/dsp:audio=0
--sout '#transcode{vcodec=mp4v,acodec=mpga,vb=1000,ab=128,vt=800000,keyint=80,deinterlace}:std{access=udp,mux=ts,url=224.0.0.0}' &> /dev/null &");
-------------------------------------------------------
I get no errors, but VLC doesn't get spawned into a process. When I pipe all output into a regular file I get the following information:
Gtk-WARNING **: cannot open display:
[00000157] main private debug: waiting for thread completion
anyone know how I can fix this?
-thanx, ryan