All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Proxy streaming video from webcam
I've got a Panasonic network camera, and I'm curious if there's a way I could proxy the streaming video through my web server (using nginx right now).
It's capable of an h264 RTSP stream, or MJPEG (I'm thinking the RTSP stream would work best). It's 640x480, no audio.
I'd like it setup so the stream from my camera is only started if there's at least one viewer, and then if there are multiple viewers, they would be fed from the web server or proxy software, so that it won't hit my camera with more than a single stream.
Also, I'd need a video client (maybe flash player based, or html5?) that I could embed into a web page to view the video.
Is this possible? Any tips on what I'd need to do, or what I should look into?
Thanks.
Comments
Perhaps look into the nginx rtmp module?
https://github.com/arut/nginx-rtmp-module/blob/master/README.md
Unfortunately nginx-rtmp doesn't ingest RTSP - it only deals with RTMP.
There was crtmpd, but it looks like that project has been left in the dust.
A new project is SRS, but I haven't had a chance to mess with it so I couldn't chime in on how well it works or how to configure it. It does does look promising.
Wiki page for the specific function (ingest stream and push out as RTMP or HLS): https://github.com/ossrs/srs/wiki/v1_EN_Ingest
I ever did that with simple CGI script in AJAX to activate/deactivate the stream, but in that case i also doing transcode with FFMPEG which is will eat much CPU resource, you may change the FFMPEG parts with other.
Thanks for the info, I'm reading up on it now.