Page 1 of 1
Compiling from source ffmpeg libraries
Posted: Wed Jul 27, 2016 1:36 pm
by johndul0001
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.
Re: Compiling from source ffmpeg libraries
Posted: Wed Jul 27, 2016 1:45 pm
by SteveGilvarry
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?
Re: Compiling from source ffmpeg libraries
Posted: Wed Jul 27, 2016 2:36 pm
by johndul0001
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.
Re: Compiling from source ffmpeg libraries
Posted: Wed Jul 27, 2016 3:00 pm
by SteveGilvarry
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.
Re: Compiling from source ffmpeg libraries
Posted: Wed Jul 27, 2016 3:04 pm
by SteveGilvarry
Also worth noting that patch is for incomplete frame read not write.
Re: Compiling from source ffmpeg libraries
Posted: Wed Jul 27, 2016 3:33 pm
by knight-of-ni
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.
Re: Compiling from source ffmpeg libraries
Posted: Wed Jul 27, 2016 5:33 pm
by johndul0001
Thanks, I will just stick with the package 1.29 version until 1.30 works.