Floureon SP012 camera

Forum for questions and support relating to the 1.29.x releases only.
Post Reply
johnaaronrose
Posts: 29
Joined: Tue Feb 27, 2018 9:27 am

Floureon SP012 camera

Post by johnaaronrose » Tue Mar 13, 2018 1:32 pm

I've installed ZM 1.29 (under Ubuntu 16.04 Desktop) as per the wiki at https://wiki.zoneminder.com/Ubuntu_Server_16.04_64-bit_with_Zoneminder_1.29.0_the_easy_way., as someone on this forum told me that's the best instructions for the install. ZM comes up with http://localhost:81/zm/index.php (in Chrome browser) as I set Apache up (by amending the appropriate apache php file) to listen on port 81. My router has Port Forwarding on port 81 to this PC. I'm able to configure ZM (screenshot attached of Source for the camera) but images do not stream to ZM in the window that it opens when I click on the static ip address (assigned by my router according to camera's MAC address). I've tried both wired & wireless connections of the camera to my router). I'm able to stream images to my Android tablet (using the onvifer app) and to my PC with vlc using the Network Stream rtsp://192.168.101.50:554/onvif1 (interestingly I don't need the username & password for the camera). However, even though ispy's camera database shows my Floureon SP012 as an acceptable camera http://www.ispyconnect.com/man.aspx?n=floureon using ffmpeg, I can't see any pics when trying to stream in ZM. ZM 1.29 doesn't give an ffmpeg (in the Source tab) when creating/editing a camera's configuration as per ZM's documentation. I've tried RTSP as the Remote Protocol as well as HTTP. how do I get ZM 1.29 to wrk with my camera?
Attachments
ZMCameraSourceScreenshot.png
ZMCameraSourceScreenshot.png (35.06 KiB) Viewed 1671 times
John

bbunge
Posts: 2112
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Floureon SP012 camera

Post by bbunge » Tue Mar 13, 2018 4:26 pm

Two common errors:
PATH_ZMS is not set to /zm/cgi-bin/nph-zms
Camera resolution in Zoneminder does not match camera output. Use VLC (Tools, Media Information, Codec) to check camera Display Resolution.

johnaaronrose
Posts: 29
Joined: Tue Feb 27, 2018 9:27 am

Re: Floureon SP012 camera

Post by johnaaronrose » Tue Mar 13, 2018 5:47 pm

Thanks for the info on common errors.
Camera resolution in ZoneMinder does match camera output using VLC (Tools, Media Information, Codec) to check camera Display Resolution.
Currently, using ZoneMinder Options->Paths, PATH_ZMS is set to /zm/cgi-bin/nph-zms. I see nothing in https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way or the ZoneMinder Installation webpages about PATH_ZMS or setting any ZoneMinder options.
What Remote Protocol & Remote method should I use given that vlc streams images using the Network Stream rtsp://192.168.101.50:554/onvif1?
Any other ideas?
John

johnaaronrose
Posts: 29
Joined: Tue Feb 27, 2018 9:27 am

Re: Floureon SP012 camera

Post by johnaaronrose » Fri Mar 16, 2018 8:34 am

Do you think that upgrading to ZM 1.30 from 1.29 might fix the problem?
John

johnaaronrose
Posts: 29
Joined: Tue Feb 27, 2018 9:27 am

Re: Floureon SP012 camera

Post by johnaaronrose » Fri Mar 16, 2018 10:21 am

Upgrading ZM 1.29 to 1.30 still failed when trying to stream images. I have a feeling that it's not an ONVIF camera, as Onvifer Android app on my Android phone or table doesn't discover it as an ONVIF device even though iSpy's camera database says that it is an ONVIF device. I've similarly tried Lingodigits' ONVIF Device Too which also fails to find it. I can connect to it and stream images Ok using Onvifer Android app on my Android phone or tablet with rtsp URL though not as an ONVIF device (it doesn't discover it. The Onvifer parameters are:
rtsp://192.168.101.50/onvif1, with username & password completed, and with Transport Protocol of TCP.
I've tried the same parameters with ZM 1.30 and that fails.
John

johnaaronrose
Posts: 29
Joined: Tue Feb 27, 2018 9:27 am

