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

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
wallacebw
Posts: 9
Joined: Mon Mar 29, 2021 9:30 pm

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

Post 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
Last edited by wallacebw on Thu Apr 01, 2021 12:41 pm, edited 6 times in total.
wallacebw
Posts: 9
Joined: Mon Mar 29, 2021 9:30 pm

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

Post by wallacebw »

updated initial post with all details.
Last edited by wallacebw on Tue Mar 30, 2021 5:10 pm, edited 1 time in total.
User avatar
Bluemax
Posts: 121
Joined: Wed Jun 12, 2019 5:15 pm

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

Post by Bluemax »

Thanks for sharing your experiences. It would be helpful to know what system/os you are running.
User avatar
iconnor
Posts: 2904
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

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

Post 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
wallacebw
Posts: 9
Joined: Mon Mar 29, 2021 9:30 pm

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

Post 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
Post Reply