motioneye-project / motioneye

A web frontend for the motion daemon.
GNU General Public License v3.0
3.85k stars 647 forks source link

ONVIF cam support #1214

Open denisjoshua opened 5 years ago

denisjoshua commented 5 years ago

Ho there all I try to connect an ONFIV cam via Home Assistant docker instalation of Motioneye Is there an ONFIV support yet please ?

I try also the RTSP url but I always take an error 404

Thanks all Denis

ualex73 commented 5 years ago

ONVIF normally makes it easier to use the camera, under the hood the RSTP URL/stream is used.

motionEye doesn't have ONVIF support, but when my python3 pull request has been included, I will make some code to detect ONVIF camera's (like ZoneMinder, Shinobi, BlueIris,etc have). I am also lazy to figure out the RTSP URL when i add my camera ;-)

denisjoshua commented 5 years ago

I have try a lot of url type ... for example a link like this one, that work on VLC is rtsp://user:pass@192.168.1.110:554/1/h264major But in motioneye is not work :-( I have a floureon cam Thanks again Denis

ualex73 commented 5 years ago

You can try to increase the motion logging, and check the /var/log/motion.log logfile? Maybe that gives some information why it isn't working. If VLC can open it, in theory motion should work too (motioneye is using motion for the rtsp stream).

denisjoshua commented 5 years ago

I don't know where is tha log... Under /var/log I have only nginx. This is a docker installation under Home Assistant (Hassio) :-(

Thanks for the help

ualex73 commented 5 years ago

Ok, if it is under Hassio it could be different, but when I check 'https://github.com/hassio-addons/addon-motioneye/blob/master/motioneye/rootfs/etc/motioneye/motioneye.conf' ... It seems to be also under /var/log?

denisjoshua commented 5 years ago

This is what I have on my motioneye docker: ^[[Aroot@a0d7b954-motioneye:/$ ls -la /var/log total 20 drwxr-xr-x 1 root root 4096 Feb 4 22:03 . drwxr-xr-x 1 root root 4096 Feb 4 22:03 .. drwxr-xr-x 1 root root 4096 Apr 4 09:35 nginx root@a0d7b954-motioneye:/$ Maybe I'll ask on home assistant forum Thanks for the help Denis

xing-zheng commented 3 years ago

I have try a lot of url type ... for example a link like this one, that work on VLC is rtsp://user:pass@192.168.1.110:554/1/h264major But in motioneye is not work :-( I have a floureon cam Thanks again Denis

Kindly try to use Onvif device manager which can be used for getting the rtsp url.

JJSlabbert commented 3 years ago

If you need ONVIF Pan Tilt support, check this out https://www.instructables.com/MOTIONEYE-NVR-PANTILT/

PeterLeunis commented 2 years ago

I connected a network camera (CCTronics) in Motioneye with: URL: rtsp://ipaddress:554/1 User: Password:

nolantomy commented 2 years ago

Thanks @PeterLeunis the /1 at the end was what I was missing to setup my iegeek cam.

iurycarlos commented 1 year ago

any of you had success to use motion detection from the onvif device???

GSVNoFixedabode commented 10 months ago

Tried this myself and motioneye can't find the device. The address rtsp://{ip address}:554/onvif1 works perfectly fine if I use VLC, but not within Motioneye. Note, leaving user & password empty.