rtsp camera in domoticz
Moderator: leecollings
-
- Posts: 14
- Joined: Friday 31 October 2014 9:05
- Target OS: Linux
- Domoticz version:
- Contact:
rtsp camera in domoticz
Can someone tell me how I can integrate my ip cam?
It is using the rtsp protocol like: http://ip-address/11
That's 11 for mainstream, 12 for middle stream and 13 for small stream.
If I enter the data in domoticz it is not working, I think domoticz is going wrong at the videourl, which must be 11 for my camera.
Port for rtsp is 554 on the camera.
Does domoticz have rtsp support or only http?
It is using the rtsp protocol like: http://ip-address/11
That's 11 for mainstream, 12 for middle stream and 13 for small stream.
If I enter the data in domoticz it is not working, I think domoticz is going wrong at the videourl, which must be 11 for my camera.
Port for rtsp is 554 on the camera.
Does domoticz have rtsp support or only http?
-
- Posts: 116
- Joined: Saturday 13 July 2013 13:28
- Target OS: Linux
- Domoticz version: Latest
- Location: Hilversum, The Netherlands
- Contact:
Re: rtsp camera in domoticz
What is the make and typenr of the cam?
Rasp Pi 2B: 3x DS18S20 (1-wire), BME280 (i2c)
Cubietruck 1: Aeotec Z-Wave+, RFXtrx433XL+P1, RFXtrx868, TE923 display, SolarEdge API
Cubietruck 2: Aeotec Z-Wave, Voltcraft CO-20
Cubietruck 1: Aeotec Z-Wave+, RFXtrx433XL+P1, RFXtrx868, TE923 display, SolarEdge API
Cubietruck 2: Aeotec Z-Wave, Voltcraft CO-20
-
- Posts: 14
- Joined: Friday 31 October 2014 9:05
- Target OS: Linux
- Domoticz version:
- Contact:
Re: rtsp camera in domoticz
EDIT: cam is HI3516C
See image, onvif compatible, 1080P, 3 streams.
Viewable through the danale app on android.....
In a browser I can view the cam, and also vlc is displaying perfectly. Even in synology surveillance station he is working good.
But not in Domoticz.
Hope anyone can help.
See image, onvif compatible, 1080P, 3 streams.
Viewable through the danale app on android.....
In a browser I can view the cam, and also vlc is displaying perfectly. Even in synology surveillance station he is working good.
But not in Domoticz.
Hope anyone can help.
- Attachments
-
- cam.JPG (12.39 KiB) Viewed 35979 times
- gizmocuz
- Posts: 2350
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: rtsp camera in domoticz
I'm afraid this is not possible.
You need a camera with a (jpeg) snapshot url
You need a camera with a (jpeg) snapshot url
Quality outlives Quantity!
- nayr
- Posts: 354
- Joined: Tuesday 11 November 2014 18:42
- Target OS: Linux
- Domoticz version: github
- Location: Denver, CO - USA
- Contact:
Re: rtsp camera in domoticz
RSTP Streams from a security camera wont play in a browser without a plugin, the video has to be transcoded to be streamed with flowplayer or native html5..
Would take some serious horsepower to transcode multiple HD RSTP streams into a compatible web-format, much more power than a domoticz server typically has.
Your camera proabibly has a jpeg snapshot URI, you just need to figure it out.. JPEG might not be the most elegant but it requires no processing by Domoticz and is widely compatible with all devices.
Would take some serious horsepower to transcode multiple HD RSTP streams into a compatible web-format, much more power than a domoticz server typically has.
Your camera proabibly has a jpeg snapshot URI, you just need to figure it out.. JPEG might not be the most elegant but it requires no processing by Domoticz and is widely compatible with all devices.
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
-
- Posts: 251
- Joined: Friday 12 July 2013 13:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: rtsp camera in domoticz
This is not the model and make of your camera but the chipset used (in many Chinese cam's)12345caravan wrote:cam is HI3516C.
Could you give us some more information, what name is on the box, where did you buy it, what's the partnumber etc.
Good news: the chipset supports JPEG, just need to find out how
-
- Posts: 14
- Joined: Friday 31 October 2014 9:05
- Target OS: Linux
- Domoticz version:
- Contact:
Re: rtsp camera in domoticz
Label on the box says : Hongjingtian,
according to the Ispy website there's no jpeg snapshot........
http://www.ispyconnect.com/man.aspx?n=HongJingTian
Just rtsp://ip-address:554/11
Chipset can support it but firmware not I think.
according to the Ispy website there's no jpeg snapshot........
http://www.ispyconnect.com/man.aspx?n=HongJingTian
Just rtsp://ip-address:554/11
Chipset can support it but firmware not I think.
- nayr
- Posts: 354
- Joined: Tuesday 11 November 2014 18:42
- Target OS: Linux
- Domoticz version: github
- Location: Denver, CO - USA
- Contact:
Re: rtsp camera in domoticz
Is your NAS acting as a NVR? if so perhaps you can fetch jpeg snapshots from it, might work but may add some latency.
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
-
- Posts: 140
- Joined: Wednesday 17 December 2014 17:30
- Target OS: Linux
- Domoticz version: V3.8650
- Location: Jyväskylä, Finland
- Contact:
Re: rtsp camera in domoticz
I'm using 720p rtsp camera with avconv in lua.
os.execute('/usr/bin/avconv -i rtsp://user:[email protected]:554/ch0_0.h264 -frames:v 1 -an -y /home/user/domoticz/www/snapshot.jpg')
There is ~2-5 sec delay in executing this with radxa rock so it takes bit juice. I'm just using this to send image to phone when something is triggered.
os.execute('/usr/bin/avconv -i rtsp://user:[email protected]:554/ch0_0.h264 -frames:v 1 -an -y /home/user/domoticz/www/snapshot.jpg')
There is ~2-5 sec delay in executing this with radxa rock so it takes bit juice. I'm just using this to send image to phone when something is triggered.
LXC(x64 Ubuntu Xenial), RFXtrx433E, MySensors
-
- Posts: 10
- Joined: Monday 09 November 2015 19:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: rtsp camera in domoticz
Hi pj-r,
I have a Sricam cam sp008 with only rtsp protocol and i would like use it on raspberry with domoticz.
Can you give me more detail about your script lua, name, complete command line?
Can you also detailed the config in domoticz, gate, user, password, url image,...
Thanks in advance.
I have a Sricam cam sp008 with only rtsp protocol and i would like use it on raspberry with domoticz.
Can you give me more detail about your script lua, name, complete command line?
Can you also detailed the config in domoticz, gate, user, password, url image,...
Thanks in advance.
-
- Posts: 140
- Joined: Wednesday 17 December 2014 17:30
- Target OS: Linux
- Domoticz version: V3.8650
- Location: Jyväskylä, Finland
- Contact:
Re: rtsp camera in domoticz
I'm not using camera IN domoticz. Domoticz dont support rtsp camera so you cannot use rtsp with camera options found in setup.
I'm using it to send snapshot image when something happens. That avconv line captures a snapshot from rtsp stream and saves it to file. On second line(not shown on post) I use telegram to send the captured image to my phone.
With patching the code it would be possible to show a image captured by script but capturing from rtsp is quite cpu intensive and slow operation so you wouldnt get anywhere realtime "video".
Only problem is the domoticz webserver part. After first image(http://your.domoticz/snapshot.jpg) is shown the UI/browser adds &count=X(http://your.domoticz/snapshot.jpg&count=X) parameter to uri and the domoticz web server cannot provide the file since it wont strip the uri parameters when comparing if the file exists. It would be a small change to code and I will try it when have some spare time. Still we need something to trigger the image capturing.
I'm using it to send snapshot image when something happens. That avconv line captures a snapshot from rtsp stream and saves it to file. On second line(not shown on post) I use telegram to send the captured image to my phone.
With patching the code it would be possible to show a image captured by script but capturing from rtsp is quite cpu intensive and slow operation so you wouldnt get anywhere realtime "video".
Only problem is the domoticz webserver part. After first image(http://your.domoticz/snapshot.jpg) is shown the UI/browser adds &count=X(http://your.domoticz/snapshot.jpg&count=X) parameter to uri and the domoticz web server cannot provide the file since it wont strip the uri parameters when comparing if the file exists. It would be a small change to code and I will try it when have some spare time. Still we need something to trigger the image capturing.
LXC(x64 Ubuntu Xenial), RFXtrx433E, MySensors
-
- Posts: 10
- Joined: Monday 09 November 2015 19:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: rtsp camera in domoticz
Thank you for your quick and clear answer.
Best whishes 2016
Best whishes 2016
- Minglarn
- Posts: 214
- Joined: Friday 21 August 2015 19:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v3.8153
- Location: Stockholm / Sweden
- Contact:
Re: rtsp camera in domoticz
borrowing the thread ...
Is it possible to get the camera stream from Domotics?
Did found this for getting the snapshot from Domotics: http://192.168.1.236:8080/camsnapshot.jpg?idx=1
but it would be nice to get the stream from that particular camera...
Is it possible to get the camera stream from Domotics?
Did found this for getting the snapshot from Domotics: http://192.168.1.236:8080/camsnapshot.jpg?idx=1
but it would be nice to get the stream from that particular camera...
“When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
- nayr
- Posts: 354
- Joined: Tuesday 11 November 2014 18:42
- Target OS: Linux
- Domoticz version: github
- Location: Denver, CO - USA
- Contact:
Re: rtsp camera in domoticz
no the format IP cameras stream in cannot be embedded into browsers without requiring a 3rd party browser plugin.. typically that plugin is specific to the camera make or model since the industry loves to use proprietary video formats.. for example VLC will stream RSTP from my Dahua cameras but it will not play files saved by those same cameras. When I connect directly to those cameras with a browser the streams requires a OS specific browser plugin from Dahua to display..
Unfortunately RSTP is not a browser friendly format, so you would have to run a transcoding daemon on hardware powerful enough to convert it to a standard compliant web format in real time, such as VLC, Flash Media Encoder, etc.. and thats well beyond the scope of Domoticz.. there are tools for that, if you want em.. use em. Its your Network Video Recorders job to stream video to network devices.. Domoticz is not a NVR.
Domoticz only cares about snapshots so it can associate images with events, ie capturing an image every time a sensor goes off.. If you want to capture video when a sensor goes off, setup a NVR that has physical or IP triggered alarm inputs and tie Domoticz events to fire them off.
Perhaps a feature request can be put in so Cameras have an additional field for inputing a web url to display a "Live Feed" link. This link would take you to an external portal that is streaming the camera, such as the cameras or a NVR's native web interface.. However actually viewing the stream natively within domo is not feasible given the limitations above.
Unfortunately RSTP is not a browser friendly format, so you would have to run a transcoding daemon on hardware powerful enough to convert it to a standard compliant web format in real time, such as VLC, Flash Media Encoder, etc.. and thats well beyond the scope of Domoticz.. there are tools for that, if you want em.. use em. Its your Network Video Recorders job to stream video to network devices.. Domoticz is not a NVR.
Domoticz only cares about snapshots so it can associate images with events, ie capturing an image every time a sensor goes off.. If you want to capture video when a sensor goes off, setup a NVR that has physical or IP triggered alarm inputs and tie Domoticz events to fire them off.
Perhaps a feature request can be put in so Cameras have an additional field for inputing a web url to display a "Live Feed" link. This link would take you to an external portal that is streaming the camera, such as the cameras or a NVR's native web interface.. However actually viewing the stream natively within domo is not feasible given the limitations above.
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
- Minglarn
- Posts: 214
- Joined: Friday 21 August 2015 19:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v3.8153
- Location: Stockholm / Sweden
- Contact:
Re: rtsp camera in domoticz
Thanks for The info.
However, when you click on the live icon in Domiticz you see the stream, that's the one I want to use. It looks like Domiticz makes an mjpeg stream.
But i have solved it with php.
Sent from space using an app.
However, when you click on the live icon in Domiticz you see the stream, that's the one I want to use. It looks like Domiticz makes an mjpeg stream.
But i have solved it with php.
Sent from space using an app.
“When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
-
- Posts: 1
- Joined: Tuesday 25 February 2014 12:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: rtsp camera in domoticz
How did you solve it with php ?
Could you post your script ??
Could you post your script ??
- Minglarn
- Posts: 214
- Joined: Friday 21 August 2015 19:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v3.8153
- Location: Stockholm / Sweden
- Contact:
Re: rtsp camera in domoticz
It was solved by using snapshots rapidly with php (kinda the same way Domoticz do it).
So in other words your cam must have snapshot function.
My ANRAN ipcam is not supporting JPG snapshots. But there is an undocumented way..
Try:
So in other words your cam must have snapshot function.
My ANRAN ipcam is not supporting JPG snapshots. But there is an undocumented way..
Try:
Code: Select all
http://IP_TO_CAM/webcapture.jpg?command=snap&channel=1
“When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
-
- Posts: 135
- Joined: Monday 27 January 2014 14:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: rtsp camera in domoticz
Unfortunately this doesn't apply to all RTSP cameras. This is what I found in the folders of my camera (model K-6320E) but I couldn't grab a picture. I hope someone can help?Minglarn wrote:It was solved by using snapshots rapidly with php (kinda the same way Domoticz do it).
So in other words your cam must have snapshot function.
My ANRAN ipcam is not supporting JPG snapshots. But there is an undocumented way..
Try:Code: Select all
http://IP_TO_CAM/webcapture.jpg?command=snap&channel=1
Code: Select all
Index of /cgi-bin/
mode links bytes last-changed name
dr-x 3 118 Jul 24 2015 ./
dr-x 9 191 Jul 24 2015 ../
-r-x 1 253 Jul 24 2015 jvsweb.cgi*
-r-x 1 8982 Jul 24 2015 proccgi*
drwx 3 180 Jan 1 2000 snapshot/
-r-x 1 87 Jul 24 2015 snapshot.sh*
-r-x 1 12687 Jul 24 2015 transfer_8127*
-r-x 1 10849 Jul 24 2015 wagent*
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e
Raspberry Pi Type B2
RFXCOMtrx433e
-
- Posts: 140
- Joined: Wednesday 17 December 2014 17:30
- Target OS: Linux
- Domoticz version: V3.8650
- Location: Jyväskylä, Finland
- Contact:
Re: rtsp camera in domoticz
Its hilink hw. try these:
You get bad quality snapshots with this.
Code: Select all
http://ip.of.camera/cgi-bin/snapshot.sh?1
http://ip.of.camera/cgi-bin/snapshot/temp.jpg
.... or combined
wget http://device/cgi-bin/snapshot.sh?1 && http://device/cgi-bin/snapshot/temp.jpg"
LXC(x64 Ubuntu Xenial), RFXtrx433E, MySensors
-
- Posts: 168
- Joined: Monday 22 June 2015 10:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: rtsp camera in domoticz
This command also works for an Escam QF001Minglarn wrote:It was solved by using snapshots rapidly with php (kinda the same way Domoticz do it).
So in other words your cam must have snapshot function.
My ANRAN ipcam is not supporting JPG snapshots. But there is an undocumented way..
Try:Code: Select all
http://IP_TO_CAM/webcapture.jpg?command=snap&channel=1
Who is online
Users browsing this forum: No registered users and 1 guest