recording video from a web camera

2,778 views
Skip to first unread message

mario

unread,
Jul 23, 2010, 3:03:21 PM7/23/10
to nodejs
Does anybody know of a way of record video from a web-camera/web-page,
to a node.js server? I guess like Adobe Flash Media Server but not
neseseraly flash based. Or can give me some leads. Node does streams
and recording a video is a stream.... I have no idea where to start.

James Carr

unread,
Jul 23, 2010, 3:09:38 PM7/23/10
to nod...@googlegroups.com
Hi Mario,

I cannot vouch for this module as I have never used it, but I came
across a module on github just yesterday for streaming and recording
HTML5 Theora video .

http://github.com/pkrumins/node-video

Looks like it might be what you need, but I have node idea if it works
or not. :)

Thanks,
James

> --
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com.
> To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
>
>

Matthew M. Kaufman

unread,
Jul 23, 2010, 3:12:40 PM7/23/10
to nod...@googlegroups.com
I have thought to do this with XMPP and Browser DOM / Stanza parsing from jQuery in general with my own work which is not based on node-js....

I have thought of possibly being able to receive in the browser frame by frame or a png and convert into base64, transmit (over xmpp in my thinking, through jquery stanza parsing and xpath element watching/replacing) --- in base 64 however -- and then de-base64 the image or frame on the server and put it back into the original stream or format (image) and build the video in as it is received.

I like how Clamd anti-virus takes in 15 bits at a time on the port its running on to try to stamp the data... Etc... Kind of same idea ..

PS: I don't post on this list much. I could be way off base on what I'm talking about here in relation to your question; I am just now making it a priority to become fully organized and aware of what's in my inbox (one of the items possibly being node-js; at least it currently is subscribed to).

PS For anyone that recalls my past statements: I may be willing to give node-js a full-time try at some point. I haven't looked at it for months. But it seems to be (topic wise) consistently following my trains of thought in this mailing list development idea and protocol wise. For the most part. :).

PS 2: XMPP isn't the overall end all answer; But messaging is..... and dom parsing ability. I have to look into what exactly node-js has evolved into. PS: Ajaxterm.org --- uses a method of just replacing the tcp packet frame of 1500 characters or so each time..... and just replacing the innerHTML. That is an interesting project for some debugging + thinking.

PS 2 (end sentence/off topic for sure now): Has anyone built a real-time direct terminal (web based of course) to work directly on a real linux server shell with node-js?

Okay; good luck with your video recording. PS if you can get video in the browser;From the Camera; I highly recommend debugging the DOM and looking for the object in it (the tree)... from there it's easy to transmit.

Matt Kaufman <mtthwkfmn>

--

nwhite

unread,
Jul 23, 2010, 3:19:24 PM7/23/10
to nod...@googlegroups.com
node-video looks awesome but doesn't provide any method for capturing video from the user. I haven't looked into this for sometime but I believe the only practical solution is still flash. The kicker is the server requirement.

Red5 might be a good place to start, its an open source flash server.

Marak Squires

unread,
Jul 23, 2010, 3:31:51 PM7/23/10
to nod...@googlegroups.com
I have thought of possibly being able to receive in the browser frame by frame or a png and convert into base64, transmit (over xmpp in my thinking, through jquery stanza parsing and xpath element watching/replacing) --- in base 64 however -- and then de-base64 the image or frame on the server and put it back into the original stream or format (image) and build the video in as it is received.

woah

Terry Riegel

unread,
Jul 23, 2010, 3:36:45 PM7/23/10
to nod...@googlegroups.com
I think at the moment the only way to get at a video stream from a web client is through flash, but there is no reason that flash couldn't send that stream to a node server.

I would be very interested if I am wrong on this. As an HTML5 method to capture live video from a webcam would be very cool.

Terry

Dean Landolt

unread,
Jul 23, 2010, 3:41:22 PM7/23/10
to nod...@googlegroups.com
On Fri, Jul 23, 2010 at 3:36 PM, Terry Riegel <rie...@clearimageonline.com> wrote:
I think at the moment the only way to get at a video stream from a web client is through flash, but there is no reason that flash couldn't send that stream to a node server.

I would be very interested if I am wrong on this. As an HTML5 method to capture live video from a webcam would be very cool.

I think you're right. Nothing to see here in HTML5...yet. Work is underway:

Chris Winberry

unread,
Jul 23, 2010, 5:02:05 PM7/23/10
to nod...@googlegroups.com

To capture from a flash source would require implementing an RTMP server (see red5 for a FLOSS implementation).

Elijah Insua

unread,
Jul 23, 2010, 5:13:25 PM7/23/10
to nod...@googlegroups.com
If possible, I think a great intermediary solution to this problem would be emulating the HTML5 media device api with flash.  The benefit of wrapping the HTML5 spec is to provide a layer that works for all browsers now, and an emulation layer for browsers that wont get HTML5 features for a while. This would also allow developers to render the image to canvas and/or also stream image data across the wire to a webservice (node) using websockets.

my 2 cents..

-- Elijah

Dean Landolt

unread,
Jul 23, 2010, 5:15:22 PM7/23/10
to nod...@googlegroups.com
On Fri, Jul 23, 2010 at 5:13 PM, Elijah Insua <tmp...@gmail.com> wrote:
If possible, I think a great intermediary solution to this problem would be emulating the HTML5 media device api with flash.  The benefit of wrapping the HTML5 spec is to provide a layer that works for all browsers now, and an emulation layer for browsers that wont get HTML5 features for a while. This would also allow developers to render the image to canvas and/or also stream image data across the wire to a webservice (node) using websockets.

my 2 cents..

So like the inverse of Video for Everybody? That's a cool idea.

Stephen Belanger

unread,
Jul 23, 2010, 5:23:53 PM7/23/10
to nod...@googlegroups.com
http://mackers.com/rant/2010/03/09/571-jquery-webcam

I was looking at this just the other day--it uses flash to collect the webcam stream and render it to a canvas element.

mario

unread,
Jul 24, 2010, 1:46:35 AM7/24/10
to nodejs
So to sum up. HTML5 video capture has not come far enough and flash
needs a xmpp server.

Open source xmpp servers:
http://github.com/erlyvideo/erlyvideo
http://osflash.org/red5

If Java and Erlang can do it, why notnode.js.

Thanks for the feedback.

Stephen Belanger

unread,
Jul 24, 2010, 1:56:20 AM7/24/10
to nod...@googlegroups.com
I don't think XMPP is required. You can pass flash data directly to Javascript, so I see no reason you can't pass it from the browser to the server via ajax.

mario

unread,
Jul 24, 2010, 2:33:43 PM7/24/10
to nodejs
sure but then it's not streaming and not very fast.

On Jul 24, 7:56 am, Stephen Belanger <cyruzdr...@gmail.com> wrote:
> I don't think XMPP is required. You can pass flash data directly to
> Javascript, so I see no reason you can't pass it from the browser to the
> server via ajax.
>
>
>
> On Fri, Jul 23, 2010 at 10:46 PM, mario <mmiche...@gmail.com> wrote:
> > So to sum up. HTML5 video capture has not come far enough and flash
> > needs a xmpp server.
>
> > Open source xmpp servers:
> >http://github.com/erlyvideo/erlyvideo
> >http://osflash.org/red5
>
> > If Java and Erlang can do it, why notnode.js.
>
> > Thanks for the feedback.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "nodejs" group.
> > To post to this group, send email to nod...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > nodejs+un...@googlegroups.com<nodejs%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages