how do I stream a webcam

*nix specific usage questions
gonzo1948
Blank Cone
Blank Cone
Posts: 13
Joined: 29 Jun 2010 04:07

how do I stream a webcam

Postby gonzo1948 » 02 Jul 2010 04:44

I am trying to stream but am having problems. My input is working fine, that is, this works:

vlc v4l2://:v4l2-dev=/dev/video0

and I get the video from the webcam.

But now I am trying to stream this video out to a browser client. In an html file I have the <embed> tag that is specifing the vlc-plugin. If I use
a "target" of a file, I can play a movie out just fine. So, the plug-in in firefox is working. What I still cannot get working is streaming out
a multicast address on my local LAN, that is, the stream out side of vlc. This is what I am using but it does not work.

cvlc v4l2://:v4l2-dev=/dev/video0 --sout 'std{access=udp,mux=ts,url=239.255.0.100}' --ttl 12

The error says:

no access _and_ no muxer (fatal error)
stream chain failed for `standard{mux="",access="",dst="std{access=udp,mux=ts,url=239.255.0.100}"}'
cannot start stream output instance, aborting

The syntax for the --sout is not too friendly. I am reading the command line interface chapter of the documentation but still do not understand it all yet.

Any suggestions?

Thanks,

-Andres







cvlc v4l2://:v4l2-dev=/dev/video0 --sout 'std{access=udp,mux=ts,url=239.255.0.100}' --ttl 12

gonzo1948
Blank Cone
Blank Cone
Posts: 13
Joined: 29 Jun 2010 04:07

Re: how do I stream a webcam

Postby gonzo1948 » 03 Jul 2010 19:30

bump....

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

Re: how do I stream a webcam

Postby Rémi Denis-Courmont » 06 Jul 2010 17:47

You will need to encode the video signal in some MPEG TS-worthy video codec before you output it.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 29 guests