Skip to content

linux.sh

Taner Sener edited this page Aug 18, 2022 · 2 revisions

linux.sh builds FFmpegKit for Linux platform.

By default only one Linux architecture (x86-64) is built without any external libraries enabled.

Options can be used to enable external libraries. Please note that GPL libraries (external libraries with GPL license) need --enable-gpl flag to be set explicitly.

When compilation ends, libraries are created under the prebuilt folder.

Usage: ./linux.sh [OPTION]...

Specify environment variables as VARIABLE=VALUE to override default build options.

Options:
  -h, --help			display this help and exit
  -v, --version			display version information and exit
  -d, --debug			build with debug information
  -s, --speed			optimize for speed instead of size
  -f, --force			ignore warnings
  -l, --lts			build lts packages to support older devices

Licensing options:
  --enable-gpl			allow building GPL libraries, created libs will be licensed under the GPLv3.0 [no]

Architectures:
  --disable-x86-64		do not build x86-64 architecture [yes]

Libraries:
  --full			enables all external libraries
  --enable-linux-alsa		build with built-in alsa support [no]
  --enable-linux-fontconfig	build with built-in fontconfig support [no]
  --enable-linux-freetype	build with built-in freetype support [no]
  --enable-linux-fribidi	build with built-in fribidi support [no]
  --enable-linux-gmp		build with built-in gmp support [no]
  --enable-linux-gnutls		build with built-in gnutls support [no]
  --enable-linux-lame		build with built-in lame support [no]
  --enable-linux-libass		build with built-in libass support [no]
  --enable-linux-libiconv	build with built-in libiconv support [no]
  --enable-linux-libtheora	build with built-in libtheora support [no]
  --enable-linux-libvorbis	build with built-in libvorbis support [no]
  --enable-linux-libvpx		build with built-in libvpx support [no]
  --enable-linux-libwebp	build with built-in libwebp support [no]
  --enable-linux-libxml2	build with built-in libxml2 support [no]
  --enable-linux-opencl		build with built-in opencl support [no]
  --enable-linux-opencore-amr	build with built-in opencore-amr support [no]
  --enable-linux-opus		build with built-in opus support [no]
  --enable-linux-sdl		build with built-in sdl support [no]
  --enable-linux-shine		build with built-in shine support [no]
  --enable-linux-snappy		build with built-in snappy support [no]
  --enable-linux-soxr		build with built-in soxr support [no]
  --enable-linux-speex		build with built-in speex support [no]
  --enable-linux-tesseract	build with built-in tesseract support [no]
  --enable-linux-twolame	build with built-in twolame support [no]
  --enable-linux-vaapi		build with built-in vaapi support [no]
  --enable-linux-v4l2		build with built-in v4l2 support [no]
  --enable-linux-vo-amrwbenc	build with built-in vo-amrwbenc support [no]
  --enable-linux-zlib		build with built-in zlib support [no]
  --enable-chromaprint		build with chromaprint support [no]
  --enable-dav1d		build with dav1d [no]
  --enable-kvazaar		build with kvazaar [no]
  --enable-libaom		build with libaom [no]
  --enable-libilbc		build with libilbc [no]
  --enable-openh264		build with openh264 [no]
  --enable-openssl		build with openssl [no]
  --enable-srt			build with srt [no]
  --enable-zimg			build with zimg [no]

GPL libraries:
  --enable-linux-libvidstab	build with built-in libvidstab support [no]
  --enable-linux-rubberband	build with built-in rubber band support [no]
  --enable-linux-x265		build with built-in x265 support [no]
  --enable-linux-xvidcore	build with built-in xvidcore support [no]
  --enable-x264			build with x264 [no]

Custom libraries:
  --enable-custom-library-[n]-name=value			name of the custom library []
  --enable-custom-library-[n]-repo=value			git repository of the source code []
  --enable-custom-library-[n]-repo-commit=value			git commit to download the source code from []
  --enable-custom-library-[n]-repo-tag=value			git tag to download the source code from []
  --enable-custom-library-[n]-package-config-file-name=value	package config file installed by the build script []
  --enable-custom-library-[n]-ffmpeg-enable-flag=value	library name used in ffmpeg configure script to enable the library []
  --enable-custom-library-[n]-license-file=value		licence file path relative to the library source folder []

Advanced options:
  --reconf-LIBRARY		run autoreconf before building LIBRARY [no]
  --redownload-LIBRARY		download LIBRARY even if it is detected as already downloaded [no]
  --rebuild-LIBRARY		build LIBRARY even if it is detected as already built [no]
Clone this wiki locally