Re: Floureon SP012 camera

Post by johnaaronrose » Fri Mar 23, 2018 4:38 pm

ZM System Log attached. I changed camera's router assigned ip address to 192.168.101.51: so Source Type is ffmpeg, Source Path is rtsp://192.168.101.51:554/onvif1, Remote Method os tcp, Capture Width is 1280, Capture Height is 720 (these latter 2 parameters match those of vlc's Display Resolution of 1280x720: I've also tried vlc's Resolution of 1280x738 with no success). It looks like ZM's ffmpeg interface has a problem with the images. However, ffplay (the image play app part of ffmpeg) streams rtsp://192.168.101.51:554/onvif1 without a problem: ffplay is run from Terminal, which is the Linux equivalent of the MSDOS prompt in Windows. vlc (running under Ubuntu) streams the Network Stream rtsp://192.168.101.51:554/onvif1 Ok, without needing a User or Password and without specifying a Transport Protocol. Similarly, onvifer Android app streams fine. with the above rtsp and supplying it with a User, Password & Transport Protocol of tcp.
Attachments
zmSystemLog.png
zmSystemLog.png (230.81 KiB) Viewed 1572 times
John

johnaaronrose
Posts: 29
Joined: Tue Feb 27, 2018 9:27 am

Re: Floureon SP012 camera

Post by johnaaronrose » Sun Mar 25, 2018 4:03 pm

ZM System Log attached. I changed camera's router assigned ip address to 192.168.101.51: so Source Type is ffmpeg, Source Path is rtsp://192.168.101.51:554/onvif1, Remote Method is tcp, Target Colourspace is 32 bit Colour, Capture Width is 1280, Capture Height is 720 (these latter 2 parameters match those of vlc's Display Resolution of 1280x720: I've also tried vlc's Resolution of 1280x738 with no success). It looks like ZM's ffmpeg interface has a problem with the images. However, ffplay (the image play app part of ffmpeg) streams rtsp://192.168.101.51:554/onvif1 without a problem: ffplay is run from Terminal, which is the Linux equivalent of the MSDOS prompt in Windows. vlc (running under Ubuntu) streams the Network Stream rtsp://192.168.101.51:554/onvif1 Ok, without needing a User or Password and without specifying a Transport Protocol. Similarly, onvifer Android app streams fine. with the above rtsp and supplying it with a User, Password & Transport Protocol of tcp.
Attachments
zmSystemLog.png
zmSystemLog.png (230.81 KiB) Viewed 1559 times
John

johnaaronrose
Posts: 29
Joined: Tue Feb 27, 2018 9:27 am

Re: Floureon SP012 camera

Post by johnaaronrose » Sun Mar 25, 2018 5:01 pm

I just had a look at Linux's syslog. It had:
Mar 25 07:35:30 John zmc_m1[1915]: INF [FloureonSP012: 75868000 - Capturing at 500.00 fps]
Mar 25 07:35:30 John zmc_m1[1915]: ERR [Unable to open input rtsp://192.168.101.51:554/onvif1 due to: Operation now in progress]
Is this the cause of my not seeing streamed images?
John

johnaaronrose
Posts: 29
Joined: Tue Feb 27, 2018 9:27 am

Re: Floureon SP012 camera

Post by johnaaronrose » Mon Mar 26, 2018 7:40 am

I got ZM 1.29 working Ok on another computer. So I uninstalled ZM 1.30 on this computer by purging the Ubuntu ppa for it. I then followed the instructions for installing ZM 1.29 on Ubuntu 1.29 Server at
https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
However, when I try to open Zoneminder, I get "Cannot write to content dirs('events','images'). Check that these exist and are owned by the web account user". Where are the directories for 'events' & 'images'? Also, who should own them?
John

johnaaronrose
Posts: 29
Joined: Tue Feb 27, 2018 9:27 am

Re: Floureon SP012 camera

Post by johnaaronrose » Mon Mar 26, 2018 8:36 am

Just figured out the solution. /var/cache/events & /var/cache/temp (& their sub-directories & included files) were owned by root rather than www-data. So I changed their ownership & group using standard Unix CLI commands and everything Ok i.e. was able to add camera & view streamed images.
John

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest