Discussion:
ffmpeg built ho in Slackware64 15.0
(too old to reply)
Harold Johanssen
2022-05-11 00:45:00 UTC
Permalink
ffmpeg can be built with support for lots of different video
formats. Anybody know exactly how the package is built for Slackware64
15.0?

I had a look into the corresponding Slackbuild file, as
distributed with Slackware64 15.0, and it would seem that the decision as
to whether or not add support for some specific format is done on the
fly, depending on whether or not the necessary shared libraries are
already present in the system. Which, of course, is something I cannot
know, when it comes to the ffmpeg package distributed with Slackware64
15.0.

The thing is, I am trying to do something with ffmpeg that
requires the x264 encoder, and ffmpeg claims not to know about such
encoder.
Harold Johanssen
2022-05-11 01:45:17 UTC
Permalink
ffmpeg can be built with support for lots of different video formats.
Anybody know exactly how the package is built for Slackware64 15.0?
I had a look into the corresponding Slackbuild file, as
distributed with Slackware64 15.0, and it would seem that the decision
as to whether or not add support for some specific format is done on the
fly, depending on whether or not the necessary shared libraries are
already present in the system. Which, of course, is something I cannot
know, when it comes to the ffmpeg package distributed with Slackware64
15.0.
The thing is, I am trying to do something with ffmpeg that
requires the x264 encoder, and ffmpeg claims not to know about such
encoder.
To answer my own question, I just noticed that when launching
ffmpeg it prints out the following:

configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
--docdir=/usr/doc/ffmpeg-4.4.1/html --mandir=/usr/man --disable-debug --
enable-shared --disable-static --enable-gpl --enable-version3 --enable-
avresample --arch=x86_64 --disable-encoder=aac --enable-libfontconfig --
enable-libfreetype --enable-libfribidi --enable-gnutls --enable-libbluray
--enable-libcaca --enable-libcdio --enable-frei0r --enable-openal --
enable-libopus --enable-libspeex --enable-libssh --enable-libtheora --
enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --
enable-libwebp --enable-libmp3lame --enable-opencl --enable-opengl --
enable-libopenjpeg --enable-libpulse --enable-libsmbclient --enable-
libxml2 --enable-librsvg --enable-libdrm

So, no x264 support :-( I'll try to build it with x264 support.
Harold Johanssen
2022-05-11 03:24:18 UTC
Permalink
Post by Harold Johanssen
ffmpeg can be built with support for lots of different video formats.
Anybody know exactly how the package is built for Slackware64 15.0?
I had a look into the corresponding Slackbuild file, as
distributed with Slackware64 15.0, and it would seem that the decision
as to whether or not add support for some specific format is done on
the fly, depending on whether or not the necessary shared libraries are
already present in the system. Which, of course, is something I cannot
know, when it comes to the ffmpeg package distributed with Slackware64
15.0.
The thing is, I am trying to do something with ffmpeg that
requires the x264 encoder, and ffmpeg claims not to know about such
encoder.
To answer my own question, I just noticed that when launching
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
--docdir=/usr/doc/ffmpeg-4.4.1/html --mandir=/usr/man --disable-debug --
enable-shared --disable-static --enable-gpl --enable-version3 --enable-
avresample --arch=x86_64 --disable-encoder=aac --enable-libfontconfig --
enable-libfreetype --enable-libfribidi --enable-gnutls
--enable-libbluray --enable-libcaca --enable-libcdio --enable-frei0r
--enable-openal -- enable-libopus --enable-libspeex --enable-libssh
--enable-libtheora -- enable-libv4l2 --enable-libvidstab
--enable-libvorbis --enable-libvpx -- enable-libwebp --enable-libmp3lame
--enable-opencl --enable-opengl -- enable-libopenjpeg --enable-libpulse
--enable-libsmbclient --enable- libxml2 --enable-librsvg --enable-libdrm
So, no x264 support :-( I'll try to build it with x264 support.
Well, that works fine: I rebuilt from source, using the software
delivered with Slackware, making sure that x264 is supported, replaced
the ffmpeg packaged shipped with this one, and it worked as expected.
Rinaldi
2022-05-11 03:29:28 UTC
Permalink
On 5/10/22 22:24, Harold Johanssen wrote:

---------------
Post by Harold Johanssen
Post by Harold Johanssen
So, no x264 support :-( I'll try to build it with x264 support.
Well, that works fine: I rebuilt from source, using the software
delivered with Slackware, making sure that x264 is supported, replaced
the ffmpeg packaged shipped with this one, and it worked as expected.
You might take a look here:

http://www.slackware.com/~alien/slackbuilds/ffmpeg/

Rinaldi
--
Critic, n.:
A person who boasts himself hard to please because nobody tries
to please him. -- Ambrose Bierce, "The Devil's Dictionary"
Edwin Johnson
2022-05-11 13:22:19 UTC
Permalink
Post by Harold Johanssen
Post by Harold Johanssen
So, no x264 support :-( I'll try to build it with x264 support.
Well, that works fine: I rebuilt from source, using the software
delivered with Slackware, making sure that x264 is supported, replaced
the ffmpeg packaged shipped with this one, and it worked as expected.
These are my notes from rebuild of ffmpeg from source for Slack 15.0:

----------
To build ffplay, need to install SDL2 library. I had to install new
version of libass also.

In configure: --enable-libass --enable-libmp3lame --enable-libpulse
--enable-libv4l2 --enable-libx264 --enable-gpl --libdir=/usr/local/lib64
----------

If you want or need ffplay, it is enabled automatically, but you must
install SDL2 library. Also, if I'm remembering correctly if you
--enable-libx264 you must also --enable-gpl. (During configure it will
tell you this.) I use the libass library for subtitle manipulation, so
I installed a new version of that and enabled it.

Hope this helps some.

...Edwin
noel
2022-05-13 15:39:13 UTC
Permalink
Post by Rinaldi
---------------
Post by Harold Johanssen
Post by Harold Johanssen
So, no x264 support :-( I'll try to build it with x264 support.
Well, that works fine: I rebuilt from source, using the software
delivered with Slackware, making sure that x264 is supported, replaced
the ffmpeg packaged shipped with this one, and it worked as expected.
http://www.slackware.com/~alien/slackbuilds/ffmpeg/
Rinaldi
beware aliens deps
it was easier to remove, blacklist ad build from source, just like ive
been doing since day dot

Loading...