Simple question on streaming

About encoding, codec settings, muxers and filter usage
wang
Blank Cone
Blank Cone
Posts: 31
Joined: 17 Mar 2006 15:02

Simple question on streaming

Postby wang » 17 Mar 2006 15:28

I may apolodgize in advance if you think my question is idiotic.

Indeed, I have been trying to control remoteky VLC via the HTTP interface.

(I 've succeded in doing my own interface to play it locally, but I still can't invoke the HTTP server to stream.)

Moreover, I don't know how I could use VLC to stream with the given HTTP interface. There is a "Stream Output " text area on the HTTP frame, but I don't know what to put in.

It would be a pleasure to me to have some detailed examples, because, the different "Howtos" I've tried didn't help me much.

Thanks in advance.

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

Postby dionoea » 17 Mar 2006 16:10

What VLC version are you using on the server side ?
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

wang
Blank Cone
Blank Cone
Posts: 31
Joined: 17 Mar 2006 15:02

Postby wang » 17 Mar 2006 17:55

The newest one I think, :?

This is VLC media player 0.8.4 Janus.

Do you think this has somrthing to do wihth it?

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

Postby dionoea » 17 Mar 2006 18:26

I completely rewrote the web interface in 0.8.5. Could you try with the latest nightly build from http://nightlies.videolan.org ?
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

wang
Blank Cone
Blank Cone
Posts: 31
Joined: 17 Mar 2006 15:02

Not bad at all !!!

Postby wang » 19 Mar 2006 09:29

:o I'm impressed by the new HTTP interface you wrote, it really looks like the player's version.

I have tried some of the elements, and there were working pretty well.

However, I'll keep on asking you for some examples to use the server remotely. Indeed I am trying to control it through another http server, I am setting on my own. Thus, I'm interested in having a few examples on the http requests I have to send in order to use the VOD service embedded in VLC server.

It seems to be possible to do it, but as I am a neophyte, it appears a bit complicated, to use VLC vod service.

Thanks alote for your given help. :)

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

Postby dionoea » 20 Mar 2006 01:36

If you want to use the VOD service (vlm), you'll have to read chapter 05 in the streaming howto on http://www.videolan.org/doc/ since the web interface only sends this type of commands.

To send commands : http://<ip>:<port>/requests/vlm_cmd.xml?vlm_cmd=<the command with unauthorised characters url encoded>
Such example commands are displayed in the new vlm interface (in the upper most text box).
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

wang
Blank Cone
Blank Cone
Posts: 31
Joined: 17 Mar 2006 15:02

Postby wang » 21 Mar 2006 08:42

:) I 've succeded in using the broadcast module by changing the VLC version as you advice me to. But concerning the vod one I am still keeping on trying to make it work ..... :? . I'll try the syntax example you showed me later on.

If I don't succed, then I'll post the configuration I used for the VOD service on the forum in case there would be a mistake...

Wish me good luck!!!
:D

wang
Blank Cone
Blank Cone
Posts: 31
Joined: 17 Mar 2006 15:02

Postby wang » 22 Mar 2006 10:51

Hi,

dionoea told me to use the syntax

http://IP-MACHINE:USED-PORT/requests/vlm_cmd.xml?vlm_cmd=<the command with unauthorised characters url encoded>

However the command I tried many commands with the syntax:
- "control stream_name command_name"
with space between each argument. It was not the goood syntax to use in an http request !!! :?: :?
- "control&stream_name&command_name"
:?: :shock: wich was conformed with old syntax I used to control VLC with a previous version, but nothing appened

Is the first syntax I used only compliant with the textfield on the VLM interface? (beacause it was working with it)
And, I would be glad to have a real example of an HTTP control request (I could send thanks to a server or an Internet browser), if it is possible to have it: (it will help any of us save some time). :)
Waiting for an answer.

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

Postby dionoea » 22 Mar 2006 14:25

you need to escape the characters used in the URL. Use the javascript escape() function to see what that means. (i think that spaces are changed into +)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

wang
Blank Cone
Blank Cone
Posts: 31
Joined: 17 Mar 2006 15:02

Postby wang » 23 Mar 2006 12:28

HI !!!! :D :D :D

Thank you for your help Antoine, I have succeded in controling VOD service as well as "broadcast" one..... :lol:

I think I'll post a small tutorial when I'll get a bit of time, but I don't remember wehter French language, is allowed on this forum or not... it would take me too long to translate it in English.....(only if I have plenty of demands... :) ).

I am now working on status commands, and I am trying to deduce the good syntax from the one I used for control...

More generally, I would like to know where in a media file, you can get metadata like: author, title, music length... and how you extract them.

"Merci beaucoup pour ton aide et à très bientôt j'espère".

wang
Blank Cone
Blank Cone
Posts: 31
Joined: 17 Mar 2006 15:02

Postby wang » 27 Mar 2006 13:35

Hi !!!
In the HOWTO STREAMING, it is written : "Depuis la version 0.8.2, toute ligne dont le premier caractère hors espace est un dièse # est considérée comme un commentaire, et donc ignorée."

Indeed, I could create the stream remotely and I wanted to set up the "output" text field with an HTTP request like :

GET /HOST:PORT/request/vlm_cmd.xml?command=setup+STREAM_NAME+output+#std{access=........}
(all the capital letters are parameters except "GET").


The problem is that the # symbol create an error when it is needed as a command marker when I use VLM.... I would like to know how you can ask VLM to transcode remotely (via HTTP) a VOD stream if the symbol "#" is not considered when I need it.:?


If someone has an idea, it would be very welcomed. :)

wang
Blank Cone
Blank Cone
Posts: 31
Joined: 17 Mar 2006 15:02

Postby wang » 27 Mar 2006 14:27

:oops: Sorry no more problem concerning "#" symbol........ :oops:

In another hand, does someone know how to get metadata in a media files such as: title, time_length,author....? I was thinking one solution was to get these data thanks to VLC.... or maybe there are other means to do it, I do know none of them.
I have been looking for it for a long time, but no answer came to my mind.
:D

wang
Blank Cone
Blank Cone
Posts: 31
Joined: 17 Mar 2006 15:02

Just one little question

Postby wang » 11 Apr 2006 11:21

Hi everyone, I am back again!!! :)

I would like to know if RTSP module in VLC cannot really be used to create some real-VoD service:
Note

Même s'il est possible d'utiliser le RTSP dans ce module, vous ne pourrez pas faire de la Vidéo à la Demande. Veuillez vous reporter à la description du module VLC pour cela.
Do I have to go on with an HTTP interface to have real-VoD service, how can I rely on VLC's RTSP?

Thanks to answer my question! :)


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 11 guests