SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, I have both Firefox [91.5.1esr (64-bit)] from Slackware-current CD and the nightly build [98.0a1 (2022-02-01) (64-bit)] installed on Slackware current 5.15.18. However I am having issues getting hardware acceleration working on sites like Twitch for either of them. Hardware acceleration works perfectly fine with Youtube, but anything that uses x264 video will fail and Firefox says it doesn't have the required codec. I did not install the Slackware-current FFMpeg package and instead I installed the latest build of FFMpeg with x264 and x265 building it myself, and verified it works correctly using MPV and MPlayer.
When loading a Twitch channel and looking at the Firefox console, it outputs this error:
Code:
The video on this page can’t be played. Your system may not have the required video codecs for: video/mp4;codecs="vp09.00.10.08", video/mp4;codecs="avc1.64002A mp4a.40.2", video/mp4;codecs="avc1.4D401F mp4a.40.2", video/mp4;codecs="avc1.4D401F mp4a.40.2", video/mp4;codecs="avc1.4D401F mp4a.40.2", video/mp4;codecs="avc1.4D401F mp4a.40.2" www.twitch.tv
I've verifed X264 is the issue by installed the x264ify Firefox extension then trying to watch Youtube using it, the Youtube videos no longer play. Without the extension the Youtube videos play correctly.
I'm at my wits end here as I cannot understand why Firefox will not load libavcodec.so from FFMpeg. Libx264 and Libx265 are both installed on the system. All hardware acceleration options are enabled in Firefox.
Does anyone have any ideas on how to trouble shoot this issue? I'd really like to fix this and move on as it has given me a headache for the past four hours trying to solve it. Thank you.
Last edited by Swaggajackin; 02-01-2022 at 10:08 AM.
Do you have : Cisco Codec openH264
in your plugins ?
Yes, and it's enabled.
Code:
OpenH264 Video Codec provided by Cisco Systems, Inc.
This plugin is automatically installed by Mozilla to comply with the WebRTC specification and to enable WebRTC calls with devices that require the H.264 video codec. Visit https://www.openh264.org/ to view the codec source code and learn more about the implementation.
The libavcodec from the Slackware current is the .so.58
The .so.59 one you have is probably incompatible with the one of the current and can't replace it except for the ffmpeg you have.
Your ffmpeg is in /usr/local
So I think you can just add the official package for ffmpeg and the two versions should live together.
Firefox will take the good one.
I have already played with 2 versions of ffmpeg in the same system.
Your ffmpeg is in /usr/local
So I think you can just add the official package for ffmpeg and the two versions should live together.
Firefox will take the good one.
I have already played with 2 versions of ffmpeg in the same system.
Thank you for the advice. I will just revert the FFMpeg version to an older version until it's resolved. The only reason I have a newer version of FFMpeg is I needed to build it with x264/x265/nvenc support so I just cloned the latest git, as it does not have those options in the default distribution, it's no problem for me to revert.
Thank you for the advice. I will just revert the FFMpeg version to an older version until it's resolved. The only reason I have a newer version of FFMpeg is I needed to build it with x264/x265/nvenc support so I just cloned the latest git, as it does not have those options in the default distribution, it's no problem for me to revert.
I'm confused.
The FFMPEG Slackbuild in Current says that "nvdec/nvenc" is "autodetected." It is setup so people can enable libx264 and libx265 among other things and build their own custom FFMPEG with the official FFMPEG Slackbuild script. I would wager that the latest and greatest FFMPEG would work with the script with little modification. I know h264 works with the default Slackware Current FFMPEG install. The distro comes ready to go for Youtube.
Last edited by RadicalDreamer; 02-02-2022 at 01:02 AM.
The FFMPEG Slackbuild in Current says that "nvdec/nvenc" is "autodetected." It is setup so people can enable libx264 and libx265 among other things and build their own custom FFMPEG with the official FFMPEG Slackbuild script. I would wager that the latest and greatest FFMPEG would work with the script with little modification. I know h264 works with the default Slackware Current FFMPEG install. The distro comes ready to go for Youtube.
Yea, I don't know. I attempted to encode/decode h264 and h265 via NVENC and NVENC_HEVC with the slackware-current release of FFMPEG but was unable to. It requires building FFMpeg with the Nvidia Cuda Toolchain which isn't present in Slackware Current. I believe libx264 and libx265 are also missing libraries in Slackware Current. I tried building 4.4 with the slackbuilds cuda install (10.2) and it didn't like that version of nvcc. FFMpeg 5.0 had no issue with it strangely. I didn't want to mess with anymore and building with 5.0 was hassle free.
EDIT:
If anyone wants to use FFMpeg 5.0 and have h264 decoding in Firefox (currently), the only libraries Firefox needs from 4.4 are:
I copied these over to a lib directory so Firefox could find them and kept the FFMpeg 5.0 install. Everything works fine, so it's one work around you can use until Firefox supports 5.0.
Last edited by Swaggajackin; 02-02-2022 at 04:46 AM.
I compile again the ffmpeg package from slackware with some variables set.
Install x264 and x265 libraries (for example from ponce and/or conraid) and some others libraries for non X264 and X265 variables.
export X264=yes
export X265=yes
export OPENAL=yes
export AAC=yes
export AOM=yes
export DAV1D=yes
cd .../slackware64/source/l/ffmpeg
./ffmpeg.Slackbuild
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.