I want to create a program that will stream video from my USB webcam over the internet to a web page.
Currently, I use a webservice that when triggered, calls fswebcam
to capture an image, save to data store, convert to base64 binary and send that data over to the HTML page where it is rendered into the 'src' attribute of 'img'. The HTML page has JavaScript that calls this service once per second.
As you can tell this is a horrible way to do this. I would rather have a proper stream if I can. But I don't know what technologies are available to achieve this.
The webservice is written in nodeJS
. The server is running on a raspberry pi 2
. I didn't put this question in the raspberry pi forum
because I think it's a general Linux/programming
issue.
framerate
are 2 to 100 so it isn't possible to use parameters between 1000 and 1500 as suggested. – Septenary