Page 1 of 1

Requesting VOD from VLC

Posted: 04 Sep 2007 13:35
by aissa
hi,

im new to controlling VLC from client side

goal: to send request from client side using php to stream certain mpg file

till now i got the below:

Code: Select all

$program = 'start C://"Program Files"//VideoLAN//VLC//vlc.exe C://wamp//www//test//testVTS_01_0.mpg:sout=#duplicate{dst=display,dst=std{access=udp,mux=ts,dst=224.1.1.1:1234}}'; $descriptorspec = array( 0 => array("pipe", "r"), 1 => array("pipe", "w"), ); $env = array('some_option' => 'aeiou'); $process = proc_open($program, $descriptorspec, $env); $process_stats = proc_get_status($process); $process_close = proc_close($process);
this test is done using window server
i was able to catch the stream but how to close the vlc from the server since the pid is return wrong, im using php 5.2.4 by the way.

my question is there is any way else to do that, and can we do time shifting like FW FF and pause

thanks

Re: Requesting VOD from VLC

Posted: 04 Sep 2007 19:12
by funman
you'd better use vlm and tcp remote interface to control the distant vlc, have a look at http://www.videolan.org/doc on streaming doc