running a Webcam with vlc

About encoding, codec settings, muxers and filter usage
argon6
New Cone
New Cone
Posts: 3
Joined: 28 Apr 2004 13:47

running a Webcam with vlc

Postby argon6 » 27 May 2004 19:00

Hi,

i've got a problem i want to run a webcam on a windows client and want to broadcast the stream to a linux (command line) Server.
Other clients shall be able to see the stream through http.
Broadcasting from one to another vlc client directly through the linuxserver works fine.
I stream from vlc windowsclient via udp to the linux server 192.168.92.88:
vlc -vvv 192.168.92.13 --sout '#standard access=http,url=192.168.92.88:8080}'
Now i want to connect from lets say 192.168.92.12 to http://192.168.92.88:8080 to the stream that i broadcast from 192.168.92.13.
What do i miss here?

Thank you for your support

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

Postby markfm » 30 May 2004 13:09

Is this what you want to do? :

Stream from Windows at 92.13 to Linux client at 92.88,
then
re-stream (re-transmit) from Linux at 92.88 to other client at 92.12?

It sounds like you have the first part, from Windows server to Linux client OK -- correct?

In Windows (the OS I use), if I want to display something locally, plus re-transmit it, make it available on my PC as an HTTP stream, I would use a "sout" piece that looks like:
:sout=#transcode{vcodec=WMV2,vb=1024,scale=1,acodec=mp3,ab=192,channels=2}:duplicate{dst=display,dst=std{access=http,mux=avi,url=127.0.0.1:8080}}

What the above does is:
-Set up a transcoding (you probably don't want/need this), to WMV2 video at 1024 kbps, mp3 audio at 192 kbps
-Make two "output" sets of the resulting data, one to my local display, and one made available via HTTP to anyone connecting to my PC's IP address
(127.0.0.1 is "Localhost", something that a PC knows means to use its local interface); the HTTP copy is an AVI transport stream

If I just want to re-transmit, don't local display, no transcoding, make it a UDP multicast, the line looks like:

:sout=#duplicate{dst=std{access=udp,mux=ts,url=239.20.30.40:1234}}

The above copies the data, makes it available as a UDP stream, uses MPEG Transmit Stream format, on address 239.20.30.40, port 1234

if working from a Linux command line, I believe you change ":sout=" to "--sout ", then wrap the rest of it in quotation marks (so it looks like "#transcode ... 8080}}" -- check the VLC reference documentation, the How-To I believe.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 7 guests