This (very) simple patch enables LADSPA support in FFmpeg. It only requires
a build dependency: if users don't want LADSPA at run-time they don't have
to have it installed. This thus seems like a relatively benign -- and
fairly useful -- addition to our FFmpeg port.
You can try this out with a command such as:
$ ffmpeg -i in.aac -af
"ladspa=file=/usr/local/lib/ladspa/amp.so:p=amp_stereo:c=c0=10" out.aac
This will amplify "in.aac" by 10dB and write the output to "out.aac".
Laurie
Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/ffmpeg/Makefile,v
retrieving revision 1.201
diff -u -r1.201 Makefile
--- Makefile 18 Jun 2020 07:03:15 -0000 1.201
+++ Makefile 21 Jun 2020 21:51:06 -0000
@@ -35,7 +35,8 @@
COMPILER= base-clang ports-gcc
COMPILER_LANGS= c
-BUILD_DEPENDS= textproc/texi2html \
+BUILD_DEPENDS= audio/ladspa \
+ textproc/texi2html \
multimedia/frei0r-plugins
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
BUILD_DEPENDS+= devel/nasm
@@ -102,6 +103,7 @@
--enable-fontconfig \
--enable-frei0r \
--enable-gpl \
+ --enable-ladspa \
--enable-libaom \
--enable-libass \
--enable-libdav1d \