Page 1 of 1

Problem running VLC with exec()

PostPosted: 05. February 2010 19:32
by joosh
I've been working on this for a week or so now, but can't figure out what the problem is.
vlc.exe is showing up in task manager, running under system, but nothing is happening.
No VLC icon in the systray, and no streaming over the designated port.
When running manually, vlc.exe takes 10-15% of CPU usage.
When running via PHP file, CPU usage is always at 0.
Does anybody here use VLC to stream videos? What kinda tweaks did you have to do to make it work?

Re: Problem running VLC with exec()

PostPosted: 03. March 2010 20:47
by cthackers
you have to call vlc with some parameters to make it stream and it won't open a window. it will just be a process. this is how i made mine work (to stream my web cam as a flv stream)

Code: Select all
cvlc --color v4l2:// :v4l2-dev="/dev/video0" :v4l2-input=0 :v4l2-width=320 :v4l2-height=240 --sout='#transcode{vcodec=FLV1,vb=640,width=320,height=240}:std{mux=ffmpeg{mux=flv},access=http{mime=video/x-flv},dst=0.0.0.0:9000/stream.flv}'