Page 1 of 1

Driving VLM from a php website

Posted: 08 Jan 2006 02:13
by pootle
I am writing a php 5 class to enable control of VLM from php.

There have been a few posts about this on this forum, but no-one has posted the answer, so I have put together some php code to do this. :D

I am running the php website and VLC on Windows server 2003 using IIS, and the code is written to work in this environment. I don't know how well it will work in other environments :(

I have it basically working, and will post the code shortly in whatever state I have managed to get to!

There may well be much better ways of doing some of this, if you have tested improvements, I would like to hear about them.

Posted: 15 Jan 2006 15:08
by Guest
I've sort of got things working, it streams mp3, but doesn't want to stream video from mpg files whether in TS or in PS format.

The link below is a single file with a php class and then a simple web page that allows you to see what VLM thinks it has and add new entries - nothing clever, just the basics.

http://homepages.nildram.co.uk/~malcolm ... sample.php

oh yes, this is how I run up vlm on the host....

"C:\Program Files\VideoLAN\VLC\vlc.exe" --ttl 12 -vvv --color -I telnet --telnet-password xyza --rtsp-host 0.0.0.0:5554

I'd appreciate any comments, or suggestions as to why I can't stream mpeg files :)

testing vod

Posted: 09 Feb 2006 05:57
by nigel
hi,
ive implemented vod as welll using php5...
ive tried the vlcsample.php that u posted above but

the page aaatnt.php is missing...

Can u give it to me....

Mine crashes everytime i create the first stream... but if i restart vlc and activate the telnet interface immediately it wrks fine but it does take a lot of cpu resourse...

many thanks in advance

Re: testing vod

Posted: 14 Feb 2006 20:56
by pootle

the page aaatnt.php is missing...

Can u give it to me....

Mine crashes everytime i create the first stream... but if i restart vlc and activate the telnet interface immediately it wrks fine but it does take a lot of cpu resourse...
Oops, sorry, just rename the file to aaatnt.php - it has everything in.

I have noticed this problem with high CPU - If you do the wrong thing at some points driving the serial interface it goes high CPU and stays there - its a real nuisance, it looks like some sort of buffer handling problem.

Re: testing vod

Posted: 26 Mar 2006 00:09
by Guest

the page aaatnt.php is missing...

Can u give it to me....

Mine crashes everytime i create the first stream... but if i restart vlc and activate the telnet interface immediately it wrks fine but it does take a lot of cpu resourse...
Oops, sorry, just rename the file to aaatnt.php - it has everything in.

I have noticed this problem with high CPU - If you do the wrong thing at some points driving the serial interface it goes high CPU and stays there - its a real nuisance, it looks like some sort of buffer handling problem.