Код: Выделить всё
$ youtube-dl -x --audio-format mp3 https://www.youtube.com/watch?v=2yjcIzEUDZs
[youtube] 2yjcIzEUDZs: Downloading webpage
[youtube] 2yjcIzEUDZs: Downloading video info webpage
[youtube] 2yjcIzEUDZs: Extracting video information
[youtube] 2yjcIzEUDZs: Downloading MPD manifest
[download] Song 'Rachem'-2yjcIzEUDZs.webm has already been downloaded
[download] 100% of 2.34MiB
[ffmpeg] Destination: Song 'Rachem'-2yjcIzEUDZs.mp3
ERROR: audio conversion failed: Unknown encoder 'libmp3lame'
$
Но как тут быть?
ffmpeg я ставил командой:
Код: Выделить всё
# pkg install ffmpeg
А через порты
Код: Выделить всё
root@F3ja:/usr/ports/multimedia/ffmpeg # make deinstall clean
===> Deinstalling for ffmpeg
===> Deinstalling ffmpeg-2.8.6_3,1
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):
Installed packages to be REMOVED:
ffmpeg-2.8.6_3,1
The operation will free 36 MiB.
[1/1] Deinstalling ffmpeg-2.8.6_3,1...
[1/1] Deleting files for ffmpeg-2.8.6_3,1: 100%
===> Cleaning for yasm-1.2.0
===> Cleaning for texi2html-5.0_1,1
===> Cleaning for v4l_compat-1.6.3
===> Cleaning for openh264-1.5.0
===> Cleaning for libva-1.7.0
===> Cleaning for vo-amrwbenc-0.1.3_1
===> Cleaning for ffmpeg-2.8.7_1,1
root@F3ja:/usr/ports/multimedia/ffmpeg # make reinstall clean
===> License GPLv3+ LGPL3+ accepted by the user
===> Found saved configuration for ffmpeg-2.8.7_1,1
===> ffmpeg-2.8.7_1,1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by ffmpeg-2.8.7_1,1 for building
===> Extracting for ffmpeg-2.8.7_1,1
=> SHA256 Checksum OK for ffmpeg-2.8.7.tar.bz2.
===> Patching for ffmpeg-2.8.7_1,1
===> Applying FreeBSD patches for ffmpeg-2.8.7_1,1
===> ffmpeg-2.8.7_1,1 depends on executable: yasm - found
===> ffmpeg-2.8.7_1,1 depends on file: /usr/local/bin/as - found
===> ffmpeg-2.8.7_1,1 depends on executable: texi2html - found
===> ffmpeg-2.8.7_1,1 depends on file: /usr/local/include/frei0r.h - found
===> ffmpeg-2.8.7_1,1 depends on package: v4l_compat>0 - found
===> ffmpeg-2.8.7_1,1 depends on file: /usr/local/bin/sdl-config - found
===> ffmpeg-2.8.7_1,1 depends on executable: gmake - found
===> ffmpeg-2.8.7_1,1 depends on package: pkgconf>=0.9.10 - found
===> ffmpeg-2.8.7_1,1 depends on package: libiconv>=1.14_9 - found
===> ffmpeg-2.8.7_1,1 depends on package: libGL>0 - found
===> ffmpeg-2.8.7_1,1 depends on file: /usr/local/libdata/pkgconfig/glproto.pc - found
===> ffmpeg-2.8.7_1,1 depends on file: /usr/local/libdata/pkgconfig/dri2proto.pc - found
===> ffmpeg-2.8.7_1,1 depends on package: perl5>=5.20<5.21 - found
===> ffmpeg-2.8.7_1,1 depends on shared library: libasound.so - found (/usr/local/lib/libasound.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libcdio_paranoia.so - found (/usr/local/lib/libcdio_paranoia.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libfaac.so - found (/usr/local/lib/libfaac.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libfontconfig.so - found (/usr/local/lib/libfontconfig.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libfreetype.so - found (/usr/local/lib/libfreetype.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libjack.so - found (/usr/local/lib/libjack.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libmp3lame.so - found (/usr/local/lib/libmp3lame.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libopencv_imgproc.so - found (/usr/local/lib/libopencv_imgproc.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libopenh264.so - found (/usr/local/lib/libopenh264.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libopenjpeg.so - found (/usr/local/lib/libopenjpeg.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libpulse.so - found (/usr/local/lib/libpulse.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libschroedinger-1.0.so - found (/usr/local/lib/libschroedinger-1.0.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libtheora.so - found (/usr/local/lib/libtheora.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libv4l2.so - found (/usr/local/lib/libv4l2.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libva.so - found (/usr/local/lib/libva.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libvdpau.so - found (/usr/local/lib/libvdpau.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libvidstab.so - found (/usr/local/lib/libvidstab.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libvorbisenc.so - found (/usr/local/lib/libvorbisenc.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libvo-amrwbenc.so - found (/usr/local/lib/libvo-amrwbenc.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libvpx.so - found (/usr/local/lib/libvpx.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libwavpack.so - found (/usr/local/lib/libwavpack.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libwebp.so - found (/usr/local/lib/libwebp.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libx264.so - found (/usr/local/lib/libx264.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libxvidcore.so - found (/usr/local/lib/libxvidcore.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libgnutls.so - found (/usr/local/lib/libgnutls.so)
===> ffmpeg-2.8.7_1,1 depends on shared library: libSDL.so - found (/usr/local/lib/libSDL.so)
===> Configuring for ffmpeg-2.8.7_1,1
Unable to create and execute files in /tmp. Set the TMPDIR environment
variable to another directory and make sure that it is not mounted noexec.
Sanity test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
===> Script "configure" failed unexpectedly.
Please report the problem to multimedia@FreeBSD.org [maintainer] and attach
the "/usr/ports/multimedia/ffmpeg/work/ffmpeg-2.8.7/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/multimedia/ffmpeg
*** Error code 1
Stop.
make: stopped in /usr/ports/multimedia/ffmpeg