I am aiming to compile a minimal build of ffmpeg for Ubuntu. The application requires only the concat filter for .mp4s using H.264 video encoder.
I have followed this guide using the following configure options:
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure
--prefix="$HOME/ffmpeg_build"
--pkg-config-flags="--static"
--extra-cflags="-I$HOME/ffmpeg_build/include"
--extra-ldflags="-L$HOME/ffmpeg_build/lib"
--extra-libs="-lpthread -lm"
--ld="g++"
--bindir="$HOME/bin"
--disable-everything
--enable-filter=concat
--enable-avformat
--enable-avdevice
--enable-avcodec
--enable-decoder=h264
--enable-libx264
--enable-muxer=mp4
--enable-gpl
However running
ffmpeg -f concat -i files_to_merge.txt -c copy output.mp4
returns error
[in#0 @ 0x560ace22c640] Unknown input format: 'concat'
I assume this is due to the omission of an enable option in the configure command.
Additionally, I would like to know if it is possible to replicate this command using C concisely, as other C API implementations of ffmpeg I have seen are very involved even for basic function.
Thanks!
at8993 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.