dawid73
Posts: 2
Joined: Thu Jan 04, 2018 6:47 am

screenshot from IP camera

Thu Jan 04, 2018 7:30 am

Hello,
I have a little problem.
I need to write a program (preferably in Python), which after changing the input state GPIO on Raspberry will take screenshots from the IP camera and write to the disk.
I am currently using a webcam connected to USB and using "fswebcam":

Code: Select all

def foto():
        dt = str(datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S"))
        photofile = "/home/pi/AlarmFoto/"+dt+".jpg"
        os.system("fswebcam -r 800x600 "+ photofile)
I save the picture with the current time on the disk.

Now I would like to do the same with only an IP camera. The camera is Arecont-Vision.
To access the image from the camera you need to log in.
You can open the video on a web browser, but the option is not good, because sreenshot will be made not often, and the browser will heavily load the processor.

Maybe you have any idea how to do it?

Sorry for my English ;-)

User avatar
topguy
Posts: 5251
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: screenshot from IP camera

Mon Jan 15, 2018 1:45 am

Go to their home page and find some datasheets with details for accessing the camera feeds for you camera model.
https://www.arecontvision.com/resources.php

messypotamia
Posts: 62
Joined: Tue Jan 27, 2015 12:12 am

Re: screenshot from IP camera

Sat Mar 09, 2019 8:48 pm

topguy wrote:
Mon Jan 15, 2018 1:45 am
Go to their home page and find some datasheets with details ... https://www.arecontvision.com/resources.php
Their examples don't work [for me]. Of course I have passwords set on all my Arecont and Hikvision cameras, and the don't give any credentials to the cam, i.e. "viewer" "viewer_password".
My Hikvision cams are better documented and work great with my bash and .py scripts.
Haven't called into their tech because more and more of my cams in my installations are going to Hikvision.

Return to “General programming discussion”