I generated this code due to me having IP cameras an not wanting to use ActiveX or Quick Time to play the video streams. The cameras that I am using are OpenEye CM-610 and CM-710 IP cameras. The cameras support MJPEG Streaming over HTTP (Port 8008 for these cameras). The cameras have to have multiple streams enabled specifically the MJPEG stream enabled so that it can pull the MJPEG stream with this code and have the recorder record the other stream for compression and data retention purposes.
H264 needs to be decoded and then encoded prior to displaying in a webpage as a stream. There is a opensource site called Webbit that has open sources code to use with Websockets that might work to pull MPEG4 or H264 video streams in a browser. I have tested this in chrome with 3 cameras and the Y U NO meme guy just for fun.
If accessing the code from outside the local network there may be a need to load up WAMP for a web server, change the ports to be in sequence, and then complete port forwarding to connect outside the LAN.
Keep in mind that the IP addresses that I used are statically set for my cameras and will need to be changed to get these to work on your setup.
<Disclaimer> I am not a developer but a guy that likes to tinker with programming. If this code does not work for you I am not supporting the code. It works for the cameras that I have but I do not have other cameras to test for compatibility with this code. </Disclaimer>
Thanks for looking !
Labels
- android (1)
- Drupal (3)
- IP Cameras (4)
- IT Information Technology HTML Java Security (1)
- Linux (1)
- Windows (2)
0 comments:
Post a Comment