Stream /dev/video0 over WebRTC

353 views
Skip to first unread message

P THE AWESOME

unread,
Jan 31, 2015, 4:10:06 PM1/31/15
to nod...@googlegroups.com
There are lots of WebRTC libraries now, but I can't find a way to serve a local video device. I am on Debian 7.8 (wheezy) with no GUI (terminal only). I would like to only run a NodeJS server in the background, not a browser.

mscdex

unread,
Jan 31, 2015, 4:53:13 PM1/31/15
to nod...@googlegroups.com
On Saturday, January 31, 2015 at 4:10:06 PM UTC-5, P THE AWESOME wrote:
There are lots of WebRTC libraries now, but I can't find a way to serve a local video device. I am on Debian 7.8 (wheezy) with no GUI (terminal only). I would like to only run a NodeJS server in the background, not a browser.

It's not WebRTC or node (strictly), but FWIW I've used the command-line vlc to stream /dev/video0 (and audio) to a video element in the browser. cvlc has an http server to serve the content, but you could use node to proxy between a browser and cvlc if you needed to do authentication first instead of allowing direct access to the stream.

P THE AWESOME

unread,
Feb 1, 2015, 11:19:08 AM2/1/15
to nod...@googlegroups.com
I'm going to try that. I remember that VLC has RTP/RTMP support. The only problem is that there is no real stream support in HTML5. Some browsers just happen to support h.264, vp9, or ogg live streams. WebRTC is a full spec that I know will work in all browsers that have WebRTC.
Reply all
Reply to author
Forward
0 new messages