Trouble Building ffmpeg with certain things enabled

Hi, I'm new to FreeBSD, and I'm trying to build ffmpeg with the following options enabled:

--enable-gpl
--enable-postproc
--enable-swscale
--enable-avfilter
--enable-libmp3lame
--enable-libvorbis
--enable-libtheora
--enable-libx264
--enable-libspeex
--enable-shared
--enable-pthreads
--enable-libopenjpeg
--enable-libfaac
--enable-nonfree

some of these are available in the make config prompt, others are not. I'm not very familiar with the makefile system, is it possible to add these flags somehow to the port? if so, how would I go about it?

any info you can provide is appreciated.

I put together a script to check if the flags are enabled after building, and the default one from pkg only has a few enabled. The reason I need these is to build and install butterflow.

the default one in pkg only has

--enable-swscale
--enable-libspeex
--enable-libopenjpeg
--enable-libfaac

would I be better off enabling linux compat and trying to install it that way?
 
So it should be as simple as adding something like:
Code:
CONFIGURE_ARGS+=--prefix="${PREFIX}" \
     --mandir="${PREFIX}/man" \
     --datadir="${DATADIR}" \
     --pkgconfigdir="${PREFIX}/libdata/pkgconfig" \
     --enable-shared \
     --enable-pic \
     --enable-gpl \
     --enable-postproc \
     --enable-avfilter \
     --enable-avresample \
     --enable-pthreads \
     --enable-swscale \
     --enable-libmp3lame \
     --enable-libvorbis \
     --enable-libtheora \
     --enable-libx264 \
     --enable-libspeex \
     --enable-shared \
     --enable-pthreads \
     --enable-libopenjpeg \
     --enable-libfaac \
     --enable-nonfree \
     --cc="${CC}"

to the Makefile?
 
If I look in the Makefile, most of the are enabled:
Code:
CONFIGURE_ARGS+=--prefix="${PREFIX}" \
                --mandir="${PREFIX}/man" \
                --datadir="${DATADIR}" \
                --pkgconfigdir="${PREFIX}/libdata/pkgconfig" \
                --enable-shared \
                --enable-pic \
                --enable-gpl \
                --enable-postproc \
                --enable-avfilter \
                --enable-avresample \
                --enable-pthreads \
                --cc="${CC}"

or has options (except faac and swscale).
 
Thanks! OK, so building with --enable-swscale works fine, but throws an error at --enable-libfaac, saying it's unrecognized. the flag works on linux though.

when I try to run ./configure --help to see if the option has been changed or is even present, I get

./configure: command not found
what am I doing wrong?
 
Are you trying to build from source or are you using the port?
 
Are you trying to build from source or are you using the port?

Using the port, I just want to add 2 options not found in make config to the build, specifically --enable-libfaac and --enable-swscale. One works fine, the other is throwing an error and ./configure --help isn't working.
 
There is no option --enable-libfaac. I think AAC is handled by --enable-libfdk-aac. And this one has an option.
./configure --help works. Has you changed to work/ffmpeg-3.2.4/ directory?
 
Thanks for all the help, I'm well on the way to porting butterflow if anyone's interested by the way
 
Back
Top