new here: how to do this (basic?) task...

Old forum that is now archived. Please use one of the other forums.
evert
New Cone
New Cone
Posts: 4
Joined: 28 Sep 2004 10:18
Contact:

new here: how to do this (basic?) task...

Postby evert » 04 Oct 2004 10:21

Hi everyone!

I'm new in the world of audio/video streaming, and was wondering how to configure this basic task. I have a server with VLC and a MPG file. I would like to 'broadcast' this file (looped) so that whoever can connect to it with a media player (preferably WMP).

Which parameters do I give VLC on the server to loop this mpg-file and stream it (via UDP?).

What is the 'URL' I open with WMP on a client to view the stream?
Regards,
Evert Meulie

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 04 Oct 2004 13:03

Not with UDP -- VLC streams UDP using what's called MPEG TS -- WMP doesn't recognize it.

For WMP, stream using MMSH -- type in LocalHost or 127.0.0.1 in the address field next to that choice. Then select Encapsulation method ASF.

In WMP, select Open URL, then type in mmsh://address_of_server:port_of_server

If the MPEG is using CODECs supported by WMP, that's all. Otherwise you'll need Transcoding options -- set Video codec = div3, Audio codec = mp3. Transcoding uses more CPU, so you don't want to do that if it's not necessary.

Each client connecting will use a set of bandwidth -- if you're running a 512kbps video, 3 users will consume 1.5 Mbps on your network interface.

I'm not sure where/how to set loop through the wxwindows interface. From the command line, you would use --loop, I believe a command like:
c:\vlc\vlc.exe c:\myfile.mpg :sout=#duplicate{dst=std{access=mmsh,mux=asfh,url=:1234}} --loop

evert
New Cone
New Cone
Posts: 4
Joined: 28 Sep 2004 10:18
Contact:

Postby evert » 04 Oct 2004 13:12

So on Linux that would be:

Code: Select all

vlc video.mpg :sout=#duplicate{dst=std{access=mmsh,mux=asfh,url=:1234}}
That generates the following output:

Code: Select all

VLC media player 0.7.2 Bond Remote control interface initialized, `h' for help [00000178] main input: playlist item `video.mpg' [00000180] main private error: no sout stream module matched "duplicatedst=stdurl=" [00000179] main stream output error: stream chained failed for `duplicatedst=stdurl=:1234' [00000179] main stream output error: cannot delete object (179, (null)) with a parent [00000178] main input error: cannot start stream output instance, aborting [00000178] main input error: cannot delete object (178, (null)) with children
Regards,
Evert Meulie

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 04 Oct 2004 13:21

The command line is all on one line, but otherwise I'm Linux ignorant. Check the VLC documentation page -- the docs there were generated with Linux command-line samples, I believe. It'll be some Linux/Windows syntax difference, like using --sout vs. :sout.

evert
New Cone
New Cone
Posts: 4
Joined: 28 Sep 2004 10:18
Contact:

Postby evert » 04 Oct 2004 15:33

For WMP, stream using MMSH -- type in LocalHost or 127.0.0.1 in the address field next to that choice. Then select Encapsulation method ASF.
I had to use mms instead of mmsh... 8)
Regards,
Evert Meulie


Return to “VideoLAN”

Who is online

Users browsing this forum: No registered users and 12 guests