Cheap Chinese IP Camera find Snapshot with ONVIFER

Moderator: leecollings

Post Reply
User avatar
JHO01
Posts: 24
Joined: Wednesday 02 November 2016 13:59
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands
Contact:

Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by JHO01 »

I recently bought some cheap chinese ip camera's with ONVIF RTSP support, not expecting the snapshot capability, but....... to my surprise I accidentally did find the precious snapshot link with the help of ONVIFER

https://nl.aliexpress.com/item/H-265-H- ... 4c4dSmCSlm

https://nl.aliexpress.com/item/H-265-H- ... 4c4dSmCSlm

https://nl.aliexpress.com/item/ONVIF-P2 ... autifyAB=0

Install https://play.google.com/store/apps/deta ... ifer&hl=en (free) on an Android device and setup the camera.

Once the camera is detected, press test and the link to the snapshot stream is visible :
file.jpg
file.jpg (51.22 KiB) Viewed 21009 times
http://192.168.2.211/webcapture.jpg?com ... &channel=1

In Domoticz, Add Camera and fill in what is discovered in ONVIFER

IP address: 192.168.2.211
Port: 80
imageURL: webcapture.jpg?command=snap&channel=1

Please note:
The above mentioned camera's are almost constantly trying to communicate with the outside world:
23.91.102.185:8086
23.91.102.59:8086
203.12.203.24:8086

My pFsense firewall does not allow this :mrgreen:
RPI-3, Z-stick Gen5, RFlink, Zigbee2mqtt, 1-wire DS18B20, Fibaro switches, various RF-433 sockets, BMP018, Somfy, Wemos, Tradfri.
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by EdwinK »

I think something has changed in the app, I can't get this information for my camera.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by gielie »

JHO01 wrote: Monday 04 June 2018 18:08
The above mentioned camera's are almost constantly trying to communicate with the outside world:
All chinese cams are phoning home, if someones buying a chinese cam make sure to block all outside communications, big brothel is watching you.
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
User avatar
JHO01
Posts: 24
Joined: Wednesday 02 November 2016 13:59
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by JHO01 »

I am running ONVIFER 12.01

Procedure:

-install camera
-right click on camera feed
-select edit and scroll down to see the snapshot address (if available)

alternative
-install camera
-right click on camera feed
-select edit
-select test
-scroll down to see the snapshot address (if available)
RPI-3, Z-stick Gen5, RFlink, Zigbee2mqtt, 1-wire DS18B20, Fibaro switches, various RF-433 sockets, BMP018, Somfy, Wemos, Tradfri.
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by EdwinK »

O.. You use a web version. I had it on Android phone.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by markk »

JHO01 wrote: Monday 04 June 2018 18:08 I recently bought some cheap chinese ip camera's with ONVIF RTSP support, not expecting the snapshot capability, but....... to my surprise I accidentally did find the precious snapshot link with the help of ONVIFER

https://nl.aliexpress.com/item/H-265-H- ... 4c4dSmCSlm

https://nl.aliexpress.com/item/H-265-H- ... 4c4dSmCSlm

https://nl.aliexpress.com/item/ONVIF-P2 ... autifyAB=0

Install https://play.google.com/store/apps/deta ... ifer&hl=en (free) on an Android device and setup the camera.

Once the camera is detected, press test and the link to the snapshot stream is visible :

file.jpg

http://192.168.2.211/webcapture.jpg?com ... &channel=1

In Domoticz, Add Camera and fill in what is discovered in ONVIFER

IP address: 192.168.2.211
Port: 80
imageURL: webcapture.jpg?command=snap&channel=1

Please note:
The above mentioned camera's are almost constantly trying to communicate with the outside world:
23.91.102.185:8086
23.91.102.59:8086
203.12.203.24:8086

My pFsense firewall does not allow this :mrgreen:

Thanks for this. I used this method to find the snapshot info for this Camera I just got off Amazon: https://www.amazon.co.uk/gp/product/B07 ... UTF8&psc=1
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
lost
Posts: 617
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by lost »

gielie wrote: Thursday 14 June 2018 9:37 All chinese cams are phoning home, if someones buying a chinese cam make sure to block all outside communications, big brothel is watching you.
Problem is these cams can sometimes (or maybe "mostly", theses days!) only be configured through a dumb-phone app... Exit the good old web configuration page that did not need calling home because using your favorite navigator from your own LAN.

And even if I take care to only buy such http(s) configurable cameras, it's more & more difficult to get informations about this setup mode support.

On top of your router firewall that can prevent the cam from accessing the outside after configuration, I always setup a bad gateway (sometimes also needing a fixed IP setup) on the device itself.

