Page 1 of 1

Ideal encoding/mux for webcam streaming?

Posted: 08 Aug 2013 00:39
by moeburn
Maybe you guys can help me out here.

I'm trying to stream a webcam from my Lubuntu Linux netbook to my Windows 8 desktop PC, using cvlc (without a display module) to stream, and VLC Window to view the stream. I downloaded the latest version of each about a week ago, so I believe they are both up to date.

I found the following command line on an internet guide on how to stream a webcam using VLC:

Code: Select all

cvlc v4l2:///dev/video0:size=640x480 --sout '#transcode{vcodec=MJPG,vb=400,scale=1,fps=10}:duplicate{dst=std{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:1234/webcam.mjpg}}'
But I presume this isn't ideal, because I don't need to be able to access the webcam through an html browser, just VLC is going to be viewing it. So I don't need the http access, and I don't need the mpjpeg mux, and there is probably a more efficient encoder I could use than MJPG.

There's also the fact that this encoder/mux combo seems to completely ignore whatever vb= bitrate I set, and will only use my fps= setting if I set fps=10. Any other fps value is ignored, even 9 or 11.

Any suggestions?