Я должен преобразовать файлы FLAC в mp3, но сбои ffmpeg с
Encoder (codec mp3) not found for output stream #0:0
или с
Unknown encoder 'libmp3lame'
Я узнал, что должен установить пакет libavcodec-extra
. У меня нет корневого доступа на этой машине, таким образом, я загрузил .deb файл, извлек его содержание с ar x
и извлеченное содержание от data.tar.xz
. Это создало локальное usr/lib
каталог с общей библиотекой в нем.
Я затем добавил путь к LD_LIBRARY_PATH
переменная среды,
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/build/usr/lib/x86_64-linux-gnu
Кажется, что теперь библиотека найдена:
$ ldconfig -v | grep libavcodec
/sbin/ldconfig.real: Can't stat /lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /lib32: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/lib32: No such file or directory
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: /lib/i386-linux-gnu/ld-2.19.so is the dynamic linker, ignoring
/sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.19.so is the dynamic linker, ignoring
libavcodec.so.54 -> libavcodec.so.54.35.1
/sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
Но ffmpeg все еще перестал работать. Что я пропускаю?
Альтернативное решение к , загружают статический двоичный файл ffmpeg
. Это имеет поддержку libmp3lame. Просто загрузите, извлеките и выполнитесь. Никакая потребность в корне или суперпользователе.