Question:VOD on HTTP protocol using VLM

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
nx662001
New Cone
New Cone
Posts: 3
Joined: 25 Jan 2006 01:43

Question:VOD on HTTP protocol using VLM

Postby nx662001 » 25 Jan 2006 01:59

Hello,

I am new to VLM/VLC, I'd appreciate for your pointers. In the documenation (chapter 5 - VLM), it presents an example using:

server side:

Code: Select all

vlc --ttl 12 -vvv --color -I telnet --telnet-password videolan --rtsp-host 0.0.0.0:5554
client side:

Code: Select all

vlc rtsp://server:5554/Test
I am wondering how to achieve the same (VLM streaming) on HTTP protocol, so that the client may use command as

Code: Select all

vlc http://server:5554/Test
.

Further, suppose I embed a media player (e.g., WMP) in HTML, and fetch video/audio from the VLM server, what should be the syntax? Is it something like:

Code: Select all

<OBJECT ....> <PARAM name="fileName" value="http://server:5554/Test"> ... </OBJECT>
Btw, I am using Window XP. Thanks!

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 25 Jan 2006 13:06

you can do http streaming ... but i don't know about http VoD. (in VLC)

To stream using http you just do:

new test broadcast enabled input <input> output #std{access=http,mux=<some mux>,url=0.0.0.0:8080}
control test play

than the user will he able to listen to the streamon on http://<server ip>:8080/test
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

nx662001
New Cone
New Cone
Posts: 3
Joined: 25 Jan 2006 01:43

Postby nx662001 » 25 Jan 2006 17:42

Thanks, dionoea! I appreciate your answer.

In my use case, I am more looking towards VOD over HTTP using VLM. thanks!

CapnBry

Postby CapnBry » 02 Feb 2006 16:52

You can do it, you just have to specify the output before the input in your vlm configuration (for some reason when you specify an input for a VOD resource it starts immediately I think). I've done it thusly:

Code: Select all

del all new test.asf vod enabled setup test.asf output #transcode{fps=15.00,venc=ffmpeg,vcodec=WMV1,vb=96,width=320,height=240,acodec=mp3,ab=32,samplerate=16000,channels=1}:std{access=http,mux=asf,url=:8090/test.asf} setup test.asf input "v:\Adult_Swim\Harvey Birdman\Harvey Birdman - Training Video.avi"
But I'm looking into better http VOD support myself.

dschultz

re:Question:VOD on HTTP protocol using VLM

Postby dschultz » 04 Feb 2006 07:34

I too would love to see this improved. Perhaps someone knows a trick I dont. I am trying to setup vod streaming over httpd

here is a part of my vod channels.conf config file, it appears that vlc immediatly starts the first stream as soon as it gets an input..thus the load channels.conf command hangs indefinatly.

Code: Select all

new test vod enabled setup test output #std{access=http,mux=asf,url=:8080/test} setup test input udp://@225.1.9.52:2001 new test2 vod enabled setup test2 output #std{access=http,mux=asf,url=:8080/test2} setup test2 input udp://@225.1.4.139:2001
I can indeed successfully watch the first stream using vlc client by going to http://<vlc server ip>:8080/test

Any suggestions?

jgg
Cone that earned his stripes
Cone that earned his stripes
Posts: 144
Joined: 03 Nov 2007 15:49

Re: Question:VOD on HTTP protocol using VLM

Postby jgg » 09 Feb 2008 12:12

Two years later... I am managing with the same problem.

I have tried this:

Code: Select all

new test vod enabled setup test output #std{access=http,mux=asf,url=:8080/test} setup test input /path/to/video/file/test.mpg
And the telnet interface hooks with no '>' response. I have tried to receive with 'vlc http://server_ip:8080/test' and it fails. The vlm log shows that everything seems to go on its way. I am using VLC 0.8.6d for Linux and I need to stream to a WMP client.

Can anybody help, please? Much appreciated.

lizhijun
New Cone
New Cone
Posts: 1
Joined: 01 Feb 2008 08:25

Re: Question:VOD on HTTP protocol using VLM

Postby lizhijun » 19 Feb 2008 08:00

