Record a video through PHP Api

Have some questions or having issues with your IP Camera(s), Post them here for the mods and other users to assist you with.
Post Reply
avan777
Posts: 4
Joined: Tue Oct 01, 2019 3:03 am

Record a video through PHP Api

Post by avan777 »

Hi
I am trying to record a video through PHP Api. Please Help.
User avatar
longedge
Site Admin
Posts: 584
Joined: Fri Mar 31, 2017 9:34 am

Re: Record a video through PHP Api

Post by longedge »

Hello and welcome to the forum.

I''m not very knowledgeable on the subject myself but in order to make it easier for others perhaps to answer your question can you help with a better idea of what you want to do. I'm guessing that you want to use the camera's cgi interface to obtain a live video feed which might not be the easiest/best way for your purposes.

What camera have you got and what host would you make the request from i.e. where would the response be going to?
My AMCREST Cameras:-
2 x IP3M-941B firmware V2.620.00AC00.3.R, Build Date: 2019-12-18
1 x IP2M-841B firmware V2.420.AC00.18.R, Build Date: 2019-08-03
avan777
Posts: 4
Joined: Tue Oct 01, 2019 3:03 am

Re: Record a video through PHP Api

Post by avan777 »

Hi

Thanks for response.
I want to record a 10 min video stream to a cloud serve. I only have IP address to camera with username & password and tcp and udp. Let me know if I need anything else.
I am not sure "What camera have you got".
I have an IP address to hit where i can view live camera video. I will store the response to cloud server.
User avatar
longedge
Site Admin
Posts: 584
Joined: Fri Mar 31, 2017 9:34 am

Re: Record a video through PHP Api

Post by longedge »

avan777 wrote: Tue Oct 01, 2019 4:11 amI am not sure "What camera have you got".
I meant, what model of Amcrest camera are you using :) .

How are you currently viewing the camera? The application may well provide your best solution, for example most of the time I view my cameras using Internet Explorer and that interface allows me to adjust the camera setup for recordings to specify where they are stored. They can be triggered on motion detection, manually etc. The storage destination can be to the MSD card, NAS or by FTP and if you have FTP access to your cloud space that might work for you.

p.s. - There is also the option to save to Amcrest Cloud as well of course.
p.p.s. - If what you are talking about is recording the output from someone else's camera, then I think we are gertting into dangerous territory.
My AMCREST Cameras:-
2 x IP3M-941B firmware V2.620.00AC00.3.R, Build Date: 2019-12-18
1 x IP2M-841B firmware V2.420.AC00.18.R, Build Date: 2019-08-03
avan777
Posts: 4
Joined: Tue Oct 01, 2019 3:03 am

Re: Record a video through PHP Api

Post by avan777 »

Hi
Thanks for explaining.
My Device Type=IP4M-1051

Please let me know, Is there any possible way to do this through PHP API or SDK.
User avatar
longedge
Site Admin
Posts: 584
Joined: Fri Mar 31, 2017 9:34 am

Re: Record a video through PHP Api

Post by longedge »

Are you really developing a php solution, a.f.a.i.k. that would imply that you are going to run your code on a web server.

If you're referring to the Amcrest http sdk then you you'll find it here https://support.amcrest.com/hc/en-us/ar ... TP-API-SDK.

A search on the forum for "cgi-bin" will bring up lots of topics that may also be useful to you.

I don't think I can be of any further help but perhaps someone else will come in with other suggestions.
My AMCREST Cameras:-
2 x IP3M-941B firmware V2.620.00AC00.3.R, Build Date: 2019-12-18
1 x IP2M-841B firmware V2.420.AC00.18.R, Build Date: 2019-08-03
avan777
Posts: 4
Joined: Tue Oct 01, 2019 3:03 am

Re: Record a video through PHP Api

Post by avan777 »

I don't think this https://support.amcrest.com/hc/en-us/ar ... TP-API-SDK has PHP SDK
It contains a PDF file.

Thanks for everything you did. :)
User avatar
longedge
Site Admin
Posts: 584
Joined: Fri Mar 31, 2017 9:34 am

Re: Record a video through PHP Api

Post by longedge »

Yes indeed :) - I should have said " the documentation for the Amcrest camera http api."
My AMCREST Cameras:-
2 x IP3M-941B firmware V2.620.00AC00.3.R, Build Date: 2019-12-18
1 x IP2M-841B firmware V2.420.AC00.18.R, Build Date: 2019-08-03
Post Reply