As well, all theses chinese IP cams lack informations about motion detection (+ fine-configurable zones, otherwise the feature is quite useless, especially outside if you cannot prevent vegetation that'll spam you with false captures when windy for instance), FTP support for motion captures...

Only solution is to buy, check, and if requirements are NOK, re-sell...

Would be nice to make a topic about currently tested devices feature set IMO.
huismuis
Posts: 1
Joined: Sunday 02 December 2018 23:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by huismuis »

JHO01 wrote: Monday 04 June 2018 18:08 I recently bought some cheap chinese ip camera's with ONVIF RTSP support, not expecting the snapshot capability, but....... to my surprise I accidentally did find the precious snapshot link with the help of ONVIFER

https://nl.aliexpress.com/item/H-265-H- ... 4c4dSmCSlm

https://nl.aliexpress.com/item/H-265-H- ... 4c4dSmCSlm

https://nl.aliexpress.com/item/ONVIF-P2 ... autifyAB=0

Install https://play.google.com/store/apps/deta ... ifer&hl=en (free) on an Android device and setup the camera.

Once the camera is detected, press test and the link to the snapshot stream is visible :

file.jpg

http://192.168.2.211/webcapture.jpg?com ... &channel=1

In Domoticz, Add Camera and fill in what is discovered in ONVIFER

IP address: 192.168.2.211
Port: 80
imageURL: webcapture.jpg?command=snap&channel=1

Please note:
The above mentioned camera's are almost constantly trying to communicate with the outside world:
23.91.102.185:8086
23.91.102.59:8086
203.12.203.24:8086

My pFsense firewall does not allow this :mrgreen:
maybe stupid question but how did you find out what your IP cam is communicating (outside) with
I can't find anything in my KPN V10 router
lost
Posts: 617
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by lost »

huismuis wrote: Sunday 24 November 2019 22:47 maybe stupid question but how did you find out what your IP cam is communicating (outside) with
I can't find anything in my KPN V10 router
If you don't have anything to monitor network use in your router, maybe blocking any external access for the device may then log forbidden attempts.

Otherwise, as any network (except open wifi) is now switched (or made impossible to monitor from a 3rd party using ciphering for wifi/wpa), and many soho switches/router does not allow a port (to your PC with a wireshark/tcpdump session filtering on your cam LAN IP) to replicate data from another port (the one your cam is wired), this can become a bit more complex (flood the switch with many MAC to exceed it's internal routing tables size, thus making it usually default to a good old hub, setup a PC with 2 ethernet interfaces and allow one to share internet connection on the other with cam connected, then monitor this interface... but will need to unwire cam).

Problem with these dumb-phones only managed cams is you'll most probably have to re-enable it's cloud connection anytime you'll have to modify their configuration. This also means that when the manufacturer stops this external support (or the one for the phone app), you're stuck. This is not the case when configuration is possible from a device hosted web site only needing a LAN access.
bobje
Posts: 6
Joined: Friday 31 May 2024 18:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by bobje »

I saw someone posting these command for getting a picture from a cheap chinese camera (with Onvif).

http://ip/webcapture.jpg?command=snap&channel=0
http://ip/webcapture.jpg?command=snap&channel=1

This works but...... After several days it stops working. It states that the username/password have been incorrect to many times. After resetting the camera it works again for several days and the same happens.

How do i pass the username and password to this command? (I have set the name and password in the camera so i know them).
I have tried may options with name=...:password=... or <name:password>@ip-address... but nothing seems to work.

Anybody any ideas?
User avatar
habahabahaba
Posts: 192
Joined: Saturday 18 March 2023 14:44
Target OS: Windows
Domoticz version: 2024.4
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by habahabahaba »

From where are you trying to get images?
In Domoticz there are fields username and password and everything must be ok
bobje
Posts: 6
Joined: Friday 31 May 2024 18:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by bobje »

In my case just from a HTML-page.
<img class="thumbnail-image" id="barn-Cam" src="http://<ip-address>/webcapture.jpg?command=snap&amp;channel=1" alt=""></img>

The strange thing is that this works for several days, so even without a username or password. But after a week or so it stops. And if i do the command via a seperate web-browser i get the error that the UserName and Password are wrong. After a reset of the camera you can use the same command again for a couple of days.

I have tried the actual call with: "http://<ip-address>/webcapture.jpg?UserName=<username>;Password=<passwd>command=snap&amp;channel=1"
and other variations but that never works. So i am looking for the correct syntax.
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by jvdz »

did you also try this format?:

Code: Select all

http://<username>:<passwd>@<ip-address>/webcapture.jpg?command=snap&channel=1
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
bobje
Posts: 6
Joined: Friday 31 May 2024 18:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by bobje »

Yep, tried that. Same result unfortunately.
User avatar
habahabahaba
Posts: 192
Joined: Saturday 18 March 2023 14:44
Target OS: Windows
Domoticz version: 2024.4
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by habahabahaba »

In my case it works at any browser even in FF private mode without authorization.

But i installed the latest firmware. Did you?

Anyway its dificult to say whats wrong - its chineese camera :)

Did you use Onvife Device Manager? Is Onvif discovery mode Discoverable?
And I have a hidden user with name Default that i can see in ODM and not see in camera options
2024-06-08_20-58-23.png
2024-06-08_20-58-23.png (23.06 KiB) Viewed 2098 times
2024-06-08_20-57-32.png
2024-06-08_20-57-32.png (29.64 KiB) Viewed 2098 times
bobje
Posts: 6
Joined: Friday 31 May 2024 18:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by bobje »

I searched for the Onvif Device Manager but for MAC there is no installable. When i download the MAC version all i get is a directory with a bunch off DLL's (looks more like the Windows version)...
bobje
Posts: 6
Joined: Friday 31 May 2024 18:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by bobje »

I have a DVR connected now and i see no additional accounts as far as i can see. I am able to get a still image from the DVR via the same command but only for the first attached camera. If i change the channel to 2 or higher it still gives me only channel 1 (and without supplying a password!!).
bobje
Posts: 6
Joined: Friday 31 May 2024 18:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Cheap Chinese IP Camera find Snapshot with ONVIFER

Post by bobje »

Finally got it working: The command should be:

Code: Select all

http://IP-ADDRESS/webcapture.jpg?command=snap&channel=1&user=USER&password=PASSWORD

Edit waltervl: made link readable
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest