Problem running VLC with exec()

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Problem running VLC with exec()

Postby joosh » 05. February 2010 19:32

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?
Posts: 1
Joined: 27. May 2009 00:28

Re: Problem running VLC with exec()

Postby cthackers » 03. March 2010 20:47

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=}'
Posts: 14
Joined: 03. March 2010 20:06

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 39 guests