streaming multiple streams simultaneously from same server

About encoding, codec settings, muxers and filter usage
hakova
Blank Cone
Blank Cone
Posts: 16
Joined: 20 Dec 2007 02:45

streaming multiple streams simultaneously from same server

Postby hakova » 20 Dec 2007 17:10

Hi there,

I posted this message previously to VLS/SAP forum mistakenly and I apologize for that.

I am not sure whether this is possible or feasible but what I am trying to do is to create 2-3 audio lan broadcasts that can be listened to from a receiver as preset radio stations, using VLC. For this purpose, I probably need to run multiple sessions of vlc using different ports (e.g. 8080, 8090, etc.), right?
1. Is this possible?
2. Is there a better way to do this?
I am embarrassed to admit this but I couldn't figure out how to change the http broadcast port for different streams even though I read the documentation.

I searched the forum and came across a thread talking about using VLM to do is via a configuration file. Can someone point me some documentation to read about this, because I don't even know how to use the configuration file.
linuxrocks wrote:
I am trying to stream multiple videos using VLM. I am trying to use the following configuration file.....
Thanks in advance for the replies.

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: streaming multiple streams simultaneously from same server

Postby revolunet » 20 Dec 2007 18:39

hi

this is a perfect job for VLM. VLM allows you to start only one instance of VLC but control multiple streams from it

start a vlc with the admin http interface and then you can control VLM channels via http. you could do it via telnet too

check http://wiki.videolan.org/VLM
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

hakova
Blank Cone
Blank Cone
Posts: 16
Joined: 20 Dec 2007 02:45

Re: streaming multiple streams simultaneously from same server

Postby hakova » 22 Dec 2007 14:56

hi

this is a perfect job for VLM.
Thanks for the excellent suggestion. I now have the following problem: I define and create the first stream on VLM, but when I start the broadcast, I encounter the following error messages:

Code: Select all

[00002923] [Media: Folk] main stream output error: stream chain failed for `duplicate{dst=std{access=http,mux=raw,dst=:8080}}' [00002922] [Media: Folk] main input error: cannot start stream output instance, aborting [00002931] [Media: Folk] access_output_http private error: cannot add stream / [00002930] [Media: Folk] stream_out_standard private error: no suitable sout access module for `http/raw://:8080' [00002929] [Media: Folk] stream_out_duplicate private error: no destination given [00002928] [Media: Folk] main stream output error: stream chain failed for `duplicate{dst=std{access=http,mux=raw,dst=:8080}}' [00002927] [Media: Folk] main input error: cannot start stream output instance, aborting [00002936] [Media: Folk] access_output_http private error: cannot add stream / [00002935] [Media: Folk] stream_out_standard private error: no suitable sout access module for `http/raw://:8080' [00002934] [Media: Folk] stream_out_duplicate private error: no destination given [00002933] [Media: Folk] main stream output error: stream chain failed for `duplicate{dst=std{access=http,mux=raw,dst=:8080}}' [00002932] [Media: Folk] main input error: cannot start stream output instance, aborting [00002941] [Media: Folk] access_output_http private error: cannot add stream / [00002940] [Media: Folk] stream_out_standard private error: no suitable sout access module for `http/raw://:8080' [00002939] [Media: Folk] stream_out_duplicate private error: no destination given [00002938] [Media: Folk] main stream output error: stream chain failed for `duplicate{dst=std{access=http,mux=raw,dst=:8080}}' [00002937] [Media: Folk] main input error: cannot start stream output instance, aborting
The same stream broadcasts fine when I do it from vlc, using the same port and settings. My version of vlc is: VLC media player 0.8.6c Janus. I am using Mandriva 2008 linux system.
Any contribution is much appreciated.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: streaming multiple streams simultaneously from same server

Postby Rémi Denis-Courmont » 22 Dec 2007 16:07

You can't add two streams at the exact same URL for obvious reasons.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

hakova
Blank Cone
Blank Cone
Posts: 16
Joined: 20 Dec 2007 02:45

Re: streaming multiple streams simultaneously from same server

Postby hakova » 22 Dec 2007 16:57

You can't add two streams at the exact same URL for obvious reasons.
Thanks for the reply. Questions:
1. Is same server different ports (e.g. 192.168.0.10:8080 and 192.168.0.10:8090) considered as same URL?
2. The error that I posted previously was obtained while I was trying to broadcast only one stream through vlm. Can anyone comment on this issue?

I have another computer which seems to do exactly what I am trying to do, but I don't want to use it as a server. I didn't check whether the streams are audible from another computer, but at least vlm doesn't give error messages and the vlm window looks like the streams are broadcasted independently. This particular computer that gives me the error message while trying to use vlm doesn't seem to have any other obvious problems, either. What I did so far is as follows:
1. Install vlc from rpm (see the version from previous post)
2. Built vlc (vlc-0.8.6d.tar.bz2) from source
3. Switch OS from one flavor of linux to another (Pardus to Mandriva 2008), just to accomplish this task, which works as I mentioned above on the other computer.

hakova
Blank Cone
Blank Cone
Posts: 16
Joined: 20 Dec 2007 02:45

Re: streaming multiple streams simultaneously from same server

Postby hakova » 22 Dec 2007 17:57

I figured what is wrong. VLM crashes or fails to broadcast when the input file is an m3u file. If you point to a single mp3 file it works just fine, and does exactly what I want it to do, i.e. simultaneous broadcast of two different streams (audible) from the same server but two different ports.
Did anybody encounter this problem before? Should I report it as a bug?
I am in process of trying other playlist formats, specifically pls. I will report / question when I have some results.
Thanks.

hakova
Blank Cone
Blank Cone
Posts: 16
Joined: 20 Dec 2007 02:45

Re: streaming multiple streams simultaneously from same server

Postby hakova » 23 Dec 2007 03:31

This is to report that vlm causes vlc to crash when one attempts to broadcast a playlist file rather than a single mp3 file. Currently both m3u (simple and extended versions) and pls format playlists cause segmentation fault and crash vlc. I am more than happy to give further information if anybody needs.
Thanks.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 7 guests