I am trying to compile both 1.29 and 1.30 from source so I can investigate an error I get with zmc incomplete frame writes and a patch available at
https://wiki.zoneminder.com/1.24.2_Patches
I am struggling with what files and where to include them so ffmpeg support will be included in the compile. I have the libav*** files from ffmpeg but not sure if they are version dependent or where to put them for the build. cmake is giving me
-- Optional libraries not found: GCrypt GnuTLS AVFormat AVCodec AVDevice AVUtil SWScale libVLC
I have been using instructions at
https://github.com/pliablepixels/zmNinj ... rom-source
as a starting point and have the builds working except for ffmpeg rtsp support.
I hope this question is clear and is not to stupid to warrant an answer.
Compiling from source ffmpeg libraries
-
- Posts: 494
- Joined: Sun Jun 29, 2014 1:12 pm
- Location: Melbourne, AU
Re: Compiling from source ffmpeg libraries
Very unlikely you have picked the correct rabbit hole. Unless you have enabled frame server zmf won't be in use.
I haven't actually seen any details of your error, have you posted them somewhere? What monitor settings are you using?
I haven't actually seen any details of your error, have you posted them somewhere? What monitor settings are you using?
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Random Selection of Cameras (Dahua and Hikvision)
-
- Posts: 21
- Joined: Mon Jul 25, 2016 4:31 pm
Re: Compiling from source ffmpeg libraries
At least I have figured out how to install the libraries. It is a new day and I have a fresh brain.
I have the same symptoms as viewtopic.php?t=18723 and there for wanted to explore the patch (above) I don't know if I am chasing a wild goose but enjoy fooling around with this stuff. I have installed from package 1.28, 1.29 and 1.30 with the same error. Is there a reason NOT to use frame server? I have generic rtsp cameras (cheap Chinese) 1280x720 10fps(doesn't get above 9fps) x264, ffmpeg (though same with vlc and remote) with fps on monitors set to 11, 11 and 11. Set to motiondetect. Ubuntu 16.04 dual xenon quad 2.66Ghz, 4GB ram.
I have the same symptoms as viewtopic.php?t=18723 and there for wanted to explore the patch (above) I don't know if I am chasing a wild goose but enjoy fooling around with this stuff. I have installed from package 1.28, 1.29 and 1.30 with the same error. Is there a reason NOT to use frame server? I have generic rtsp cameras (cheap Chinese) 1280x720 10fps(doesn't get above 9fps) x264, ffmpeg (though same with vlc and remote) with fps on monitors set to 11, 11 and 11. Set to motiondetect. Ubuntu 16.04 dual xenon quad 2.66Ghz, 4GB ram.
-
- Posts: 494
- Joined: Sun Jun 29, 2014 1:12 pm
- Location: Melbourne, AU
Re: Compiling from source ffmpeg libraries
Probably sums up zmf best, as no known benefits.
viewtopic.php?f=32&t=23529&p=89808&hilit=zmf#p89808
If it is causing the issue you will be able to quickly solve it by disabling it, and we can solve the problem by dumping it. But the thread you linked indicated the error coming from zma, so a patch in zmf won't solve.
https://github.com/ZoneMinder/ZoneMinde ... t.cpp#L296 error is coming from this function from the looks of it. Have fun playing.
viewtopic.php?f=32&t=23529&p=89808&hilit=zmf#p89808
If it is causing the issue you will be able to quickly solve it by disabling it, and we can solve the problem by dumping it. But the thread you linked indicated the error coming from zma, so a patch in zmf won't solve.
https://github.com/ZoneMinder/ZoneMinde ... t.cpp#L296 error is coming from this function from the looks of it. Have fun playing.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Random Selection of Cameras (Dahua and Hikvision)
-
- Posts: 494
- Joined: Sun Jun 29, 2014 1:12 pm
- Location: Melbourne, AU
Re: Compiling from source ffmpeg libraries
Also worth noting that patch is for incomplete frame read not write.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Random Selection of Cameras (Dahua and Hikvision)
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Compiling from source ffmpeg libraries
That patch was already merged into the source code, by me, back in August of 2013:
https://github.com/ZoneMinder/ZoneMinder/pull/79
However, as Steve implied, with modern hardware the frameserver causes more problems that it intends to fix.
Recommend everyone leave it off.
https://github.com/ZoneMinder/ZoneMinder/pull/79
However, as Steve implied, with modern hardware the frameserver causes more problems that it intends to fix.
Recommend everyone leave it off.
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/
All of these can be found at https://zoneminder.blogspot.com/
-
- Posts: 21
- Joined: Mon Jul 25, 2016 4:31 pm
Re: Compiling from source ffmpeg libraries
Thanks, I will just stick with the package 1.29 version until 1.30 works.