newbie asks for help setting up zm

Forum for questions and support relating to the 1.30.x releases only.
Locked
carverknut
Posts: 20
Joined: Sun Jan 15, 2017 9:16 am

newbie asks for help setting up zm

Post by carverknut »

Hello,
I am new to ZM and am trying to set up ZM on my system. Having fiddled with the setup for quite some time and having spent hours of reading forum postings, having watched youtube installation videos and wiki entries, I am still not succeeding to set it up right. So, any help is most welcome.

My system is a openSUSE Leap 42.1 (x86_64). I have managed to install ZM through the rpms available.

Then, I followed these procedures:
https://wiki.zoneminder.com/Installing_ ... s_for_SuSE

What information do you need to check if I did it right?

The 2 cameras I have connected with my local network are these:
https://wiki.zoneminder.com/Revotech_I6032W_P

Now, if I start up ZM, I can access ZM in my browser window, set up cameras, but never succeeded yet (!) in a video stream.

Here is what my log file reads:

2017-01-21 15:13:33.993250 zmdc 2892 ERR 'zmc -m 6' exited abnormally, exit status 255 zmdc.pl
2017-01-21 15:13:33.931833 zmc_m6 7653 FAT You must have ffmpeg libraries installed to use ffmpeg cameras for monitor 6 zm_monitor.cpp 2893
2017-01-21 15:13:33.893520 zmdc 7653 INF 'zmc -m 6' started at 17/01/21 16:13:33 zmdc.pl
2017-01-21 15:13:33.893520 zmdc 2892 INF 'zmc -m 6' starting at 17/01/21 16:13:33, pid = 7653 zmdc.pl
2017-01-21 15:13:33.794190 zmdc 2892 ERR 'zmc -m 4' exited abnormally, exit status 255 zmdc.pl
2017-01-21 15:13:33.760320 zmwatch 2973 INF Restarting capture daemon for Cam2, shared data not valid zmwatch.pl
2017-01-21 15:13:33.731408 zmc_m4 7645 FAT You must have ffmpeg libraries installed to use ffmpeg cameras for monitor 4 zm_monitor.cpp 2893
2017-01-21 15:13:33.727180 zmwatch 2973 ERR Memory map file '/dev/shm/zm.mmap.6' does not exist. zmc might not be running. zmwatch.pl
2017-01-21 15:13:33.653810 zmdc 2892 INF 'zmc -m 4' starting at 17/01/21 16:13:33, pid = 7645 zmdc.pl
2017-01-21 15:13:33.653810 zmdc 7645 INF 'zmc -m 4' started at 17/01/21 16:13:33 zmdc.pl
2017-01-21 15:13:33.556490 zmwatch 2973 INF Restarting capture daemon for Cam1, shared data not valid zmwatch.pl


I have checked: ffmpeg is installed.

I have to admit that the cameras are working on a windows machine, which I use to set up the camera settings as given in the wiki above.

Any help would be great.
Many thanks,
Knut
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: newbie asks for help setting up zm

Post by SteveGilvarry »

FFmpeg libraries can be separate packages, so libavformat, libavcodec etc. Surprised that it didn't automatically get them, not sure who looks after that repo, or if something just went wrong for you. Bbunge maintains very good install process in wiki for ubuntu and zmrepo for centos/fedora is maintained by one of the devs. So if you are not wedded to a distro, you could try one of them.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
carverknut
Posts: 20
Joined: Sun Jan 15, 2017 9:16 am

Re: newbie asks for help setting up zm

Post by carverknut »

Thanks for your reply, but I would like to stay with my distro. Regards, Knut
carverknut
Posts: 20
Joined: Sun Jan 15, 2017 9:16 am

Re: newbie asks for help setting up zm

Post by carverknut »

VLC will access the camera through
rtsp://login:password@192.168.1.10/11
rockedge
Posts: 1198
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: newbie asks for help setting up zm

Post by rockedge »

maybe grab a copy of a static version of FFMPEG for Linux, install it and see if it works. Does your version use avconv instead of FFMPEG?
if so try a symlink to avconv called ffmpeg
carverknut
Posts: 20
Joined: Sun Jan 15, 2017 9:16 am

Re: newbie asks for help setting up zm

Post by carverknut »

After a few more unsuccessful tries with openSuse, I have finally decided to have Fedora installed to start over from scratch. I'll keep you posted on my progress.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: newbie asks for help setting up zm

Post by knight-of-ni »

Code: Select all

2017-01-21 15:13:33.731408 zmc_m4 7645 FAT You must have ffmpeg libraries installed to use ffmpeg cameras for monitor 4 zm_monitor.cpp 2893
This means the zoneminder rpm you are using was built w/o ffmpeg support. The only way you can fix this is to the download the srpm and rebuild the package w/ ffmpeg libraries installed during the build using rpm tools such as rpmbuild or mock. Installing ffmpeg after the fact doesn't work because zoneminder makes ffmpeg API calls (it doesn't use the ffmpeg binary for streaming) and must link against the libraries during build time.

openSuse rpms are managed by Monex. His contact email is in the rpm changelog. We don't know if he built this intentionally w/o ffmpeg support or if this was by accident. He does pop in the user forum and answer questions from time to time.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
carverknut
Posts: 20
Joined: Sun Jan 15, 2017 9:16 am

Re: newbie asks for help setting up zm

Post by carverknut »

Fedora is now working with ZM; nevertheless I would be interested in getting ZM up and running (ffmpeg) with SuSE Leap 42
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: newbie asks for help setting up zm

Post by knight-of-ni »

I'm not sure if your statement is an offer to help or a request for help with OpenSuse Leap 42.
Recall that Monex is the maintainer of the OpenSuse packages. You will need to coordinate directly with him.
I don't know of anyone else familiar with running zoneminder on opensuse.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
carverknut
Posts: 20
Joined: Sun Jan 15, 2017 9:16 am

Re: newbie asks for help setting up zm

Post by carverknut »

Thanks for your message. Yes, further help is needed (unfortunately). I shall contact Monex directly.
Best,
Knut
Locked