Page 1 of 1

UPDATED: Newest x265 & x264 causing issue with ZM recording?

Posted: Mon Mar 29, 2021 9:46 pm
by wallacebw
Arch user here:

Setup:

Code: Select all

OS:         Arch Linux x86_64
Kernel:     5.11.10-arch1-1
ZoneMinder  v1.34.23.
Issue:
I updated my system and ZMC appears to break (maybe only ffmpeg-passthrough)?

Code: Select all

sudo zmc -m 2
zmc: error while loading shared libraries: libx264.so.160: cannot open shared object file: No such file or directory
Stop-Gap Solution:
After troubleshooting, I have narrowed it down to these packages (which change the library version of x264 / x265 or have downstream issues with PHP GD

Code: Select all

Name    |  Version                  |  Notes 
------------------------------------------------------------------------------------------------------
ffmpeg  |  2:4.3.2-5                |  has dependencies on newer x264 / x265
libheif |  1.11.0-2                 |  this version made php GD look for libx265.so.199 (aka 3.5.1)
x264    |  3:0.161.r3039.544c61f-1  |  Source of the problem?
x265    |  3.5-1                    |  Source of the problem?
dav1d   |  0.8.2-1                  |  Source of the problem?

I have rolled back to the following versions fixing the issues:

Code: Select all

Name	|  Version   
-------------------------
ffmpeg	|  2:4.3.2-2 
libheif	|  1.11.0-1
x264 	|  3:0.160.r3011.cde9a93-1
x265	|  3.4-1
dav1d   |  0.8.1-2
Question / Request:

Not being familiar with the ZM code, it appears that it is referencing a specific library version of x264 / x265. Is that in-fact the case? Is it a requirement and if so, what needs to be done to support newer libraries?

Thanks,
Brian

Re: ffmpeg 2:4.3.2-5 causing issue with ZM?

Posted: Mon Mar 29, 2021 10:13 pm
by wallacebw
updated initial post with all details.

Re: ffmpeg 2:4.3.2-5 causing issue with ZM?

Posted: Mon Mar 29, 2021 11:30 pm
by Bluemax
Thanks for sharing your experiences. It would be helpful to know what system/os you are running.

Re: UPDATED: Newest x265 & x264 causing issue with ZM recording?

Posted: Wed Mar 31, 2021 10:21 pm
by iconnor
ZM links against whatever library was present when built. So if you remove that ZM won't be able to find it. You can probably symlink it

Re: UPDATED: Newest x265 & x264 causing issue with ZM recording?

Posted: Thu Apr 01, 2021 12:34 pm
by wallacebw
Update:

Updated 1st post to add dav1d to the package list.

Tried a few more things:
  • Symlink didn't work. it looks like the function call references the version (sorry didn't capture the message)
  • Recompile failed (see link below to AUR for other examples)
    • fully updated the system (ffmpeg / x264 / x265 / libheif)
    • reboot (new kernel too)
    • recompile: yay -S zoneminder --answerclean yes --answerdiff none
      ERROR:
      76%] Built target zmonvifproxy
      make: *** [Makefile:156: all] Error 2
      ==> ERROR: A failure occurred in build().
      Aborting...
  • had to downgrade dav1d to 0.8.1-2 as well.
Looks like this has hit several people: https://aur.archlinux.org/packages/zoneminder

Yeah, I know a rolling release as a server... :roll: FYI: I'm using arch because I needed ZFSonLinux GIT to setup DRAID. I have a 24 disk draid2:5d:22c:1s + 2 SSD Special device mirror and don't even want to think about having to migrate that data to rebuild it when 2.1 is released.

Let me know if there is anything else you want me to test.

Brian