you can modify codes to do this.I modify httpd.c by adding "if((strstr((char *)cl->p_buffer,"DESCRIBE") ) && b_space )
{
//int j;
char * temp = strstr( (char *)cl->p_buffer, "//" ) ;
temp = temp+2;
char * temp2 = strstr(temp, "/");
temp2 = temp2+1;
// printf("(((((((((((((((=%s;=%s\n",lzj->psz_url,temp2);
// temp22 = temp2;
int ii = strlen(temp2);
char * temp3 = strstr(temp2, ".");
temp3 = temp3+1;
.................................
vlm_MediaSetup1( mediatheque, p_media, psz_cmd2 , path_name, b_last );"
do this i can achieve

yohann.martineau
Blank Cone
Blank Cone
Posts: 84
Joined: 27 Aug 2007 15:22

Re: Question:VOD on HTTP protocol using VLM

Postby yohann.martineau » 19 Feb 2008 09:59

did you try with:
setup test input file:///path/to/video/file/test.mpg
instead of:
setup test input /path/to/video/file/test.mpg

obmit
New Cone
New Cone
Posts: 3
Joined: 22 Feb 2008 15:56

Re: Question:VOD on HTTP protocol using VLM

Postby obmit » 22 Feb 2008 16:00

I have the same problem, and I also tried with your suggestion, yohann:

> setup test input file:///path/to/video/file/test.mpg

but the telnet interface just hangs after that. Streaming the video works fine though. But I cannot log in or control the vlc server anymore.

obmit
New Cone
New Cone
Posts: 3
Joined: 22 Feb 2008 15:56

Re: Question:VOD on HTTP protocol using VLM

Postby obmit » 23 Feb 2008 11:32

I have also tried using a config file, without success:

new test1 vod enabled
setup test1 output #std{access=http,mux=asf,url=:8080/test1}
setup test1 input /files/test1.mpg

new test2 vod enabled
setup test2 output #std{access=http,mux=asf,url=:8080/test2}
setup test2 input /files/test2.mpg

# vlc -vlm-conf vlm.conf --ttl 20 -vvv --color -I telnet --telnet-password secret
VLC starts, but does not generate the VOD streams. I have also tried using file:///files/test1.mpg instead of /files/test1.mpg

Any suggestions?

yohann.martineau
Blank Cone
Blank Cone
Posts: 84
Joined: 27 Aug 2007 15:22

Re: Question:VOD on HTTP protocol using VLM

Postby yohann.martineau » 25 Feb 2008 13:54

Code: Select all

you can modify codes to do this.I modify httpd.c by adding "if((strstr((char *)cl->p_buffer,"DESCRIBE") ) && b_space )
actually, DESCRIBE is a RTSP method, I don't see any link with http... but maybe this keyword is employed in HTTP streaming... I don't know.

Did you try to launch vlc with http interface and then use .../requests/vlm_cmd.xml?command=telnet_equivalent_command ?

because for me it was working fine with http commands. Maybe there is an issue with telnet interface that is not present if http request is used... ?

obmit
New Cone
New Cone
Posts: 3
Joined: 22 Feb 2008 15:56

Re: Question:VOD on HTTP protocol using VLM

Postby obmit » 27 Feb 2008 01:58

with:
# vlc --ttl 12 -vvv --color -I http
I can add multiple vods on the http interface, without encountering the "hanging" bug.

Input:
/var/www/movie1.avi
Output:
#std{access=http,mux=asf,url=:8080/movie1}
[x] enabled

... movie2, movie3 to :8080/movie2, :8080/movie3 ... etc.

However, they don't stream :( . The Server Debug sees me connect, thats all it writes:
[00000276] main http server debug: Connection from 1.2.3.4

These are the client messages:
main debug: connection in progress
access_http debug: protocol 'HTTP' answer code 404
access_http error: error: HTTP/1.0 404 Not found
access_http debug: switching to HTTP version 1.0
main debug: net: connecting to [server protected] port 8080
main debug: connection in progress
access_http debug: protocol 'HTTP' answer code 404
access_http error: error: HTTP/1.0 404 Not found


When I add the same movie with the same parameters over telnet, it streams.
>new test vod
>setup test output #std{access=http,mux=asf,url=:8080/test1}
>setup test input /var/www/movie1.avi
>setup test enabled

(I use 0.8.6d as server and client and connect to http://server:8080/movie1 in both cases)

dragon-pk
Blank Cone
Blank Cone
Posts: 67
Joined: 27 Mar 2008 05:23

Re: Question:VOD on HTTP protocol using VLM

Postby dragon-pk » 03 Apr 2008 03:45

Code: Select all

you can modify codes to do this.I modify httpd.c by adding "if((strstr((char *)cl->p_buffer,"DESCRIBE") ) && b_space )
actually, DESCRIBE is a RTSP method, I don't see any link with http... but maybe this keyword is employed in HTTP streaming... I don't know.

Did you try to launch vlc with http interface and then use .../requests/vlm_cmd.xml?command=telnet_equivalent_command ?

because for me it was working fine with http commands. Maybe there is an issue with telnet interface that is not present if http request is used... ?
sorry!i think you would like to realize it by rtsp

KOPRajs
New Cone
New Cone
Posts: 2
Joined: 25 Nov 2010 17:20

Re: Question:VOD on HTTP protocol using VLM

Postby KOPRajs » 25 Nov 2010 20:00

The same problem here... trying to re-stream http stream as VOD with VLM 1.0.5. Any chance this is going to be fixed? Any workaround?
I need to re-stream http stream but I need the source stream to have only one instance when many clients watching and no instance when nobody watching.

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: Question:VOD on HTTP protocol using VLM

Postby Sébastien Escudier » 26 Nov 2010 08:21

I don't think vlc can do this.
With VOD you will have one instance per client.
With broadcast you will have one instance all the time.

ravendawson
New Cone
New Cone
Posts: 1
Joined: 15 Dec 2010 05:49

Re: Question:VOD on HTTP protocol using VLM

Postby ravendawson » 15 Dec 2010 06:26

Do you think we can stream VOD on protocol https with VLM? Is that possible?

kennhardy
New Cone
New Cone
Posts: 1
Joined: 15 Mar 2012 21:55

Re: Question:VOD on HTTP protocol using VLM

Postby kennhardy » 15 Mar 2012 21:57

I am not an expert so excuse me if I am wrong. But it seems like you are trying to send the two streams over the same port.. Try change "test2"/"stream2" to port 8081 instead of 8080.

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: Question:VOD on HTTP protocol using VLM

Postby Sébastien Escudier » 16 Mar 2012 13:26

No. The problem is you cannot change the stream output protocol with VOD.
Only rtsp vod is supported.


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 2 guests