Streaming video intervals using VLM

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
Cheata
New Cone
New Cone
Posts: 6
Joined: 12 Mar 2007 11:47

Streaming video intervals using VLM

Postby Cheata » 12 Mar 2007 11:55

Hi, I've been trying out the VLM for a while now and I was wondering, is it possible to use VoD to stream an interval of a certain video.

For example, is it possible to stream from 1:30 to 3:56 in a 5 minute video without the user being able to view the other parts?

I have seen a similar option in the user interface (Partial Extract in the wizard), but I can't find if this option is also available in VLM.

lukas23
Blank Cone
Blank Cone
Posts: 11
Joined: 09 Mar 2007 14:05

Postby lukas23 » 12 Mar 2007 15:07

Using the seek command you can make your stream start at any point, but I don't think there's a way to stop it automatically as you want to (at least, I don't know how to do it :wink:)

Here you have a basic example of a vlm config file to start your 5 min stream from min 1

Code: Select all

> new Test broadcast enabled > setup Test input "/path/to/file.ext" > setup Test output #transcode{vcodec=X,vb=X}:duplicate{dst=std{access=X,mux=X,port=X:X}} > setup control seek 20 > setup control play
Write your output preferences where Xs are

Hope this helps

Cheata
New Cone
New Cone
Posts: 6
Joined: 12 Mar 2007 11:47

Postby Cheata » 12 Mar 2007 15:52

Thanks for the reply!

I already found and used the seek function, but in this case the intervals 0:00 to 1:00 and 3:57 to 5:00 can still be seen (in VoD). I wanted to stop that, without having to break up the video file manually.

The idea I'm trying to realize is a tagging system for video fragments. For example, I have a video file of a newscast, which consists of several news items. Some users want to see the entire newscast, so I stream the entire video file. Other users might want to see only certain items, so I stream only those fragments.

Is this possible using VLM?

lukas23
Blank Cone
Blank Cone
Posts: 11
Joined: 09 Mar 2007 14:05

Postby lukas23 » 15 Mar 2007 11:44

With VLM itself I don't know, because I'm a VLC's newbie and I don't know what can and what cannot be done with it (you should ask to some VLC administrator).

However, you can programmaticaly design a simple application to control the timings you want and send the VLM orders to the VLC through a telnet connection (with some telnet scripting tool).

That's what I did after a while, as it's the easiest way of working with VLM commands (play, pause and stop) in real time.

Cheata
New Cone
New Cone
Posts: 6
Joined: 12 Mar 2007 11:47

Postby Cheata » 15 Mar 2007 12:11

The problem is, scheduling works great with broadcast streams, but I need to use Video on Demand. This would mean that, If a user seeks ahead (or back) in a video, my timing would be off.

That's why I would like to stream partial video's, ensuring the integrity of the video fragments.

Cheata
New Cone
New Cone
Posts: 6
Joined: 12 Mar 2007 11:47

Postby Cheata » 26 Mar 2007 12:00

So, I take it it's not possible? :(

Cheata
New Cone
New Cone
Posts: 6
Joined: 12 Mar 2007 11:47

Postby Cheata » 29 Mar 2007 11:23

OK, after some experimentation I got the following commands to work:

Code: Select all

new Test vod enabled setup Test input "some.avi" setup Test option start-time=60 setup Test option stop-time=120
This does show the correct fragment from 1:00 to 2:00, but the interface (slider) lets a user check the entire video, which I do not want. Does anyone know how to fix that? (Preferably without 'do not show the slider' :) )

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

Postby dionoea » 30 Mar 2007 00:11

It's not possible without creating a smaller video file containing only the needed video fragment.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

Cheata
New Cone
New Cone
Posts: 6
Joined: 12 Mar 2007 11:47

Postby Cheata » 31 Mar 2007 18:45

Oh well, then I'll have to find another way. Thanks for the help anyway.


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 8 guests