SOLVED FFMPEG -PHP Install error because of OBS ?

joshreynolds2

Member
Sep 19, 2021
16
2
3
Dayton
cPanel Access Level
Root Administrator
Hello again! so I am trying to install ffmpeg on my server and I have but now I am not able to enable to the php extension everytime I try I get this error:
Code:
Error:
Problem: problem with installed package obs-studio-libs-27.0.1-2.el8.x86_64
  - package obs-studio-libs-27.0.1-2.el8.x86_64 requires libx264.so.157()(64bit), but none of the providers can be installed
  - cannot install both x264-libs-1:0.163-25.20210613git5db6aa6.el8.x86_64 and x264-libs-0.157-12.20190717git34c06d1.el8.x86_64
  - cannot install both x264-libs-0.157-12.20190717git34c06d1.el8.x86_64 and x264-libs-1:0.163-25.20210613git5db6aa6.el8.x86_64
  - package ffmpeg-libs-1:4.4-1.el8.x86_64 requires libx264.so.163()(64bit), but none of the providers can be installed
  - package ffmpeg-devel-1:4.4-1.el8.x86_64 requires ffmpeg-libs(x86-64) = 1:4.4-1.el8, but none of the providers can be installed
  - cannot install the best candidate for the job
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
(XID r4f4bx) “/usr/bin/yum” reported error code “1” when it ended:
I feel like my installing OBS messed up the libraries that are needed for FFMPEG -PHP, is there any way to purge the OBS library, I already uninstalled it through the GUI - I am using Almalinux 8
 
Last edited by a moderator:

andrew.n

Well-Known Member
Jun 9, 2020
683
215
43
EU
cPanel Access Level
Root Administrator
You can try to remove the "obs-studio-libs-27.0.1-2.el8.x86_64" package but you have to make sure it won't remove any dependencies which is necessary for cPanel to work so be careful. You can do so with the following command:

yum remove obs-studio-libs-27.0.1-2.el8.x86_64
 
  • Like
Reactions: joshreynolds2

joshreynolds2

Member
Sep 19, 2021
16
2
3
Dayton
cPanel Access Level
Root Administrator
do you think that using the --allowerasing command would cause issues with the server ? also would it be something like yum install ffmpeg-devel --allowerasing ? Sorry if thats a silly question I am still in school for this kind of stuff.
:P
You can try to remove the "obs-studio-libs-27.0.1-2.el8.x86_64" package but you have to make sure it won't remove any dependencies which is necessary for cPanel to work so be careful. You can do so with the following command:

yum remove obs-studio-libs-27.0.1-2.el8.x86_64
 

joshreynolds2

Member
Sep 19, 2021
16
2
3
Dayton
cPanel Access Level
Root Administrator
I think using the allowerasing command worked! it replaced the libraries and now I have it installed, now I just need to figure out how to activate it in PHP. Everything Ive read is wrong though calls for commands that dont exist on my system like phpize. hmmmm.. Ill be back if I figure out a fix.