Driving VLM from a php website

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
pootle
New Cone
New Cone
Posts: 7
Joined: 28 Dec 2005 12:14
Location: Staffs, UK

Driving VLM from a php website

Postby pootle » 08 Jan 2006 02:13

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.
Streaming audio and vidio from a server, controlled by a database and web site written in php - that is the plan :)

Guest

Postby Guest » 15 Jan 2006 15:08

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 :)

nigel

testing vod

Postby nigel » 09 Feb 2006 05:57

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

pootle
New Cone
New Cone
Posts: 7
Joined: 28 Dec 2005 12:14
Location: Staffs, UK

Re: testing vod

Postby pootle » 14 Feb 2006 20:56


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.
Streaming audio and vidio from a server, controlled by a database and web site written in php - that is the plan :)

Guest

Re: testing vod

Postby Guest » 26 Mar 2006 00:09


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.


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 31 guests