Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6471

ffmpeg minimal linux build with only one filter

$
0
0

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!


Viewing all articles
Browse latest Browse all 6471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>