Skip to content

Instantly share code, notes, and snippets.

@lulalala
Created October 17, 2013 16:33
Show Gist options
  • Save lulalala/7028049 to your computer and use it in GitHub Desktop.
Save lulalala/7028049 to your computer and use it in GitHub Desktop.
compile options for minial ffmpeg which can encode/decode from images to h264
# for x264
./configure --enable-static \
--disable-opencl \
--disable-avs \
--disable-cli \
--disable-ffms \
--disable-gpac \
--disable-lavf \
--disable-swscale \
--prefix=/usr/local/
# for ffmpeg
configure --prefix=/usr/local/ --enable-gpl --enable-version3 --enable-bzlib --enable-libx264 --enable-zlib --disable-network --disable-debug --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc \
--extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib \
--disable-encoders \
--enable-encoder=libx264 \
--enable-encoder=libx264rgb \
--enable-encoder=bmp \
--enable-encoder=png \
--enable-encoder=ljpeg \
--disable-decoders \
--enable-decoder=h264 \
--enable-decoder=bmp \
--enable-decoder=png \
--disable-filters \
--enable-filter=scale \
--disable-muxers \
--enable-muxer=image2 \
--enable-muxer=matroska \
--enable-muxer=mp4 \
--enable-muxer=avi \
--enable-muxer=h264 \
--disable-demuxers \
--enable-demuxer=image2 \
--enable-demuxer=matroska \
--enable-demuxer=mp4 \
--enable-demuxer=avi \
--enable-demuxer=h264 \
--disable-bsfs \
--disable-parsers \
--enable-parser=bmp \
--enable-parser=h264 \
--enable-parser=png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment