ffmpeg Unknown encoder 'libx264'
In addition to my recent ffmpeg post (https://www.linuxquestions.org/quest...75#post6138275) I have another issue. I've tried:
Code:
ffmpeg -f image2 -r 1/5 -pattern_type glob -i './*.[jJ]*' -c:v libx264 -pix_fmt yuv420p out.mp4 Code:
-rwxr-xr-x 1 root root 1019528 Jun 26 16:33 /usr/lib64/libx264.so.148 |
Quote:
It is not legal to ship some particular codecs unless you pay royally for them, and that happens specially and particularly in USA. |
ffmpeg has to have x264 support compiled in. It usually does.
Code:
ffmpeg -codecs Code:
ffmpeg |
The Slackware does not ships H264 encoders, only H264 decoders. Because of reasons.
|
Quote:
|
Did you enable x264 when compiling ffmpeg? It doesn't autodetect things, so you're forced to pass flags to enable/disable certain features. Per the README, x264 encoder support requires passing X264=yes to the SlackBuild (and installing x264).
You can check your available encoders by running ffmpeg -encoders and if the output is a bit overwhelming, you can pipe the info and grep for 264 (ffmpeg -encoders | grep 264) EDIT: drgibbon beat me to it. |
Quote:
|
Output to ffmpeg -encoders | grep 264:
Code:
ffmpeg -encoders | grep 264 |
You don't have libx264 as an encoder option. Compare your output to mine:
Code:
jbhansen@craven-moorhead:~$ ffmpeg -encoders | grep 264 |
Thanks all for the feedback. At the moment, I'm not that into this project enough to modify builds, etc. I'm going to move on and not deal with this one further.
|
All good. If anyone has this problem on the latest Slack you can fix it like this (assuming you installed x264 already):
Code:
rsync -avz rsync://mirrors.kernel.org/slackware/slackware-current/source/l/ffmpeg . Alternatively slackpkg+ and alienbob's restricted ffmpeg would be an easier method in the long run. |
Quote:
Quote:
https://bear.alienbase.nl/mirrors/pe...builds/ffmpeg/ |
Oops, yes, "restricted" :thumbsup:
|
Sorry for necroposting, but I've made an improvement on this script to auto detect some libraries.
It's not complete, but maybe we could finish this list and send to the maintainer. The missing parts are marked with a #TODO comment The following lines can be added just before the comments I've kept at the end. Code:
LAME=$(/sbin/ldconfig -p | grep libmp3lame\.so\ | grep /usr/lib${LIBDIRSUFFIX}/ | grep . >> /dev/null && echo yes) |
Quote:
|
All times are GMT -5. The time now is 12:41 PM. |