lame is a build-time dependency of ffmpeg, so did you install lame before you ran the ffmpeg.SlackBuild script?

Also, the SBo script doesn't auto-detect these dependencies, since the list is huge and it doesn't want to make licensing assumptions.

See the SBo page for details, the list is as follows:

ASS=yes|no (default: no), requires libass
BLURAY=yes|no (default: no), requires libbluray
BS2B=yes|no (default: no), requires libbs2b
CELT=yes|no (default: no), requires celt
CHROMAPRINT=yes|no (default: no), requires chromaprint
DC1394=yes|no (default: no), requires libdc1394
DECKLINK=yes|no (default: no), requires decklink-sdk
EBUR128=yes|no (default: no), requires libebur128
FDK_AAC=yes|no (default: no), requires libfdk-aac (creates non-redistributable binary)
FLITE=yes|no (default: no), requires flite
FREI0R=yes|no (default: no), requires frei0r
GME=yes|no (default: no), requires libgme
GSM=yes|no (default: no), requires gsm
IEC61883=yes|no (default: no), requires libiec61883 and libavc1394
ILBC=yes|no (default: no), requires libilbc
LADSPA=yes|no (default: no), requires ladspa_sdk
LAME=yes|no (default: no), requires lame
MODPLUG=yes|no (default: no), requires libmodplug
NETCDF=yes|no (default: no), requires netcdf
OPENAL=yes|no (default: no), requires OpenAL
OPENCORE=yes|no (default: no), requires opencore-amr
OPENCV=yes|no (default: no), requires opencv-legacy
OPENSSL=yes|no (default: no), creates non-redistributable binary
OPUS=yes|no (default: no), requires opus
RTMP=yes|no (default: no), requires rtmpdump
RUBBERBAND=yes|no (default: no), requires rubberband
SCHROEDINGER=yes|no (default: no), requires schroedinger
SNAPPY=yes|no (default: no), requires snappy
SPEEX=yes|no (default: no), requires speex
TESSERACT=yes|no (default: no), requires tesseract
TWOLAME=yes|no (default: no), requires twolame
VIDSTAB=yes|no (default: no), requires vid.stab
WEBP=yes|no (default: no), requires libwebp
X264=yes|no (default: no), requires x264
X265=yes|no (default: no), requires x265
XVID=yes|no (default: no), requires xvidcore
ZMQ=yes|no (default: no), requires zeromq
ZVBI=yes|no (default: no), requires zvbi


As you can see, LAME needs to be enabled in order for support to be built in. So you would install the LAME package, then build ffmpeg with the following command:

$ LAME=yes ffmpeg.SlackBuild




On 2/25/19 2:21 PM, Dick Steffens wrote:
On 2/25/19 12:11 PM, Thomas Groman wrote:
On Mon, 25 Feb 2019 11:40:19 -0800
Dick Steffens <[email protected]> wrote:

I am ripping some CDs and converting the .wav files to .mp3. I can do
this with the following in Ubuntu 18.04:

for file in *.wav; do ffmpeg -i "${file}"  -acodec libmp3lame -ab
220k "${file/.wav/.mp3}"; done

When I run that in Slackware 14.2 I get the error message:

Unknown encoder 'libmp3lame'

I have installed slackpkgs for ffmpeg and lame. I'm guessing that the
codec provided by the slackpkg has a different name. How do I figure
that out? Or is there something else I'm missing here?

$ ffmpeg -encoders
  and see if you can find one relating to mp3 in there. However If it's
  not in there that's probably due to how licensing that codec was back
  in the 90s.

I don't find mp3 there. However, I have found a suitable alternative. I searched the mighty Interwebs and discovered folks use k3b, which is installed by default in Slackware. It allows me to insert a CD and rip it to mp3s or, as an option, create a single mp3 file, which is my eventual goal. It will also let me specify .wav files already on my hard drive.

Thanks, though, for the pointer.

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to