Launching VLC from PHP

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
dignified
Blank Cone
Blank Cone
Posts: 13
Joined: 24 Nov 2003 12:21
Contact:

Launching VLC from PHP

Postby dignified » 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

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 07 Dec 2003 12:33

It's trying to open an interface...
Which isn't possible without X11

Try launching it with... vlc -I dummy or vlc -I http
The last will open a web interface at port 8080 of the host.
If you want you can change the webinterface as well.
Don't use PMs for support questions.

dignified
Blank Cone
Blank Cone
Posts: 13
Joined: 24 Nov 2003 12:21
Contact:

Postby dignified » 07 Dec 2003 13:14

works great, -I http that is... thanx!


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests