ant-thomas / zsgx1hacks

Hacks for ZS-GX1 IP Camera and various Goke GK7102 based IP Cameras
365 stars 102 forks source link

SOLVED - Snapshot url #64

Open roleoroleo opened 6 years ago

roleoroleo commented 6 years ago

Is there a url to get a jpeg snapshot? I tried onvif/snapshot, snapshot and other typical path but nothing. I tried also at 8001 port. My cam is a Guudgo GD-SC03.

--- EDIT ---

When I try the url http://192.168.1.1:554/snapshot I receive a different message: Can't get picture. and the log reports: DoHTTPCommand ==> DoCGI: snapshot DDISnapshot_: Unsupported resolution 320x240

roleoroleo commented 6 years ago

Using a disassembler I found that the correct size is 320x180. I patched p2pcam and now it works.

davidlb commented 6 years ago

I (and probably others) would be interested by your patched p2pcam for taking snapshot. Can you provide it?

roleoroleo commented 6 years ago

Sure. I think p2pcam depends on the firmware version. But I will share my version as soon as possible.

roleoroleo commented 6 years ago

https://repository.ilpuntotecnico.com/files/roleo/public/guudgo_gd-sc03/p2pcam.tgz Feel free to share it. Fw version: 3.2.0.1118.

davidlb commented 6 years ago

Great, it works for me on Digoo DG-W01F (don't know how to get the Fw version) Thanks !

roleoroleo commented 6 years ago

You can read the firmare version in the log of onvifer, at the bottom of the page. Add Onvif camera, select name and IP, select user and password, select TCP transport, overwrite snapshot port with 554 and run.

Cruiser79 commented 6 years ago

@roleoroleo What did you patched in the p2pcam binary? Can you give me some more infos? My firmware is 3.1.0.0824, so i can't use your version of binary. I will try to patch my p2pcam on my own.

ant-thomas commented 6 years ago

Have you got any pointers for patching p2pcam? I'd like to look in to increasing the bitrate of the RTSP stream.

roleoroleo commented 6 years ago

I simply changed the wrong resolution 0xF0 with 0xB4 at binary offset 0x00035EFC (see my file above). F0 10 A0 E3 ---> B4 10 A0 E3 MOV R1, #0xF0 ---> MOV R1, #0xB4

Cruiser79 commented 6 years ago

Ok, i will search the position in my file. Which disassembler did you used, to find this position?

edsub commented 5 years ago

Works on DG-MYQ as well!!!

driesvancraen commented 5 years ago

Great, it works for me on Digoo DG-W01F (don't know how to get the Fw version) Thanks !

How do you get the snapshot exactly?