Jump to content


Photo

View IP security cam on Enogma2


  • Please log in to reply
5 replies to this topic

#1 shumifan50

  • Senior Member
  • 195 posts

+2
Neutral

Posted 28 September 2010 - 12:17

I found DreamCamIP for viewing IP security cameras on Enigma1, but most of my dreamboxes run Enigma2, so I would like to make a plugin for Enigma2. However, I have never written a plugin, but did find good enough documentation on how to write a plugin. What I cannot find is documentation on how to display JPEG or MJPEG from a plugin. I don't mind writing the plugin in python and/or C. I would also apreciate any help on how to interface to a website from within the plugin as these cameras are accessed using http. In the meantime I will look at pictureviewer to see if I can get the info from there.

I think such a plugin will become very useful as these IPcams are becoming cheaper and popular. The Enigma1 version is great and works like a charm.

Any pointers, help, code snippets etc will be much appreciated.
DM600, DM800HD, DM7025, DM500S HD. DM800HDse, 90cm multi-bracket dish: 13E, 19.2E, 23.5E, 28.2E. Runnign OpenPli where I can and loving it!

Re: View IP security cam on Enogma2 #2 nfnovice

  • Senior Member
  • 696 posts

0
Neutral

Posted 28 September 2010 - 21:48

There is an enigma2 plugin available in teh downloads - I havent personally tested it - but I never re-invent the wheel - because mine would be square

enigma2-plugin-extensions-webcamviewer - experimental-cvs20100829UTC-r5 - view Pictures and Webcams on your TV Screen

cheers
DM800+DM7025+DM7020+DM7000+DM600+DM5620+DM500+VUDUO Dreambox great invention - whats it for ?

Re: View IP security cam on Enogma2 #3 shumifan50

  • Senior Member
  • 195 posts

+2
Neutral

Posted 28 September 2010 - 22:06

I'll have a look at webcamviewer, but this is NOT to view a webcam, it is to view an IP Security camera ,which is not connected by USB but by LAN. It has to send http requests to a webserver that runs on the camera and gets the jpeg or mjpeg images back.
DM600, DM800HD, DM7025, DM500S HD. DM800HDse, 90cm multi-bracket dish: 13E, 19.2E, 23.5E, 28.2E. Runnign OpenPli where I can and loving it!

Re: View IP security cam on Enogma2 #4 shumifan50

  • Senior Member
  • 195 posts

+2
Neutral

Posted 30 September 2010 - 14:09

Worked out how to display jpeg images from memory. Will now write the plugin when I have some more time.
DM600, DM800HD, DM7025, DM500S HD. DM800HDse, 90cm multi-bracket dish: 13E, 19.2E, 23.5E, 28.2E. Runnign OpenPli where I can and loving it!

Re: View IP security cam on Enogma2 #5 shumifan50

  • Senior Member
  • 195 posts

+2
Neutral

Posted 3 October 2010 - 00:16

I had that wrong. I can display a jpg from a disk file using ePicLoad, but I have not found the class for displaying it from memory. That is not the end of the world although it is a little wasteful, but it does mean you have an image on disk/flash for each cam all the time. As it will be the last image retrieved, it will be the last image just before a camera stopped responding. If this is because of malicious interference, it might have caught the culprit.

I would, however, still like to display straight from memory as it will help the slower boxes, like the DM7025 and DM800. It seems I will have to dig into the C++ code for ePicLoad, if I can find the correct source file(s). It might even be able to display straight from memory. I do believe a previous class existed that did not have the file handling in the C++ module - that seems to have been introduced around 2007/8 as it is listed as a new feature used by mediaplayer etc.

Any help will still be appreciated.

Note: I have a test version with hardcoded URLs etc working with one camera, but it retrieves the jpg image, stores it on disk and then displays it using ePicload etc, like used in picture viewer. This mechanism could still work if I can pass a file object rather than a Filelist object to ePicLoad. But I have not yet worked out whether this is possible and if possible how to do it. I will keep digging.

Any help will really be appreciated.
DM600, DM800HD, DM7025, DM500S HD. DM800HDse, 90cm multi-bracket dish: 13E, 19.2E, 23.5E, 28.2E. Runnign OpenPli where I can and loving it!

Re: View IP security cam on Enogma2 #6 Sjaaky

  • Senior Member
  • 7,443 posts

+41
Good

Posted 4 October 2010 - 08:29

You can put the picture in /tmp, which is a filesystem in memory.


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users