Giter Site home page Giter Site logo

markus-perl / ffmpeg-build-script Goto Github PK

View Code? Open in Web Editor NEW
951.0 37.0 309.0 492 KB

The FFmpeg build script provides an easy way to build a static FFmpeg on OSX and Linux with non-free codecs included.

License: MIT License

Shell 88.83% Dockerfile 11.17%
ffmpeg osx fdk-aac debian webm av1 x265 h265 x264 h264

ffmpeg-build-script's Introduction

build test

FFmpeg build script

If you like the script, please "★" this project!

build-ffmpeg

The FFmpeg build script provides an easy way to build a static FFmpeg on macOS and Linux with optional non-free and GPL codecs (--enable-gpl-and-non-free, see https://ffmpeg.org/legal.html) included.

How-To build FFmpeg on MacOS

Youtube: How-To build and install FFmpeg on macOS

Disclaimer And Data Privacy Notice

This script will download different packages with different licenses from various sources, which may track your usage. These sources are out of control by the developers of this script. Also, this script can create a non-free and unredistributable binary. By downloading and using this script, you are fully aware of this.

Use this script at your own risk. I maintain this script in my spare time. Please do not file bug reports for systems other than Debian and macOS, because I don't have the resources or time to maintain different systems.

Requirements to build

macOS

  • XCode 14.x or greater

Linux

  • Debian >= Buster, Ubuntu => Focal Fossa; other distributions might work too
  • Rocky Linux 8
# Debian and Ubuntu
$ sudo apt install build-essential curl

# Fedora
$ sudo dnf install @development-tools curl

Quick Script Installation

Note: to enable hardware acceleration, see details below.

Quick install and build (macOS, Linux)

Open your command line and run (curl needs to be installed):

# Without GPL and non-free codes, see https://ffmpeg.org/legal.html 
$ bash <(curl -s "https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install.sh?v1")

# With GPL and non-free codes, see https://ffmpeg.org/legal.html 
$ bash <(curl -s "https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install-gpl-and-non-free.sh?v1")

This command downloads the build script and automatically starts the build process.

Common install and build (macOS, Linux)

$ git clone https://github.com/markus-perl/ffmpeg-build-script.git
$ cd ffmpeg-build-script
# Without GPL and non-free codecs
$ ./build-ffmpeg --build
# With GPL and non-free codecs
$ ./build-ffmpeg --enable-gpl-and-non-free --build

Supported Codecs

  • x264: H.264 Video Codec (MPEG-4 AVC)
  • x265: H.265 Video Codec (HEVC)
  • libsvtav1: SVT-AV1 Encoder and Decoder
  • aom: AV1 Video Codec (Experimental and very slow!)
  • librav1e: rust based AV1 encoder (only available if cargo is installed)
  • libdav1d: Fastest AV1 decoder developed by the VideoLAN and FFmpeg communities and sponsored by the AOMedia (only available if meson and ninja are available)
  • fdk_aac: Fraunhofer FDK AAC Codec
  • xvidcore: MPEG-4 video coding standard
  • VP8/VP9/webm: VP8 / VP9 Video Codec for the WebM video file format
  • mp3: MPEG-1 or MPEG-2 Audio Layer III
  • ogg: Free, open container format
  • vorbis: Lossy audio compression format
  • theora: Free lossy video compression format
  • opus: Lossy audio coding format
  • srt: Secure Reliable Transport
  • webp: Image format both lossless and lossy

HardwareAccel

  • nv-codec: NVIDIA's GPU accelerated video codecs. These encoders/decoders will only be available if a CUDA installation was found while building the binary. Follow these instructions for installation. Supported codecs in nvcodec:
    • Decoders
      • H264 h264_cuvid
      • H265 hevc_cuvid
      • Motion JPEG mjpeg_cuvid
      • MPEG1 video mpeg1_cuvid
      • MPEG2 video mpeg2_cuvid
      • MPEG4 part 2 video mepg4_cuvid
      • VC-1 vc1_cuvid
      • VP8 vp8_cuvid
      • VP9 vp9_cuvid
    • Encoders
      • H264 nvenc_h264
      • H265 nvenc_hevc
  • vaapi: Video Acceleration API. These encoders/decoders will only be available if a libva driver installation was found while building the binary. Follow these instructions for installation. Supported codecs in vaapi:
    • Encoders
      • H264 h264_vaapi
      • H265 hevc_vaapi
      • Motion JPEG mjpeg_vaapi
      • MPEG2 video mpeg2_vaapi
      • VP8 vp8_vaapi
      • VP9 vp9_vaapi
  • AMF: AMD's Advanced Media Framework. These encoders will only be available if amdgpu drivers are detected in use on the system with lspci -v.
    • Encoders
      • H264 h264_amf

Build Script Usage

Usage: build-ffmpeg [OPTIONS]
Options:
  -h, --help                     Display usage information
      --version                  Display version information
  -b, --build                    Starts the build process
      --enable-gpl-and-non-free  Enable non-free codecs  - https://ffmpeg.org/legal.html
      --latest                   Build latest version of dependencies if newer available
  -c, --cleanup                  Remove all working dirs
      --small                    Prioritize small size over speed and usability; don't build manpages.
      --full-static              Complete static build of ffmpeg (eg. glibc, pthreads etc...) **only Linux**
                                 Note: Because of the NSS (Name Service Switch), glibc does not recommend static links.

Notes on static linking

  • Because of the NSS (Name Service Switch), glibc does not recommend static links. See more details here.

  • The libnpp in the CUDA SDK cannot be statically linked.

  • Vaapi cannot be statically linked.

Common full build (macOS, Linux)

  1. Install the prerequisites, above.

  2. Install optional dependencies, as desired.

    • If you have an NVIDIA GPU and want to enable CUDA acceleration, please refer to these instructions to install the SDK.

    • If you have an AMD GPU and want to enable AMF acceleration, please refer to these instructions to install the drivers.

    • If you want to enable Vaapi acceleration (for most GPUs), please refer to these instructions to install the driver.

    • If you want the librav1e AV1 encoder, please install rust to get cargo for the build process. Be sure to start a new shell before building, so that cargo is in the new path. If desired, it can be removed with rustup self uninstall after the build is complete.

    • If you want the dav1d AV1 decoder, please ensure that python3 is installed. If using the system python installation, also ensure that meson and ninja are installed before running (otherwise the script will try to install them using pip3).

    • If you want the Lv2 filter plugin, please ensure that python3 is installed.

  3. Run the downoaded build script from the current directory, with your desired options.

    $ ./build-ffmpeg [your parameters here] --build
    • Packages will be under the packages/ subdirectory.
    • Build results will be under the workspace/ subdirectory.

    Upon completion, build-ffmpeg will prompt you for whether to install.

  4. Once installed, if you are satisfied with your ffmpeg build, the ffmpeg-build-script directory can be removed completely.

CUDA installation

CUDA is a parallel computing platform developed by NVIDIA. To be able to compile ffmpeg with CUDA support, you first need a compatible NVIDIA GPU and the NVIDIA compiler nvcc from the CUDA toolkit.

  • Ubuntu: To install the CUDA toolkit on Ubuntu, run

    sudo apt install nvidia-cuda-toolkit

    After compilation, you can run

    sudo apt install nvidia-cuda-dev && sudo apt remove nvidia-cuda-toolkit

    This removes the compilers but leaves the needed shared library libnpp.

  • Other Linux distributions: Once you have the GPU and display driver installed, you can follow the official instructions or this blog to setup the CUDA toolkit.

It is also beneficial to set the CUDA_COMPUTE_CAPABILITY environmental variable so the build is tailored to your hardware and its capabilities. There are many ways you can find your compute capability, for example by using nvidia-smi.

Vaapi installation

You will need the libva driver, so please install it below.

# Debian and Ubuntu
$ sudo apt install libva-dev vainfo

# Fedora and CentOS
$ sudo dnf install libva-devel libva-intel-driver libva-utils

AMF installation

To use the AMF encoder, you will need to be using the AMD GPU Pro drivers with OpenCL support. Download the drivers from https://www.amd.com/en/support and install the appropriate opencl versions.

./amdgpu-pro-install -y --opencl=rocr,legacy

LV2 Plugin Support

If python 3 is available, the script will build a ffmpeg binary with Lv2 filter plugin support.

Apple M1 (Apple Silicon) Support

The script also builds FFmpeg on a new MacBook with an Apple Silicon M1 processor.

Build in Docker (Linux)

With Docker, FFmpeg can be built reliably without altering the host system. Also, there is no need to have the CUDA SDK installed outside of the Docker image.

Default

If you're running an operating system other than the one above, a completely static build may work. To build a full statically linked binary inside Docker, just run the following command:

$ docker build --tag=ffmpeg:default --output type=local,dest=build -f Dockerfile .

CUDA

These builds are always built with the --enable-gpl-and-non-free switch, as CUDA is non-free. See https://ffmpeg.org/legal.html

## Start the build
$ docker build --tag=ffmpeg:cuda --output type=local,dest=build -f cuda-ubuntu.dockerfile .

Build an export.dockerfile that copies only what you need from the image you just built as follows. When running, move the library in the lib to a location where the linker can find it or set the LD_LIBRARY_PATH. Since we have matched the operating system and version, it should work well with dynamic links. If it doesn't work, edit the export.dockerfile and copy the necessary libraries and try again.

$ docker build --output type=local,dest=build -f export.dockerfile .
$ ls build
bin lib
$ ls build/bin
ffmpeg ffprobe
$ ls build/lib
libnppc.so.11 libnppicc.so.11 libnppidei.so.11 libnppig.so.11

By default, newer docker versions don't allow GPU access while building the image. If you intend to build with docker on the same system you intend to run the built image on, allowing this access is beneficial for detecting CUDA compute capability, and tailoring the build to your hardware.

some steps are required on the host machine to allow CUDA access during build:

  1. Install NVIDIA docker runtime and toolkit sudo apt install nvidia-container-runtime nvidia-container-toolkit
  2. Modify /etc/docker/daemon.json and add the line "default-runtime": "nvidia"
  3. Restart Docker: sudo systemctl restart docker
  4. Disable buildkit with export DOCKER_BUILDKIT=0 before building
  5. If all this doesn't work, also remove buildx: sudo apt remove docker-buildx-plugin

You should now see the message CUDA env variable provided during the docker build process.

Full static version

If you're running an operating system other than the one above, a completely static build may work. To build a full statically linked binary inside Docker, just run the following command:

$ sudo -E docker build --tag=ffmpeg:cuda-static --output type=local,dest=build -f full-static.dockerfile .

Run with Docker (macOS, Linux)

You can also run the FFmpeg directly inside a Docker container.

Default - Without CUDA (macOS, Linux)

If CUDA is not required, a dockerized FFmpeg build can be executed with the following command:

$ sudo docker build --tag=ffmpeg .
$ sudo docker run ffmpeg -i https://files.coconut.co.s3.amazonaws.com/test.mp4 -f webm -c:v libvpx -c:a libvorbis - > test.mp4

With CUDA (Linux)

To use CUDA from inside the container, the installed Docker version must be >= 19.03. Install the driver and nvidia-docker2 from here. You can then run FFmpeg inside Docker with GPU hardware acceleration enabled, as follows:

$ sudo docker build --tag=ffmpeg:cuda -f cuda-ubuntu.dockerfile .
$ sudo docker run --gpus all ffmpeg-cuda -hwaccel cuvid -c:v h264_cuvid -i https://files.coconut.co.s3.amazonaws.com/test.mp4 -c:v hevc_nvenc -vf scale_npp=-1:1080 - > test.mp4

Contact

Tested on

  • MacOS 10.15
  • Debian 10
  • Ubuntu 20.04

Continuous Integration

ffmpeg-build-script is very stable. Every commit runs against Linux and macOS with https://github.com/markus-perl/ffmpeg-build-script/actions to make sure everything works as expected.

Example

CUDA_COMPUTE_CAPABILITY=75 SKIPINSTALL=yes ./build-ffmpeg --build --enable-gpl-and-non-free

ffmpeg-build-script v1.xx
=========================

Using 12 make jobs simultaneously.
With GPL and non-free codecs
cargo not installed. rav1e encoder will not be available.

building giflib - version 5.2.1
=======================
Downloading https://netcologne.dl.sourceforge.net/project/giflib/giflib-5.2.1.tar.gz as giflib-5.2.1.tar.gz
... Done
Extracted giflib-5.2.1.tar.gz
$ make
$ make PREFIX=/app/workspace install

building pkg-config - version 0.29.2
=======================
Downloading https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz as pkg-config-0.29.2.tar.gz
... Done
Extracted pkg-config-0.29.2.tar.gz
$ ./configure --silent --prefix=/app/workspace --with-pc-path=/app/workspace/lib/pkgconfig --with-internal-glib
$ make -j 12
$ make install

building yasm - version 1.3.0
=======================
Downloading https://github.com/yasm/yasm/releases/download/v1.3.0/yasm-1.3.0.tar.gz as yasm-1.3.0.tar.gz
... Done
Extracted yasm-1.3.0.tar.gz
$ ./configure --prefix=/app/workspace
$ make -j 12
$ make install

building nasm - version 2.16.01
=======================
Downloading https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/nasm-2.16.01.tar.xz as nasm-2.16.01.tar.xz
... Done
Extracted nasm-2.16.01.tar.xz
$ ./configure --prefix=/app/workspace --disable-shared --enable-static
$ make -j 12
$ make install

building zlib - version 1.2.13
=======================
Downloading https://github.com/madler/zlib/releases/download/v1.2.13/zlib-1.2.13.tar.gz as zlib-1.2.13.tar.gz
... Done
Extracted zlib-1.2.13.tar.gz
$ ./configure --static --prefix=/app/workspace
$ make -j 12
$ make install

building m4 - version 1.4.19
=======================
Downloading https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.gz as m4-1.4.19.tar.gz
... Done
Extracted m4-1.4.19.tar.gz
$ ./configure --prefix=/app/workspace
$ make -j 12
$ make install

building autoconf - version 2.71
=======================
Downloading https://ftp.gnu.org/gnu/autoconf/autoconf-2.71.tar.gz as autoconf-2.71.tar.gz
... Done
Extracted autoconf-2.71.tar.gz
$ ./configure --prefix=/app/workspace
$ make -j 12
$ make install

building automake - version 1.16.5
=======================
Downloading https://ftp.gnu.org/gnu/automake/automake-1.16.5.tar.gz as automake-1.16.5.tar.gz
... Done
Extracted automake-1.16.5.tar.gz
$ ./configure --prefix=/app/workspace
$ make -j 12
$ make install

building libtool - version 2.4.7
=======================
Downloading https://ftpmirror.gnu.org/libtool/libtool-2.4.7.tar.gz as libtool-2.4.7.tar.gz
... Done
Extracted libtool-2.4.7.tar.gz
$ ./configure --prefix=/app/workspace --enable-static --disable-shared
$ make -j 12
$ make install

building openssl - version 1.1.1w
=======================
Downloading https://www.openssl.org/source/openssl-1.1.1w.tar.gz as openssl-1.1.1w.tar.gz
... Done
Extracted openssl-1.1.1w.tar.gz
$ ./config --prefix=/app/workspace --openssldir=/app/workspace --with-zlib-include=/app/workspace/include/ --with-zlib-lib=/app/workspace/lib no-shared zlib
$ make -j 12
$ make install_sw

building cmake - version 3.27.7
=======================
Downloading https://github.com/Kitware/CMake/releases/download/v3.27.7/cmake-3.27.7.tar.gz as cmake-3.27.7.tar.gz
... Done
Extracted cmake-3.27.7.tar.gz
$ ./configure --prefix=/app/workspace --parallel=12 -- -DCMAKE_USE_OPENSSL=OFF
$ make -j 12
$ make install

building dav1d - version 1.1.0
=======================
Downloading https://code.videolan.org/videolan/dav1d/-/archive/1.1.0/dav1d-1.1.0.tar.gz as dav1d-1.1.0.tar.gz
... Done
Extracted dav1d-1.1.0.tar.gz
$ meson build --prefix=/app/workspace --buildtype=release --default-library=static --libdir=/app/workspace/lib
$ ninja -C build
$ ninja -C build install

building svtav1 - version 1.7.0
=======================
Downloading https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v1.7.0/SVT-AV1-v1.7.0.tar.gz as svtav1-1.7.0.tar.gz
... Done
Extracted svtav1-1.7.0.tar.gz
$ cmake -DCMAKE_INSTALL_PREFIX=/app/workspace -DENABLE_SHARED=off -DBUILD_SHARED_LIBS=OFF ../.. -GUnix Makefiles -DCMAKE_BUILD_TYPE=Release
$ make -j 12
$ make install
$ cp SvtAv1Enc.pc /app/workspace/lib/pkgconfig/
$ cp SvtAv1Dec.pc /app/workspace/lib/pkgconfig/

building x264 - version 941cae6d
=======================
Downloading https://code.videolan.org/videolan/x264/-/archive/941cae6d/x264-941cae6d.tar.gz as x264-941cae6d.tar.gz
... Done
Extracted x264-941cae6d.tar.gz
$ ./configure --prefix=/app/workspace --enable-static --enable-pic CXXFLAGS=-fPIC
$ make -j 12
$ make install
$ make install-lib-static

building x265 - version 3.5
=======================
Downloading https://github.com/videolan/x265/archive/Release_3.5.tar.gz as x265-3.5.tar.gz
... Done
Extracted x265-3.5.tar.gz
$ cmake ../../../source -DCMAKE_INSTALL_PREFIX=/app/workspace -DENABLE_SHARED=OFF -DBUILD_SHARED_LIBS=OFF -DHIGH_BIT_DEPTH=ON -DENABLE_HDR10_PLUS=ON -DEXPORT_C_API=OFF -DENABLE_CLI=OFF -DMAIN12=ON
$ make -j 12
$ cmake ../../../source -DCMAKE_INSTALL_PREFIX=/app/workspace -DENABLE_SHARED=OFF -DBUILD_SHARED_LIBS=OFF -DHIGH_BIT_DEPTH=ON -DENABLE_HDR10_PLUS=ON -DEXPORT_C_API=OFF -DENABLE_CLI=OFF
$ make -j 12
$ cmake ../../../source -DCMAKE_INSTALL_PREFIX=/app/workspace -DENABLE_SHARED=OFF -DBUILD_SHARED_LIBS=OFF -DEXTRA_LIB=x265_main10.a;x265_main12.a;-ldl -DEXTRA_LINK_FLAGS=-L. -DLINKED_10BIT=ON -DLINKED_12BIT=ON
$ make -j 12
$ ar -M
$ make install

building libvpx - version 1.13.1
=======================
Downloading https://github.com/webmproject/libvpx/archive/refs/tags/v1.13.1.tar.gz as libvpx-1.13.1.tar.gz
... Done
Extracted libvpx-1.13.1.tar.gz
$ ./configure --prefix=/app/workspace --disable-unit-tests --disable-shared --disable-examples --as=yasm --enable-vp9-highbitdepth
$ make -j 12
$ make install

building xvidcore - version 1.3.7
=======================
Downloading https://downloads.xvid.com/downloads/xvidcore-1.3.7.tar.gz as xvidcore-1.3.7.tar.gz
... Done
Extracted xvidcore-1.3.7.tar.gz
$ ./configure --prefix=/app/workspace --disable-shared --enable-static
$ make -j 12
$ make install
$ rm /app/workspace/lib/libxvidcore.so /app/workspace/lib/libxvidcore.so.4 /app/workspace/lib/libxvidcore.so.4.3

building vid_stab - version 1.1.1
=======================
Downloading https://github.com/georgmartius/vid.stab/archive/v1.1.1.tar.gz as vid.stab-1.1.1.tar.gz
... Done
Extracted vid.stab-1.1.1.tar.gz
$ cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/app/workspace -DUSE_OMP=OFF -DENABLE_SHARED=off .
$ make
$ make install

building av1 - version 7b5f665
=======================
Downloading https://aomedia.googlesource.com/aom/+archive/7b5f665.tar.gz as av1.tar.gz
... Done
Extracted av1.tar.gz
$ cmake -DENABLE_TESTS=0 -DENABLE_EXAMPLES=0 -DCMAKE_INSTALL_PREFIX=/app/workspace -DCMAKE_INSTALL_LIBDIR=lib /app/packages/av1
$ make -j 12
$ make install

building zimg - version 3.0.5
=======================
Downloading https://github.com/sekrit-twc/zimg/archive/refs/tags/release-3.0.5.tar.gz as zimg-3.0.5.tar.gz
... Done
Extracted zimg-3.0.5.tar.gz
$ /app/workspace/bin/libtoolize -i -f -q
$ ./autogen.sh --prefix=/app/workspace
$ ./configure --prefix=/app/workspace --enable-static --disable-shared
$ make -j 12
$ make install

building lv2 - version 1.18.10
=======================
Downloading https://lv2plug.in/spec/lv2-1.18.10.tar.xz as lv2-1.18.10.tar.xz
... Done
Extracted lv2-1.18.10.tar.xz
$ meson build --prefix=/app/workspace --buildtype=release --default-library=static --libdir=/app/workspace/lib
$ ninja -C build
$ ninja -C build install

building waflib - version b600c92
=======================
Downloading https://gitlab.com/drobilla/autowaf/-/archive/b600c92/autowaf-b600c92.tar.gz as autowaf.tar.gz
... Done
Extracted autowaf.tar.gz

building serd - version 0.30.16
=======================
Downloading https://gitlab.com/drobilla/serd/-/archive/v0.30.16/serd-v0.30.16.tar.gz as serd-v0.30.16.tar.gz
... Done
Extracted serd-v0.30.16.tar.gz
$ meson build --prefix=/app/workspace --buildtype=release --default-library=static --libdir=/app/workspace/lib
$ ninja -C build
$ ninja -C build install

building pcre - version 8.45
=======================
Downloading https://altushost-swe.dl.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.tar.gz as pcre-8.45.tar.gz
... Done
Extracted pcre-8.45.tar.gz
$ ./configure --prefix=/app/workspace --disable-shared --enable-static
$ make -j 12
$ make install

building sord - version 0.16.14
=======================
Downloading https://gitlab.com/drobilla/sord/-/archive/v0.16.14/sord-v0.16.14.tar.gz as sord-v0.16.14.tar.gz
... Done
Extracted sord-v0.16.14.tar.gz
$ meson build --prefix=/app/workspace --buildtype=release --default-library=static --libdir=/app/workspace/lib
$ ninja -C build
$ ninja -C build install

building sratom - version 0.6.14
=======================
Downloading https://gitlab.com/lv2/sratom/-/archive/v0.6.14/sratom-v0.6.14.tar.gz as sratom-v0.6.14.tar.gz
... Done
Extracted sratom-v0.6.14.tar.gz
$ meson build --prefix=/app/workspace --buildtype=release --default-library=static --libdir=/app/workspace/lib
$ ninja -C build
$ ninja -C build install

building lilv - version 0.24.20
=======================
Downloading https://gitlab.com/lv2/lilv/-/archive/v0.24.20/lilv-v0.24.20.tar.gz as lilv-v0.24.20.tar.gz
... Done
Extracted lilv-v0.24.20.tar.gz
$ meson build --prefix=/app/workspace --buildtype=release --default-library=static --libdir=/app/workspace/lib
$ ninja -C build
$ ninja -C build install

building opencore - version 0.1.6
=======================
Downloading https://deac-ams.dl.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.6.tar.gz as opencore-amr-0.1.6.tar.gz
... Done
Extracted opencore-amr-0.1.6.tar.gz
$ ./configure --prefix=/app/workspace --disable-shared --enable-static
$ make -j 12
$ make install

building lame - version 3.100
=======================
Downloading https://sourceforge.net/projects/lame/files/lame/3.100/lame-3.100.tar.gz/download?use_mirror=gigenet as lame-3.100.tar.gz
... Done
Extracted lame-3.100.tar.gz
$ ./configure --prefix=/app/workspace --disable-shared --enable-static
$ make -j 12
$ make install

building opus - version 1.4
=======================
Downloading https://downloads.xiph.org/releases/opus/opus-1.4.tar.gz as opus-1.4.tar.gz
... Done
Extracted opus-1.4.tar.gz
$ ./configure --prefix=/app/workspace --disable-shared --enable-static
$ make -j 12
$ make install

building libogg - version 1.3.5
=======================
Downloading https://ftp.osuosl.org/pub/xiph/releases/ogg/libogg-1.3.5.tar.xz as libogg-1.3.5.tar.xz
... Done
Extracted libogg-1.3.5.tar.xz
$ ./configure --prefix=/app/workspace --disable-shared --enable-static
$ make -j 12
$ make install

building libvorbis - version 1.3.7
=======================
Downloading https://ftp.osuosl.org/pub/xiph/releases/vorbis/libvorbis-1.3.7.tar.gz as libvorbis-1.3.7.tar.gz
... Done
Extracted libvorbis-1.3.7.tar.gz
$ ./configure --prefix=/app/workspace --with-ogg-libraries=/app/workspace/lib --with-ogg-includes=/app/workspace/include/ --enable-static --disable-shared --disable-oggtest
$ make -j 12
$ make install

building libtheora - version 1.1.1
=======================
Downloading https://ftp.osuosl.org/pub/xiph/releases/theora/libtheora-1.1.1.tar.gz as libtheora-1.1.1.tar.gz
... Done
Extracted libtheora-1.1.1.tar.gz
$ ./configure --prefix=/app/workspace --with-ogg-libraries=/app/workspace/lib --with-ogg-includes=/app/workspace/include/ --with-vorbis-libraries=/app/workspace/lib --with-vorbis-includes=/app/workspace/include/ --enable-static --disable-shared --disable-oggtest --disable-vorbistest --disable-examples --disable-asm --disable-spec
$ make -j 12
$ make install

building fdk_aac - version 2.0.2
=======================
Downloading https://sourceforge.net/projects/opencore-amr/files/fdk-aac/fdk-aac-2.0.2.tar.gz/download?use_mirror=gigenet as fdk-aac-2.0.2.tar.gz
... Done
Extracted fdk-aac-2.0.2.tar.gz
$ ./configure --prefix=/app/workspace --disable-shared --enable-static --enable-pic
$ make -j 12
$ make install

building libtiff - version 4.5.0
=======================
Downloading https://download.osgeo.org/libtiff/tiff-4.5.0.tar.xz as tiff-4.5.0.tar.xz
... Done
Extracted tiff-4.5.0.tar.xz
$ ./configure --prefix=/app/workspace --disable-shared --enable-static --disable-dependency-tracking --disable-lzma --disable-webp --disable-zstd --without-x
$ make -j 12
$ make install

building libpng - version 1.6.39
=======================
Downloading https://gigenet.dl.sourceforge.net/project/libpng/libpng16/1.6.39/libpng-1.6.39.tar.gz as libpng-1.6.39.tar.gz
... Done
Extracted libpng-1.6.39.tar.gz
$ ./configure --prefix=/app/workspace --disable-shared --enable-static
$ make -j 12
$ make install

building libwebp - version 1.2.2
=======================
Downloading https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.2.2.tar.gz as libwebp-1.2.2.tar.gz
... Done
Extracted libwebp-1.2.2.tar.gz
$ ./configure --prefix=/app/workspace --disable-shared --enable-static --disable-dependency-tracking --disable-gl --with-zlib-include=/app/workspace/include/ --with-zlib-lib=/app/workspace/lib
$ cmake -DCMAKE_INSTALL_PREFIX=/app/workspace -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_INCLUDEDIR=include -DENABLE_SHARED=OFF -DENABLE_STATIC=ON ../
$ make -j 12
$ make install

building libsdl - version 2.28.5
=======================
Downloading https://github.com/libsdl-org/SDL/releases/download/release-2.28.5/SDL2-2.28.5.tar.gz as SDL2-2.28.5.tar.gz
... Done
Extracted SDL2-2.28.5.tar.gz
$ ./configure --prefix=/app/workspace --disable-shared --enable-static
$ make -j 12
$ make install

building FreeType2 - version 2.11.1
=======================
Downloading https://downloads.sourceforge.net/freetype/freetype-2.11.1.tar.xz as freetype-2.11.1.tar.xz
... Done
Extracted freetype-2.11.1.tar.xz
$ ./configure --prefix=/app/workspace --disable-shared --enable-static
$ make -j 12
$ make install

building srt - version 1.5.3
=======================
Downloading https://github.com/Haivision/srt/archive/v1.5.3.tar.gz as srt-1.5.3.tar.gz
... Done
Extracted srt-1.5.3.tar.gz
$ cmake . -DCMAKE_INSTALL_PREFIX=/app/workspace -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_INCLUDEDIR=include -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_APPS=OFF -DUSE_STATIC_LIBSTDCXX=ON
$ make install

building libzmq - version 4.3.5
=======================
Downloading https://github.com/zeromq/libzmq/releases/download/v4.3.5/zeromq-4.3.5.tar.gz as zeromq-4.3.5.tar.gz
... Done
Extracted zeromq-4.3.5.tar.gz
$ ./autogen.sh
$ ./configure --prefix=/app/workspace --disable-shared --enable-static
$ make -j 12
$ make install

building nv-codec - version 11.1.5.3
=======================
Downloading https://github.com/FFmpeg/nv-codec-headers/releases/download/n11.1.5.3/nv-codec-headers-11.1.5.3.tar.gz as nv-codec-headers-11.1.5.3.tar.gz
... Done
Extracted nv-codec-headers-11.1.5.3.tar.gz
$ make PREFIX=/app/workspace
$ make PREFIX=/app/workspace install

building amf - version 1.4.30
=======================
Downloading https://github.com/GPUOpen-LibrariesAndSDKs/AMF/archive/refs/tags/v1.4.30.tar.gz as AMF-1.4.30.tar.gz
... Done
Extracted AMF-1.4.30.tar.gz
$ rm -rf /app/workspace/include/AMF
$ mkdir -p /app/workspace/include/AMF
$ cp -r /app/packages/AMF-1.4.30/AMF-1.4.30/amf/public/include/components /app/packages/AMF-1.4.30/AMF-1.4.30/amf/public/include/core /app/workspace/include/AMF/

building ffmpeg - version 6.0
=======================
Downloading https://github.com/FFmpeg/FFmpeg/archive/refs/heads/release/6.0.tar.gz as FFmpeg-release-6.0.tar.gz
... Done
Extracted FFmpeg-release-6.0.tar.gz
install prefix            /app/workspace
source path               .
C compiler                gcc
C library                 glibc
ARCH                      x86 (generic)
big-endian                no
runtime cpu detection     yes
standalone assembly       yes
x86 assembler             nasm
MMX enabled               yes
MMXEXT enabled            yes
3DNow! enabled            yes
3DNow! extended enabled   yes
SSE enabled               yes
SSSE3 enabled             yes
AESNI enabled             yes
AVX enabled               yes
AVX2 enabled              yes
AVX-512 enabled           yes
AVX-512ICL enabled        yes
XOP enabled               yes
FMA3 enabled              yes
FMA4 enabled              yes
i686 features enabled     yes
CMOV is fast              yes
EBX available             yes
EBP available             yes
debug symbols             no
strip symbols             yes
optimize for size         no
optimizations             yes
static                    yes
shared                    no
postprocessing support    yes
network support           yes
threading support         pthreads
safe bitstream reader     yes
texi2html enabled         no
perl enabled              yes
pod2man enabled           yes
makeinfo enabled          no
makeinfo supports HTML    no
xmllint enabled           no

External libraries:
iconv                   libsrt                  libxvid
libaom                  libsvtav1               libzimg
libdav1d                libtheora               libzmq
libfdk_aac              libvidstab              lv2
libfreetype             libvorbis               openssl
libmp3lame              libvpx                  sdl2
libopencore_amrnb       libwebp                 zlib
libopencore_amrwb       libx264
libopus                 libx265

External libraries providing hardware acceleration:
amf                     cuvid                   nvenc
cuda                    ffnvcodec               v4l2_m2m
cuda_llvm               libnpp                  vaapi
cuda_nvcc               nvdec

Libraries:
avcodec                 avformat                swresample
avdevice                avutil                  swscale
avfilter                postproc

Programs:
ffmpeg                  ffplay                  ffprobe

Enabled decoders:
aac                     fmvc                    pcx
aac_fixed               fourxm                  pfm
aac_latm                fraps                   pgm
aasc                    frwu                    pgmyuv
ac3                     ftr                     pgssub
ac3_fixed               g2m                     pgx
acelp_kelvin            g723_1                  phm
adpcm_4xm               g729                    photocd
adpcm_adx               gdv                     pictor
adpcm_afc               gem                     pixlet
adpcm_agm               gif                     pjs
adpcm_aica              gremlin_dpcm            png
adpcm_argo              gsm                     ppm
adpcm_ct                gsm_ms                  prores
adpcm_dtk               h261                    prosumer
adpcm_ea                h263                    psd
adpcm_ea_maxis_xa       h263_v4l2m2m            ptx
adpcm_ea_r1             h263i                   qcelp
adpcm_ea_r2             h263p                   qdm2
adpcm_ea_r3             h264                    qdmc
adpcm_ea_xas            h264_cuvid              qdraw
adpcm_g722              h264_v4l2m2m            qoi
adpcm_g726              hap                     qpeg
adpcm_g726le            hca                     qtrle
adpcm_ima_acorn         hcom                    r10k
adpcm_ima_alp           hdr                     r210
adpcm_ima_amv           hevc                    ra_144
adpcm_ima_apc           hevc_cuvid              ra_288
adpcm_ima_apm           hevc_v4l2m2m            ralf
adpcm_ima_cunning       hnm4_video              rasc
adpcm_ima_dat4          hq_hqa                  rawvideo
adpcm_ima_dk3           hqx                     realtext
adpcm_ima_dk4           huffyuv                 rka
adpcm_ima_ea_eacs       hymt                    rl2
adpcm_ima_ea_sead       iac                     roq
adpcm_ima_iss           idcin                   roq_dpcm
adpcm_ima_moflex        idf                     rpza
adpcm_ima_mtf           iff_ilbm                rscc
adpcm_ima_oki           ilbc                    rv10
adpcm_ima_qt            imc                     rv20
adpcm_ima_rad           imm4                    rv30
adpcm_ima_smjpeg        imm5                    rv40
adpcm_ima_ssi           indeo2                  s302m
adpcm_ima_wav           indeo3                  sami
adpcm_ima_ws            indeo4                  sanm
adpcm_ms                indeo5                  sbc
adpcm_mtaf              interplay_acm           scpr
adpcm_psx               interplay_dpcm          screenpresso
adpcm_sbpro_2           interplay_video         sdx2_dpcm
adpcm_sbpro_3           ipu                     sga
adpcm_sbpro_4           jacosub                 sgi
adpcm_swf               jpeg2000                sgirle
adpcm_thp               jpegls                  sheervideo
adpcm_thp_le            jv                      shorten
adpcm_vima              kgv1                    simbiosis_imx
adpcm_xa                kmvc                    sipr
adpcm_xmd               lagarith                siren
adpcm_yamaha            libaom_av1              smackaud
adpcm_zork              libdav1d                smacker
agm                     libfdk_aac              smc
aic                     libopencore_amrnb       smvjpeg
alac                    libopencore_amrwb       snow
alias_pix               libopus                 sol_dpcm
als                     libvorbis               sonic
amrnb                   libvpx_vp8              sp5x
amrwb                   libvpx_vp9              speedhq
amv                     loco                    speex
anm                     lscr                    srgc
ansi                    m101                    srt
anull                   mace3                   ssa
apac                    mace6                   stl
ape                     magicyuv                subrip
apng                    mdec                    subviewer
aptx                    media100                subviewer1
aptx_hd                 metasound               sunrast
arbc                    microdvd                svq1
argo                    mimic                   svq3
ass                     misc4                   tak
asv1                    mjpeg                   targa
asv2                    mjpeg_cuvid             targa_y216
atrac1                  mjpegb                  tdsc
atrac3                  mlp                     text
atrac3al                mmvideo                 theora
atrac3p                 mobiclip                thp
atrac3pal               motionpixels            tiertexseqvideo
atrac9                  movtext                 tiff
aura                    mp1                     tmv
aura2                   mp1float                truehd
av1                     mp2                     truemotion1
av1_cuvid               mp2float                truemotion2
avrn                    mp3                     truemotion2rt
avrp                    mp3adu                  truespeech
avs                     mp3adufloat             tscc
avui                    mp3float                tscc2
ayuv                    mp3on4                  tta
bethsoftvid             mp3on4float             twinvq
bfi                     mpc7                    txd
bink                    mpc8                    ulti
binkaudio_dct           mpeg1_cuvid             utvideo
binkaudio_rdft          mpeg1_v4l2m2m           v210
bintext                 mpeg1video              v210x
bitpacked               mpeg2_cuvid             v308
bmp                     mpeg2_v4l2m2m           v408
bmv_audio               mpeg2video              v410
bmv_video               mpeg4                   vb
bonk                    mpeg4_cuvid             vble
brender_pix             mpeg4_v4l2m2m           vbn
c93                     mpegvideo               vc1
cavs                    mpl2                    vc1_cuvid
cbd2_dpcm               msa1                    vc1_v4l2m2m
ccaption                mscc                    vc1image
cdgraphics              msmpeg4v1               vcr1
cdtoons                 msmpeg4v2               vmdaudio
cdxl                    msmpeg4v3               vmdvideo
cfhd                    msnsiren                vmnc
cinepak                 msp2                    vnull
clearvideo              msrle                   vorbis
cljr                    mss1                    vp3
cllc                    mss2                    vp4
comfortnoise            msvideo1                vp5
cook                    mszh                    vp6
cpia                    mts2                    vp6a
cri                     mv30                    vp6f
cscd                    mvc1                    vp7
cyuv                    mvc2                    vp8
dca                     mvdv                    vp8_cuvid
dds                     mvha                    vp8_v4l2m2m
derf_dpcm               mwsc                    vp9
dfa                     mxpeg                   vp9_cuvid
dfpwm                   nellymoser              vp9_v4l2m2m
dirac                   notchlc                 vplayer
dnxhd                   nuv                     vqa
dolby_e                 on2avc                  vqc
dpx                     opus                    wady_dpcm
dsd_lsbf                paf_audio               wavarc
dsd_lsbf_planar         paf_video               wavpack
dsd_msbf                pam                     wbmp
dsd_msbf_planar         pbm                     wcmv
dsicinaudio             pcm_alaw                webp
dsicinvideo             pcm_bluray              webvtt
dss_sp                  pcm_dvd                 wmalossless
dst                     pcm_f16le               wmapro
dvaudio                 pcm_f24le               wmav1
dvbsub                  pcm_f32be               wmav2
dvdsub                  pcm_f32le               wmavoice
dvvideo                 pcm_f64be               wmv1
dxa                     pcm_f64le               wmv2
dxtory                  pcm_lxf                 wmv3
dxv                     pcm_mulaw               wmv3image
eac3                    pcm_s16be               wnv1
eacmv                   pcm_s16be_planar        wrapped_avframe
eamad                   pcm_s16le               ws_snd1
eatgq                   pcm_s16le_planar        xan_dpcm
eatgv                   pcm_s24be               xan_wc3
eatqi                   pcm_s24daud             xan_wc4
eightbps                pcm_s24le               xbin
eightsvx_exp            pcm_s24le_planar        xbm
eightsvx_fib            pcm_s32be               xface
escape124               pcm_s32le               xl
escape130               pcm_s32le_planar        xma1
evrc                    pcm_s64be               xma2
exr                     pcm_s64le               xpm
fastaudio               pcm_s8                  xsub
ffv1                    pcm_s8_planar           xwd
ffvhuff                 pcm_sga                 y41p
ffwavesynth             pcm_u16be               ylc
fic                     pcm_u16le               yop
fits                    pcm_u24be               yuv4
flac                    pcm_u24le               zero12v
flashsv                 pcm_u32be               zerocodec
flashsv2                pcm_u32le               zlib
flic                    pcm_u8                  zmbv
flv                     pcm_vidc

Enabled encoders:
a64multi                hevc_vaapi              pcm_vidc
a64multi5               huffyuv                 pcx
aac                     jpeg2000                pfm
ac3                     jpegls                  pgm
ac3_fixed               libaom_av1              pgmyuv
adpcm_adx               libfdk_aac              phm
adpcm_argo              libmp3lame              png
adpcm_g722              libopencore_amrnb       ppm
adpcm_g726              libopus                 prores
adpcm_g726le            libsvtav1               prores_aw
adpcm_ima_alp           libtheora               prores_ks
adpcm_ima_amv           libvorbis               qoi
adpcm_ima_apm           libvpx_vp8              qtrle
adpcm_ima_qt            libvpx_vp9              r10k
adpcm_ima_ssi           libwebp                 r210
adpcm_ima_wav           libwebp_anim            ra_144
adpcm_ima_ws            libx264                 rawvideo
adpcm_ms                libx264rgb              roq
adpcm_swf               libx265                 roq_dpcm
adpcm_yamaha            libxvid                 rpza
alac                    ljpeg                   rv10
alias_pix               magicyuv                rv20
amv                     mjpeg                   s302m
anull                   mjpeg_vaapi             sbc
apng                    mlp                     sgi
aptx                    movtext                 smc
aptx_hd                 mp2                     snow
ass                     mp2fixed                sonic
asv1                    mpeg1video              sonic_ls
asv2                    mpeg2_vaapi             speedhq
av1_amf                 mpeg2video              srt
avrp                    mpeg4                   ssa
avui                    mpeg4_v4l2m2m           subrip
ayuv                    msmpeg4v2               sunrast
bitpacked               msmpeg4v3               svq1
bmp                     msvideo1                targa
cfhd                    nellymoser              text
cinepak                 opus                    tiff
cljr                    pam                     truehd
comfortnoise            pbm                     tta
dca                     pcm_alaw                ttml
dfpwm                   pcm_bluray              utvideo
dnxhd                   pcm_dvd                 v210
dpx                     pcm_f32be               v308
dvbsub                  pcm_f32le               v408
dvdsub                  pcm_f64be               v410
dvvideo                 pcm_f64le               vbn
eac3                    pcm_mulaw               vc2
exr                     pcm_s16be               vnull
ffv1                    pcm_s16be_planar        vorbis
ffvhuff                 pcm_s16le               vp8_v4l2m2m
fits                    pcm_s16le_planar        vp8_vaapi
flac                    pcm_s24be               vp9_vaapi
flashsv                 pcm_s24daud             wavpack
flashsv2                pcm_s24le               wbmp
flv                     pcm_s24le_planar        webvtt
g723_1                  pcm_s32be               wmav1
gif                     pcm_s32le               wmav2
h261                    pcm_s32le_planar        wmv1
h263                    pcm_s64be               wmv2
h263_v4l2m2m            pcm_s64le               wrapped_avframe
h263p                   pcm_s8                  xbm
h264_amf                pcm_s8_planar           xface
h264_nvenc              pcm_u16be               xsub
h264_v4l2m2m            pcm_u16le               xwd
h264_vaapi              pcm_u24be               y41p
hdr                     pcm_u24le               yuv4
hevc_amf                pcm_u32be               zlib
hevc_nvenc              pcm_u32le               zmbv
hevc_v4l2m2m            pcm_u8

Enabled hwaccels:
av1_nvdec               mjpeg_vaapi             vp8_nvdec
av1_vaapi               mpeg1_nvdec             vp8_vaapi
h263_vaapi              mpeg2_nvdec             vp9_nvdec
h264_nvdec              mpeg2_vaapi             vp9_vaapi
h264_vaapi              mpeg4_nvdec             wmv3_nvdec
hevc_nvdec              mpeg4_vaapi             wmv3_vaapi
hevc_vaapi              vc1_nvdec
mjpeg_nvdec             vc1_vaapi

Enabled parsers:
aac                     dvdsub                  opus
aac_latm                flac                    png
ac3                     ftr                     pnm
adx                     g723_1                  qoi
amr                     g729                    rv30
av1                     gif                     rv40
avs2                    gsm                     sbc
avs3                    h261                    sipr
bmp                     h263                    tak
cavsvideo               h264                    vc1
cook                    hdr                     vorbis
cri                     hevc                    vp3
dca                     ipu                     vp8
dirac                   jpeg2000                vp9
dnxhd                   misc4                   webp
dolby_e                 mjpeg                   xbm
dpx                     mlp                     xma
dvaudio                 mpeg4video              xwd
dvbsub                  mpegaudio
dvd_nav                 mpegvideo

Enabled demuxers:
aa                      idf                     pcm_s16be
aac                     iff                     pcm_s16le
aax                     ifv                     pcm_s24be
ac3                     ilbc                    pcm_s24le
ace                     image2                  pcm_s32be
acm                     image2_alias_pix        pcm_s32le
act                     image2_brender_pix      pcm_s8
adf                     image2pipe              pcm_u16be
adp                     image_bmp_pipe          pcm_u16le
ads                     image_cri_pipe          pcm_u24be
adx                     image_dds_pipe          pcm_u24le
aea                     image_dpx_pipe          pcm_u32be
afc                     image_exr_pipe          pcm_u32le
aiff                    image_gem_pipe          pcm_u8
aix                     image_gif_pipe          pcm_vidc
alp                     image_hdr_pipe          pjs
amr                     image_j2k_pipe          pmp
amrnb                   image_jpeg_pipe         pp_bnk
amrwb                   image_jpegls_pipe       pva
anm                     image_jpegxl_pipe       pvf
apac                    image_pam_pipe          qcp
apc                     image_pbm_pipe          r3d
ape                     image_pcx_pipe          rawvideo
apm                     image_pfm_pipe          realtext
apng                    image_pgm_pipe          redspark
aptx                    image_pgmyuv_pipe       rka
aptx_hd                 image_pgx_pipe          rl2
aqtitle                 image_phm_pipe          rm
argo_asf                image_photocd_pipe      roq
argo_brp                image_pictor_pipe       rpl
argo_cvg                image_png_pipe          rsd
asf                     image_ppm_pipe          rso
asf_o                   image_psd_pipe          rtp
ass                     image_qdraw_pipe        rtsp
ast                     image_qoi_pipe          s337m
au                      image_sgi_pipe          sami
av1                     image_sunrast_pipe      sap
avi                     image_svg_pipe          sbc
avr                     image_tiff_pipe         sbg
avs                     image_vbn_pipe          scc
avs2                    image_webp_pipe         scd
avs3                    image_xbm_pipe          sdns
bethsoftvid             image_xpm_pipe          sdp
bfi                     image_xwd_pipe          sdr2
bfstm                   ingenient               sds
bink                    ipmovie                 sdx
binka                   ipu                     segafilm
bintext                 ircam                   ser
bit                     iss                     sga
bitpacked               iv8                     shorten
bmv                     ivf                     siff
boa                     ivr                     simbiosis_imx
bonk                    jacosub                 sln
brstm                   jv                      smacker
c93                     kux                     smjpeg
caf                     kvag                    smush
cavsvideo               laf                     sol
cdg                     live_flv                sox
cdxl                    lmlm4                   spdif
cine                    loas                    srt
codec2                  lrc                     stl
codec2raw               luodat                  str
concat                  lvf                     subviewer
data                    lxf                     subviewer1
daud                    m4v                     sup
dcstr                   matroska                svag
derf                    mca                     svs
dfa                     mcc                     swf
dfpwm                   mgsts                   tak
dhav                    microdvd                tedcaptions
dirac                   mjpeg                   thp
dnxhd                   mjpeg_2000              threedostr
dsf                     mlp                     tiertexseq
dsicin                  mlv                     tmv
dss                     mm                      truehd
dts                     mmf                     tta
dtshd                   mods                    tty
dv                      moflex                  txd
dvbsub                  mov                     ty
dvbtxt                  mp3                     v210
dxa                     mpc                     v210x
ea                      mpc8                    vag
ea_cdata                mpegps                  vc1
eac3                    mpegts                  vc1t
epaf                    mpegtsraw               vividas
ffmetadata              mpegvideo               vivo
filmstrip               mpjpeg                  vmd
fits                    mpl2                    vobsub
flac                    mpsub                   voc
flic                    msf                     vpk
flv                     msnwc_tcp               vplayer
fourxm                  msp                     vqf
frm                     mtaf                    w64
fsb                     mtv                     wady
fwse                    musx                    wav
g722                    mv                      wavarc
g723_1                  mvi                     wc3
g726                    mxf                     webm_dash_manifest
g726le                  mxg                     webvtt
g729                    nc                      wsaud
gdv                     nistsphere              wsd
genh                    nsp                     wsvqa
gif                     nsv                     wtv
gsm                     nut                     wv
gxf                     nuv                     wve
h261                    obu                     xa
h263                    ogg                     xbin
h264                    oma                     xmd
hca                     paf                     xmv
hcom                    pcm_alaw                xvag
hevc                    pcm_f32be               xwma
hls                     pcm_f32le               yop
hnm                     pcm_f64be               yuv4mpegpipe
ico                     pcm_f64le
idcin                   pcm_mulaw

Enabled muxers:
a64                     h263                    pcm_s16le
ac3                     h264                    pcm_s24be
adts                    hash                    pcm_s24le
adx                     hds                     pcm_s32be
aiff                    hevc                    pcm_s32le
alp                     hls                     pcm_s8
amr                     ico                     pcm_u16be
amv                     ilbc                    pcm_u16le
apm                     image2                  pcm_u24be
apng                    image2pipe              pcm_u24le
aptx                    ipod                    pcm_u32be
aptx_hd                 ircam                   pcm_u32le
argo_asf                ismv                    pcm_u8
argo_cvg                ivf                     pcm_vidc
asf                     jacosub                 psp
asf_stream              kvag                    rawvideo
ass                     latm                    rm
ast                     lrc                     roq
au                      m4v                     rso
avi                     matroska                rtp
avif                    matroska_audio          rtp_mpegts
avm2                    md5                     rtsp
avs2                    microdvd                sap
avs3                    mjpeg                   sbc
bit                     mkvtimestamp_v2         scc
caf                     mlp                     segafilm
cavsvideo               mmf                     segment
codec2                  mov                     smjpeg
codec2raw               mp2                     smoothstreaming
crc                     mp3                     sox
dash                    mp4                     spdif
data                    mpeg1system             spx
daud                    mpeg1vcd                srt
dfpwm                   mpeg1video              stream_segment
dirac                   mpeg2dvd                streamhash
dnxhd                   mpeg2svcd               sup
dts                     mpeg2video              swf
dv                      mpeg2vob                tee
eac3                    mpegts                  tg2
f4v                     mpjpeg                  tgp
ffmetadata              mxf                     truehd
fifo                    mxf_d10                 tta
fifo_test               mxf_opatom              ttml
filmstrip               null                    uncodedframecrc
fits                    nut                     vc1
flac                    obu                     vc1t
flv                     oga                     voc
framecrc                ogg                     w64
framehash               ogv                     wav
framemd5                oma                     webm
g722                    opus                    webm_chunk
g723_1                  pcm_alaw                webm_dash_manifest
g726                    pcm_f32be               webp
g726le                  pcm_f32le               webvtt
gif                     pcm_f64be               wsaud
gsm                     pcm_f64le               wtv
gxf                     pcm_mulaw               wv
h261                    pcm_s16be               yuv4mpegpipe

Enabled protocols:
async                   http                    rtmpe
cache                   httpproxy               rtmps
concat                  https                   rtmpt
concatf                 icecast                 rtmpte
crypto                  ipfs_gateway            rtmpts
data                    ipns_gateway            rtp
fd                      libsrt                  srtp
ffrtmpcrypt             libzmq                  subfile
ffrtmphttp              md5                     tcp
file                    mmsh                    tee
ftp                     mmst                    tls
gopher                  pipe                    udp
gophers                 prompeg                 udplite
hls                     rtmp                    unix

Enabled filters:
a3dscope                dblur                   palettegen
abench                  dcshift                 paletteuse
abitscope               dctdnoiz                pan
acompressor             deband                  perms
acontrast               deblock                 perspective
acopy                   decimate                phase
acrossfade              deconvolve              photosensitivity
acrossover              dedot                   pixdesctest
acrusher                deesser                 pixelize
acue                    deflate                 pixscope
addroi                  deflicker               pp
adeclick                deinterlace_vaapi       pp7
adeclip                 dejudder                premultiply
adecorrelate            delogo                  prewitt
adelay                  denoise_vaapi           procamp_vaapi
adenorm                 derain                  pseudocolor
aderivative             deshake                 psnr
adrawgraph              despill                 pullup
adrc                    detelecine              qp
adynamicequalizer       dialoguenhance          random
adynamicsmooth          dilation                readeia608
aecho                   displace                readvitc
aemphasis               dnn_classify            realtime
aeval                   dnn_detect              remap
aevalsrc                dnn_processing          removegrain
aexciter                doubleweave             removelogo
afade                   drawbox                 repeatfields
afdelaysrc              drawgraph               replaygain
afftdn                  drawgrid                reverse
afftfilt                drawtext                rgbashift
afifo                   drmeter                 rgbtestsrc
afir                    dynaudnorm              roberts
afirsrc                 earwax                  rotate
aformat                 ebur128                 sab
afreqshift              edgedetect              scale
afwtdn                  elbg                    scale2ref
agate                   entropy                 scale2ref_npp
agraphmonitor           epx                     scale_cuda
ahistogram              eq                      scale_npp
aiir                    equalizer               scale_vaapi
aintegral               erosion                 scdet
ainterleave             estdif                  scharr
alatency                exposure                scroll
alimiter                extractplanes           segment
allpass                 extrastereo             select
allrgb                  fade                    selectivecolor
allyuv                  feedback                sendcmd
aloop                   fftdnoiz                separatefields
alphaextract            fftfilt                 setdar
alphamerge              field                   setfield
amerge                  fieldhint               setparams
ametadata               fieldmatch              setpts
amix                    fieldorder              setrange
amovie                  fifo                    setsar
amplify                 fillborders             settb
amultiply               find_rect               sharpen_npp
anequalizer             firequalizer            sharpness_vaapi
anlmdn                  flanger                 shear
anlmf                   floodfill               showcqt
anlms                   format                  showcwt
anoisesrc               fps                     showfreqs
anull                   framepack               showinfo
anullsink               framerate               showpalette
anullsrc                framestep               showspatial
apad                    freezedetect            showspectrum
aperms                  freezeframes            showspectrumpic
aphasemeter             fspp                    showvolume
aphaser                 gblur                   showwaves
aphaseshift             geq                     showwavespic
apsyclip                gradfun                 shuffleframes
apulsator               gradients               shufflepixels
arealtime               graphmonitor            shuffleplanes
aresample               grayworld               sidechaincompress
areverse                greyedge                sidechaingate
arnndn                  guided                  sidedata
asdr                    haas                    sierpinski
asegment                haldclut                signalstats
aselect                 haldclutsrc             signature
asendcmd                hdcd                    silencedetect
asetnsamples            headphone               silenceremove
asetpts                 hflip                   sinc
asetrate                highpass                sine
asettb                  highshelf               siti
ashowinfo               hilbert                 smartblur
asidedata               histeq                  smptebars
asoftclip               histogram               smptehdbars
aspectralstats          hqdn3d                  sobel
asplit                  hqx                     spectrumsynth
astats                  hstack                  speechnorm
astreamselect           hstack_vaapi            split
asubboost               hsvhold                 spp
asubcut                 hsvkey                  sr
asupercut               hue                     ssim
asuperpass              huesaturation           ssim360
asuperstop              hwdownload              stereo3d
atadenoise              hwmap                   stereotools
atempo                  hwupload                stereowiden
atilt                   hwupload_cuda           streamselect
atrim                   hysteresis              super2xsai
avectorscope            identity                superequalizer
avgblur                 idet                    surround
avsynctest              il                      swaprect
axcorrelate             inflate                 swapuv
azmq                    interlace               tblend
backgroundkey           interleave              telecine
bandpass                join                    testsrc
bandreject              kerndeint               testsrc2
bass                    kirsch                  thistogram
bbox                    lagfun                  threshold
bench                   latency                 thumbnail
bilateral               lenscorrection          thumbnail_cuda
bilateral_cuda          life                    tile
biquad                  limitdiff               tiltshelf
bitplanenoise           limiter                 tinterlace
blackdetect             loop                    tlut2
blackframe              loudnorm                tmedian
blend                   lowpass                 tmidequalizer
blockdetect             lowshelf                tmix
blurdetect              lumakey                 tonemap
bm3d                    lut                     tonemap_vaapi
boxblur                 lut1d                   tpad
bwdif                   lut2                    transpose
cas                     lut3d                   transpose_npp
cellauto                lutrgb                  transpose_vaapi
channelmap              lutyuv                  treble
channelsplit            lv2                     tremolo
chorus                  mandelbrot              trim
chromahold              maskedclamp             unpremultiply
chromakey               maskedmax               unsharp
chromakey_cuda          maskedmerge             untile
chromanr                maskedmin               v360
chromashift             maskedthreshold         vaguedenoiser
ciescope                maskfun                 varblur
codecview               mcompand                vectorscope
color                   median                  vflip
colorbalance            mergeplanes             vfrdet
colorchannelmixer       mestimate               vibrance
colorchart              metadata                vibrato
colorcontrast           midequalizer            vidstabdetect
colorcorrect            minterpolate            vidstabtransform
colorhold               mix                     vif
colorize                monochrome              vignette
colorkey                morpho                  virtualbass
colorlevels             movie                   vmafmotion
colormap                mpdecimate              volume
colormatrix             mptestsrc               volumedetect
colorspace              msad                    vstack
colorspace_cuda         multiply                vstack_vaapi
colorspectrum           negate                  w3fdif
colortemperature        nlmeans                 waveform
compand                 nnedi                   weave
compensationdelay       noformat                xbr
concat                  noise                   xcorrelate
convolution             normalize               xfade
convolve                null                    xmedian
copy                    nullsink                xstack
corr                    nullsrc                 xstack_vaapi
cover_rect              oscilloscope            yadif
crop                    overlay                 yadif_cuda
cropdetect              overlay_cuda            yaepblur
crossfeed               overlay_vaapi           yuvtestsrc
crystalizer             owdenoise               zmq
cue                     pad                     zoompan
curves                  pal100bars              zscale
datascope               pal75bars

Enabled bsfs:
aac_adtstoasc           h264_redundant_pps      opus_metadata
av1_frame_merge         hapqa_extract           pcm_rechunk
av1_frame_split         hevc_metadata           pgs_frame_merge
av1_metadata            hevc_mp4toannexb        prores_metadata
chomp                   imx_dump_header         remove_extradata
dca_core                media100_to_mjpegb      setts
dts2pts                 mjpeg2jpeg              text2movsub
dump_extradata          mjpega_dump_header      trace_headers
dv_error_marker         mov2textsub             truehd_core
eac3_core               mp3_header_decompress   vp9_metadata
extract_extradata       mpeg2_metadata          vp9_raw_reorder
filter_units            mpeg4_unpack_bframes    vp9_superframe
h264_metadata           noise                   vp9_superframe_split
h264_mp4toannexb        null

Enabled indevs:
fbdev                   oss
lavfi                   v4l2

Enabled outdevs:
fbdev                   sdl2
oss                     v4l2

License: nonfree and unredistributable
$ make -j 12
$ make install

Building done. The following binaries can be found here:
- ffmpeg: /app/workspace/bin/ffmpeg
- ffprobe: /app/workspace/bin/ffprobe
- ffplay: /app/workspace/bin/ffplay

Install these binaries to your /usr/local/bin folder? Existing binaries will be replaced. [Y/n] y
Password:
Done. FFmpeg is now installed to your system.

Other Projects Of Mine

ffmpeg-build-script's People

Contributors

akashisn avatar barberio avatar cdgriffith avatar chebum avatar dandelionred avatar danielrobertappel avatar fdintino avatar fpm-peter avatar gorgarp avatar jasonblewis avatar jjherman avatar jtbr avatar koflin avatar markus-perl avatar matyo91 avatar mirabis avatar mliradelc avatar mrienstra avatar nabe-abk avatar rokibhasansagar avatar rsnk96 avatar rtgoodwin avatar ryfow avatar s4njee avatar scgreenhalgh avatar seniorbook avatar thesp1der avatar useafterfree avatar viasatfinn avatar xosrov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ffmpeg-build-script's Issues

Issue during building SRT

The script exit on building SRT
I did a common install on Ubuntu Focal Fossa.

building srt
=======================
Downloading https://github.com/Haivision/srt/archive/v1.4.1.tar.gz
... Done
$ ./configure --prefix=/root/ffmpeg-build-script/workspace --disable-shared --enable-static
./build-ffmpeg: ./configure: /usr/bin/tclsh: bad interpreter: No such file or directory

Failed to Execute ./configure --prefix=/root/ffmpeg-build-script/workspace --disable-shared --enable-static

I've tried to cleanup then try again but the same issue occured.
What's wrong ? Thanks

x264 package failed to compile

Updated the May x264 package with Oct 7 and ffmpeg-build continues past x264 correctly.

download "http://ftp.videolan.org/pub/x264/snapshots/x264-snapshot-20181007-2245.tar.bz2" "last_x264.tar.bz2"

FFMPEG can also be updated to 4.0.2.
Compiles, thank you for this capability.

Not Static at all :(

Hi Markus,

I just realized that the script doesn't make a pure static ffmpeg binary, if you run ldd {folder}/ffmpeg you will get:

        linux-vdso.so.1 =>  (0x00007ffe82f71000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fe9d8dcf000)
        libnppig.so.11 => /usr/local/cuda/lib64/libnppig.so.11 (0x00007fe9d721a000)
        libnppicc.so.11 => /usr/local/cuda/lib64/libnppicc.so.11 (0x00007fe9d6b71000)
        libnppidei.so.11 => /usr/local/cuda/lib64/libnppidei.so.11 (0x00007fe9d61ca000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fe9d5fc6000)
        libz.so.1 => /lib64/libz.so.1 (0x00007fe9d5db0000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe9d5b94000)
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fe9d588d000)
        librt.so.1 => /lib64/librt.so.1 (0x00007fe9d5685000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fe9d52b7000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fe9d90d1000)
        libnppc.so.11 => /usr/local/cuda/lib64/libnppc.so.11 (0x00007fe9d5036000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fe9d4e20000)

Besides the cuda libraries (That are the ones that look for the drivers), I can't manage to put all the libraries static.

If I run the most simple ffmpeg build command

./configure \
    --pkgconfigdir="$WORKSPACE/lib/pkgconfig " \
    --prefix="${WORKSPACE}" \
    --pkg-config-flags="--static" \
    --extra-cflags="$CFLAGS" \
    --extra-ldflags="$LDFLAGS" \
    --enable-static \
    --disable-shared

You still get shared libraries:

        linux-vdso.so.1 =>  (0x00007ffff5d71000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fa5a924b000)
        libbz2.so.1 => /lib64/libbz2.so.1 (0x00007fa5a903b000)
        libz.so.1 => /lib64/libz.so.1 (0x00007fa5a8e25000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa5a8c09000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fa5a883b000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fa5a954d000)

I saw another builds and ldd shows "No shared libraries" message when you eval with ldd

What can cause this?

build() won't detect version change

..add version to .done file?

diff --git a/build-ffmpeg b/build-ffmpeg
index 800cef0..4b8ea94 100755
--- a/build-ffmpeg
+++ b/build-ffmpeg
@@ -112,11 +112,11 @@ execute () {
 
 build () {
 	echo ""
-	echo "building $1"
+	echo "building $1:$2"
 	echo "======================="
 
-	if [ -f "$PACKAGES/$1.done" ]; then
-		echo "$1 already built. Remove $PACKAGES/$1.done lockfile to rebuild it."
+	if [ -f "$PACKAGES/$1-$2.done" ]; then
+		echo "$1-$2 already built. Remove $PACKAGES/$1-$2.done lockfile to rebuild it."
 		return 1
 	fi
 
@@ -133,7 +133,7 @@ command_exists() {
 
 
 build_done () {
-	touch "$PACKAGES/$1.done"
+	touch "$PACKAGES/$1-$2.done"
 }
 
 cleanup () {
@@ -227,12 +227,13 @@ fi
 ## build tools
 ##
 
-if build "yasm"; then
-	download "https://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz"
+YASM_VERSION="1.3.0"
+if build "yasm" $YASM_VERSION; then
+	download "https://www.tortall.net/projects/yasm/releases/yasm-${YASM_VERSION}.tar.gz"
 	execute ./configure --prefix="${WORKSPACE}"
 	execute make -j $MJOBS
 	execute make install
-	build_done "yasm"
+	build_done "yasm" $YASM_VERSION
 fi
 
 if build "nasm"; then

Zlib is linked dynamically

Current version of the build script links zlib dynamically. Final executable gets a hard reference to ffmpeg-build-script/workspace/lib/libz.1.dylib.

Error while running on Ubuntu

rm -f libx264.a
gcc-ar rc libx264.a common/mc.o common/predict.o common/pixel.o common/macroblock.o common/frame.o common/dct.o common/cpu.o common/cabac.o common/common.o common/
osdep.o common/rectangle.o common/set.o common/quant.o common/deblock.o common/vlc.o common/mvpred.o common/bitstream.o encoder/analyse.o encoder/me.o encoder/ratec
ontrol.o encoder/set.o encoder/macroblock.o encoder/cabac.o encoder/cavlc.o encoder/encoder.o encoder/lookahead.o common/threadpool.o common/x86/mc-c.o common/x86/p
redict-c.o common/opencl.o encoder/slicetype-cl.o common/x86/const-a.o common/x86/cabac-a.o common/x86/dct-a.o common/x86/deblock-a.o common/x86/mc-a.o common/x86/m
c-a2.o common/x86/pixel-a.o common/x86/predict-a.o common/x86/quant-a.o common/x86/cpu-a.o common/x86/dct-64.o common/x86/bitstream-a.o common/x86/sad-a.o common/x8
6/trellis-64.o
gcc-ranlib libx264.a
gcc -o x264 x264.o input/input.o input/timecode.o input/raw.o input/y4m.o output/raw.o output/matroska.o output/matroska_ebml.o output/flv.o output/flv_bytestream.
o filters/filters.o filters/video/video.o filters/video/source.o filters/video/internal.o filters/video/resize.o filters/video/cache.o filters/video/fix_vfr_pts.o f
ilters/video/select_every.o filters/video/crop.o filters/video/depth.o input/avs.o input/thread.o libx264.a -ldl -m64 -lm -lpthread -ldl
/usr/bin/ld: libx264.a(cabac-a.o): relocation R_X86_64_32 against symbol x264_cabac_range_lps' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: libx264.a(quant-a.o): relocation R_X86_64_32 against hidden symbol x264_pb_01' can not be used when making a shared object
/usr/bin/ld: libx264.a(dct-a.o): relocation R_X86_64_32 against hidden symbol x264_pw_8000' can not be used when making a shared object /usr/bin/ld: libx264.a(deblock-a.o): relocation R_X86_64_32 against hidden symbol x264_pb_1' can not be used when making a shared object
/usr/bin/ld: libx264.a(mc-a.o): relocation R_X86_64_32 against hidden symbol x264_pw_64' can not be used when making a shared object /usr/bin/ld: libx264.a(mc-a2.o): relocation R_X86_64_32 against hidden symbol x264_pw_32' can not be used when making a shared object
/usr/bin/ld: libx264.a(pixel-a.o): relocation R_X86_64_32 against hidden symbol x264_pw_00ff' can not be used when making a shared object /usr/bin/ld: libx264.a(predict-a.o): relocation R_X86_64_32 against hidden symbol x264_pb_1' can not be used when making a shared object
/usr/bin/ld: libx264.a(dct-64.o): relocation R_X86_64_32 against hidden symbol x264_hsub_mul' can not be used when making a shared object /usr/bin/ld: libx264.a(sad-a.o): relocation R_X86_64_32 against hidden symbol x264_pw_8' can not be used when making a shared object
/usr/bin/ld: libx264.a(trellis-64.o): relocation R_X86_64_32 against symbol `x264_cabac_entropy' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:202: recipe for target 'x264' failed
make: *** [x264] Error 1
Failed to Execute make -j 4

Decklink support?

Hi all,
Would it be possible to add --enable-decklink?
(And yes, if needed I'll sponsor it.)

Thx,
Bouke

Complie with openssl

It would be great to have openssl as well. It's used for downloading videos from https sources with ffmpeg.

Add LibSRT

Hi hi!

Still a huge fan of this script, still feels like magic :)

Was wondering if it was possible to add LibSRT officially, as it is getting more and more popular (especially for "quick, dependency-free" deploys as relay servers).

I have a patch that will compile, but it's not ideal for 2 reasons:

  1. Currently have to checkout an older git hash because of an incompatibility with released FFMPEG and deprecated calls. This can be worked around with an older commit hash, an older SRT version, or just wait for new FFMPEG (or HEAD). No biggies here. (see "patch" below). I have it as git but could of course wget the commit archive.
  2. More importantly, the SRT package doesn't seem to compile fully statically in the context of this build script. Technically what fails are the included apps, which AFAICT aren't needed at all for libsrt features, but makes me nervous. I spoke at length with the devs in Haivision/srt#1172 and the project seems to have no problem compiling statically, but I couldn't figure out what about this build script makes it such that it won't compile statically in the context of the script. Given that it is kind of the only other thing that compiles after openssl (besides FFMPEG), I wonder if there's some tweak to the openssl build needed. I tried everything I could think of. Maybe something super simple that will make sense to you all :) Issue seen on Ubuntu (presumably Deb) and Docker; seemed to work on Darwin but haven't quite pinned that down, and the remote VM use case is the point anyway.

Love to work with you on making this work!

Hacky Patch:

if build "srt"; then
        cd "$PACKAGES"
        git clone https://github.com/Haivision/srt.git
        cd srt
        git checkout 10ed37b6d4b49a3042213b029f0de6bca4bcfe83
        #sed -i -e 's/${name} ${srt_link_library})/${name} ${srt_link_library} ${WITH_EXTRALIBS})/' CMakeLists.txt
        cmake -DCMAKE_INSTALL_PREFIX:PATH="${WORKSPACE}" -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_APPS=ON -DWITH_EXTRALIBS="-lz -ldl" .
       # if you just set -DENABLE_APPS=OFF these patches aren't needed since it's the included apps that will fail to compile against static ffmpeg
        sed -i -e 's/libsrt.a -ldl -lssl -lcrypto -lpthread/libsrt.a -lssl -lcrypto -lz -ldl -lpthread/' CMakeFiles/srt-live-transmit.dir/link.txt
        sed -i -e 's/libsrt.a -ldl -lssl -lcrypto -lpthread/libsrt.a -lssl -lcrypto -lz -ldl -lpthread/' CMakeFiles/srt-tunnel.dir/link.txt
        sed -i -e 's/libsrt.a -ldl -lssl -lcrypto -lpthread/libsrt.a -lssl -lcrypto -lz -ldl -lpthread/' CMakeFiles/srt-file-transmit.dir/link.txt
        execute make -j $MJOBS
        execute make install
        build_done "srt"
fi

.... 
--enable-libsrt

MACOSX_DEPLOYMENT_TARGET

I suggest to include MACOSX_DEPLOYMENT_TARGET for macOS x86_64 target.
For example, MACOSX_DEPLOYMENT_TARGET=10.11

Not compiling pkg-config on ubuntu17.04

Ubuntu 17.04
64 bits
8 GB RAM
Procesador intel core i5 4 CPUS

Output:
make all-recursive
make[1]: Entering directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1'
Making all in glib
make[2]: Entering directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib'
make all-recursive
make[3]: Entering directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib'
Making all in .
make[4]: Entering directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib'
make[4]: Leaving directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib'
Making all in m4macros
make[4]: Entering directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib/m4macros'
make all-am
make[5]: Entering directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib/m4macros'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib/m4macros'
make[4]: Leaving directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib/m4macros'
Making all in glib
make[4]: Entering directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib/glib'
GEN glibconfig-stamp
config.status: executing glib/glibconfig.h commands
config.status: glib/glibconfig.h is unchanged
make all-recursive
make[5]: Entering directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib/glib'
Making all in libcharset
make[6]: Entering directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib/glib/libcharset'
make all-am
make[7]: Entering directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib/glib/libcharset'
make[7]: Nothing to be done for 'all-am'.
make[7]: Leaving directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib/glib/libcharset'
make[6]: Leaving directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib/glib/libcharset'
Making all in .
make[6]: Entering directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib/glib'
CC libglib_2_0_la-gdate.lo
CC libglib_2_0_la-ghostutils.lo
CC libglib_2_0_la-ghook.lo
CC libglib_2_0_la-ghmac.lo
gdate.c: In function ‘g_date_strftime’:
gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
^~~~~~
CC libglib_2_0_la-giochannel.lo
CC libglib_2_0_la-gkeyfile.lo
CC libglib_2_0_la-glib-init.lo
cc1: some warnings being treated as errors
Makefile:1387: recipe for target 'libglib_2_0_la-gdate.lo' failed
make[6]: *** [libglib_2_0_la-gdate.lo] Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: Leaving directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib/glib'
Makefile:1934: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib/glib'
Makefile:953: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib/glib'
Makefile:1046: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib'
Makefile:770: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1/glib'
Makefile:707: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/kodhe/james/projects/ffmpeg-build-script/packages/pkg-config-0.29.1'
Makefile:463: recipe for target 'all' failed
make: *** [all] Error 2

Failed to Execute make -j 4

ERROR: aom >= 1.0.0 not found using pkg-config

Under Amazon Web Services Amazon Linux AMI 2018.03 on EC2 t2.micro instance I was trying to compile ffmpeg for use with AWS Lambda.

sudo yum update -y
sudo yum groupinstall -y "Development Tools" "Development Libraries"
bash <(curl -s "https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install.sh?v1")

Command went well including "building ffmpeg ... Done" but failed after that with error

ERROR: aom >= 1.0.0 not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.

Specify deployment target?

Thank you for your awesome build script!

Tried to patch your script to be able to build ffmpeg with 10.9 target with no success.
Tried specifying

VERSION=0.7
CWD=$(pwd)
PACKAGES="$CWD/packages" 
WORKSPACE="$CWD/workspace"
CC=clang
LDFLAGS="-L${WORKSPACE}/lib -lm" 
CFLAGS="-I${WORKSPACE}/include -mmacosx-version-min=10.9"
PKG_CONFIG_PATH="${WORKSPACE}/lib/pkgconfig"

export MACOS_DEPLOYMENT_TARGET=10.9

But otool still reports current deployment target:

$ otool -l ffmpeg | grep -A 3 LC_VERSION_MIN_MACOSX
      cmd LC_VERSION_MIN_MACOSX
  cmdsize 16
  version 10.11
      sdk 10.11

What else can be done?

Add `--enable-lv2` support?

Hi,

I want to do noise suppression with ffmpeg rnnoise model, like described in this post. Can you show me how to do that, or maybe included this in your script?

If I simply included --enable-lv2 in ffmpeg configure, it shows this error:

ERROR: lilv-0 not found using pkg-config

in centos7 build pkg-config error

error:
GNU libiconv not in use but included iconv.h is from libiconv

solution: Add --with-libiconv=gnu in ./configure command .
like this:

execute ./configure --silent --prefix="${WORKSPACE}" --with-pc-path="${WORKSPACE}"/lib/pkgconfig --with-internal-glib   --with-libiconv=gnu

Build on mac has dynamic link

Hi,
The build on my MacOS 10.15 still has some dynamic link library, as following:

$ otool -L ./workspace/bin/ffmpeg

./workspace/bin/ffmpeg:
        /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1677.104.0)
        /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (compatibility version 1.0.0, current version 1000.0.0)
        /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.100.1)
        /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation (compatibility version 1.0.0, current version 2.0.0)
        /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo (compatibility version 1.2.0, current version 1.5.0)
        /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia (compatibility version 1.0.0, current version 1.0.0)
        /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics (compatibility version 64.0.0, current version 1355.22.0)
        /usr/local/opt/libxcb/lib/libxcb.1.dylib (compatibility version 3.0.0, current version 3.0.0)
        /usr/local/opt/libxau/lib/libXau.6.dylib (compatibility version 7.0.0, current version 7.0.0)
        /usr/local/opt/libxdmcp/lib/libXdmcp.6.dylib (compatibility version 7.0.0, current version 7.0.0)
        /usr/local/opt/libxcb/lib/libxcb-shm.0.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/local/opt/libxcb/lib/libxcb-shape.0.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/local/opt/libxcb/lib/libxcb-xfixes.0.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/local/opt/libxcb/lib/libxcb-render.0.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
        /System/Library/Frameworks/CoreHaptics.framework/Versions/A/CoreHaptics (compatibility version 1.0.0, current version 1.0.0, weak)
        /System/Library/Frameworks/GameController.framework/Versions/A/GameController (compatibility version 1.0.0, current version 1.0.0, weak)
        /System/Library/Frameworks/ForceFeedback.framework/Versions/A/ForceFeedback (compatibility version 1.0.0, current version 1.0.2)
        /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
        /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 23.0.0)
        /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 162.0.0)
        /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
        /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (compatibility version 1.2.0, current version 1.11.0, weak)
        /System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 212.8.0, weak)
        /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
        /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (compatibility version 1.0.1, current version 5.0.0)
        /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1894.60.100)
        /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5)
        /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 902.1.0)
        /usr/local/opt/xz/lib/liblzma.5.dylib (compatibility version 8.0.0, current version 8.5.0)
        /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox (compatibility version 1.0.0, current version 1.0.0)
        /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1677.104.0)
        /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 1069.24.0)

How can I fix this?

Failed to extract ffmpeg

When I ran this script it always broke at that part

building ffmpeg
=======================
Downloading http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
... Done
Failed to extract ffmpeg-snapshot.tar.bz2

After a little investigation it turned out that in line #309 there are 2 trailing spaces inside the quotes. After removing them it worked.

So this line

download "http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 " "ffmpeg-snapshot.tar.bz2 "

should be

download "http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2" "ffmpeg-snapshot.tar.bz2"

Thanks for sharing your script!

I build shell on macOS High sierra v10.13.3 ,I don't know what to do with it? Help me thank you

[ 42%] Building C object Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/vtls/darwinssl.c.o
/Users/qizhang/Downloads/ffmpeg-build-script-master/packages/cmake-3.11.3/Utilities/cmcurl/lib/vtls/darwinssl.c:1207:30: error: unrecognized platform name macOS
if(__builtin_available(macOS 10.13, iOS 11.0, *)) {
^
/Users/qizhang/Downloads/ffmpeg-build-script-master/packages/cmake-3.11.3/Utilities/cmcurl/lib/vtls/darwinssl.c:1207:43: error: unrecognized platform name iOS
if(__builtin_available(macOS 10.13, iOS 11.0, *)) {
^
/Users/qizhang/Downloads/ffmpeg-build-script-master/packages/cmake-3.11.3/Utilities/cmcurl/lib/vtls/darwinssl.c:1231:26: error: unrecognized platform name macOS
if(__builtin_available(macOS 10.13, iOS 11.0, *)) {
^
/Users/qizhang/Downloads/ffmpeg-build-script-master/packages/cmake-3.11.3/Utilities/cmcurl/lib/vtls/darwinssl.c:1231:39: error: unrecognized platform name iOS
if(__builtin_available(macOS 10.13, iOS 11.0, *)) {
^
/Users/qizhang/Downloads/ffmpeg-build-script-master/packages/cmake-3.11.3/Utilities/cmcurl/lib/vtls/darwinssl.c:1383:30: error: unrecognized platform name macOS
if(__builtin_available(macOS 10.13, iOS 11.0, *)) {
^
/Users/qizhang/Downloads/ffmpeg-build-script-master/packages/cmake-3.11.3/Utilities/cmcurl/lib/vtls/darwinssl.c:1383:43: error: unrecognized platform name iOS
if(__builtin_available(macOS 10.13, iOS 11.0, *)) {
^
6 errors generated.
make[2]: *** [Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/vtls/darwinssl.c.o] Error 1
make[1]: *** [Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/all] Error 2
make: *** [all] Error 2

Failed to Execute make -j 4

Missing include dir

cc1: error: [...]/ffmpeg-build-script/workspace/include: No such file or directory [-Werror=missing-include-dirs]

An mkdir of the include directory fixed it.

How to run the compiled bin from every directory ?

Hi Markus,

thank for the great work.
Since I have no experience with ffmpeg, I would like to ask the following questions:

  • is it possible to get run the compiled ffmpeg bin also on other Server with different OS like Ubuntu 18.04 or 16.04 ?
  • and can run it also from different directorys, like /home/testfolder/ffmpeg ?
  • If not, where i have need made changes in the script to get run in different OS and from a specific directory ?

Thanks in advance

Create full static binary need option

Please add option for create full static binary without system libraries dependencies.

I want to compile code on Debian and run on CentOS, but this is impossible because LibC, Libptheads and some other libs are dynamic

Look at projects https://github.com/zimbatm/ffmpeg-static - this is full static buld and I can comple this in Ubuntu and run on the CentOS.

Thank you 😊

Build on MBP M1 fails due to "undefined symbols"

Hi,

The build on my MBP M1 with MacOS 11.1 fails, due to "undefined symbols". Did I do something wrong?

Output log:

hjtriem@MBP-M1-HJ ffmpeg-build-script % ./build-ffmpeg -b
ffmpeg-build-script v1.22

Using 8 make jobs simultaneously.

building pkg-config

Downloading https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz as pkg-config-0.29.2.tar.gz
... Done
Extracted pkg-config-0.29.2.tar.gz
$ ./configure --silent --prefix=/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace --with-pc-path=/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace/lib/pkgconfig --with-internal-glib
$ make -j 8
$ make install

building lv2

Downloading https://lv2plug.in/spec/lv2-1.18.0.tar.bz2 as lv2-1.18.0.tar.bz2
... Done
Extracted lv2-1.18.0.tar.bz2
$ ./waf configure --prefix=/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace --lv2-user
$ ./waf
$ ./waf install

building waflib

Downloading https://gitlab.com/drobilla/autowaf/-/archive/cc37724b9bfa889baebd8cb10f38b8c7cab83e37/autowaf-cc37724b9bfa889baebd8cb10f38b8c7cab83e37.tar.gz as autowaf.tar.gz
... Done
Extracted autowaf.tar.gz

building serd

Downloading https://gitlab.com/drobilla/serd/-/archive/v0.30.6/serd-v0.30.6.tar.gz as serd-v0.30.6.tar.gz
... Done
Extracted serd-v0.30.6.tar.gz
$ cp -r /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Build.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/COPYING /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/ConfigSet.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Configure.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Context.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Errors.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Logs.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Node.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Options.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/README.md /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Runner.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Scripting.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Task.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/TaskGen.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Tools /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Utils.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/init.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/ansiterm.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/extras /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/fixpy2.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/processor.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/waf /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/serd-v0.30.6/waflib/
$ ./waf configure --prefix=/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace --static --no-shared --no-posix
$ ./waf
$ ./waf install

building pcre

Downloading https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz as pcre-8.44.tar.gz
... Done
Extracted pcre-8.44.tar.gz
$ ./configure --prefix=/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace --disable-shared --enable-static
$ make -j 8
$ make install

building sord

Downloading https://gitlab.com/drobilla/sord/-/archive/v0.16.6/sord-v0.16.6.tar.gz as sord-v0.16.6.tar.gz
... Done
Extracted sord-v0.16.6.tar.gz
$ cp -r /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Build.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/COPYING /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/ConfigSet.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Configure.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Context.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Errors.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Logs.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Node.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Options.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/README.md /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Runner.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Scripting.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Task.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/TaskGen.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Tools /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Utils.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/init.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/ansiterm.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/extras /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/fixpy2.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/processor.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/waf /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/sord-v0.16.6/waflib/
$ ./waf configure --prefix=/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace CFLAGS=-I/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace/include --static --no-shared --no-utils
$ ./waf CFLAGS=-I/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace/include
$ ./waf install

building sratom

Downloading https://gitlab.com/lv2/sratom/-/archive/v0.6.6/sratom-v0.6.6.tar.gz as sratom-v0.6.6.tar.gz
... Done
Extracted sratom-v0.6.6.tar.gz
$ cp -r /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Build.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/COPYING /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/ConfigSet.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Configure.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Context.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Errors.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Logs.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Node.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Options.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/README.md /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Runner.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Scripting.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Task.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/TaskGen.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Tools /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Utils.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/init.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/ansiterm.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/extras /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/fixpy2.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/processor.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/waf /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/sratom-v0.6.6/waflib/
$ ./waf configure --prefix=/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace --static --no-shared
$ ./waf
$ ./waf install

building lilv

Downloading https://gitlab.com/lv2/lilv/-/archive/v0.24.10/lilv-v0.24.10.tar.gz as lilv-v0.24.10.tar.gz
... Done
Extracted lilv-v0.24.10.tar.gz
$ cp -r /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Build.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/COPYING /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/ConfigSet.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Configure.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Context.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Errors.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Logs.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Node.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Options.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/README.md /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Runner.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Scripting.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Task.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/TaskGen.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Tools /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/Utils.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/init.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/ansiterm.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/extras /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/fixpy2.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/processor.py /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/autowaf/waf /Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/lilv-v0.24.10/waflib/
$ ./waf configure --prefix=/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace --static --no-shared --no-utils
$ ./waf
$ ./waf install

building yasm

Downloading https://github.com/yasm/yasm/releases/download/v1.3.0/yasm-1.3.0.tar.gz as yasm-1.3.0.tar.gz
... Done
Extracted yasm-1.3.0.tar.gz
$ ./configure --prefix=/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace
$ make -j 8
$ make install

building nasm

Downloading https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.xz as nasm-2.15.05.tar.xz
... Done
Extracted nasm-2.15.05.tar.xz
$ ./configure --prefix=/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace --disable-shared --enable-static
$ make -j 8
$ make install

building zlib

Downloading https://www.zlib.net/zlib-1.2.11.tar.gz as zlib-1.2.11.tar.gz
... Done
Extracted zlib-1.2.11.tar.gz
$ ./configure --static --prefix=/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace
$ make -j 8
$ make install

building openssl

Downloading https://www.openssl.org/source/openssl-1.1.1i.tar.gz as openssl-1.1.1i.tar.gz
... Done
Extracted openssl-1.1.1i.tar.gz
$ ./configure --prefix=/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace no-shared no-asm darwin64-arm64-cc
$ make -j 8
$ make install_sw

building cmake

Downloading https://cmake.org/files/v3.18/cmake-3.18.4.tar.gz as cmake-3.18.4.tar.gz
... Done
Extracted cmake-3.18.4.tar.gz
$ ./configure --prefix=/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace --system-zlib
$ make -j 8
$ make install

building svtav1

Downloading https://github.com/AOMediaCodec/SVT-AV1/archive/v0.8.6.tar.gz as v0.8.6.tar.gz
... Done
Extracted v0.8.6.tar.gz
$ cmake -DCMAKE_INSTALL_PREFIX=/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/workspace -DENABLE_SHARED=off -DBUILD_SHARED_LIBS=OFF ../.. -GUnix Makefiles -DCMAKE_BUILD_TYPE=Release
$ make -j 8
Scanning dependencies of target safestringlib
Scanning dependencies of target clog
Scanning dependencies of target EbVersionHeaderGen
Scanning dependencies of target COMMON_C_DEFAULT
Scanning dependencies of target FASTFEAT
[ 1%] Building C object third_party/safestringlib/CMakeFiles/safestringlib.dir///dummy.c.o
[ 2%] Generating version header
[ 3%] Building C object third_party/cpuinfo/deps/clog/CMakeFiles/clog.dir/src/clog.c.o
Scanning dependencies of target ENCODER_C_DEFAULT
[ 3%] Building C object Source/Lib/Common/C_DEFAULT/CMakeFiles/COMMON_C_DEFAULT.dir/EbBlend_a64_mask_c.c.o
[ 3%] Building C object third_party/fastfeat/CMakeFiles/FASTFEAT.dir/fast.c.o
[ 3%] Building C object Source/Lib/Encoder/C_DEFAULT/CMakeFiles/ENCODER_C_DEFAULT.dir/EbComputeSAD_C.c.o
Scanning dependencies of target COMMON_CODEC
[ 3%] Building C object third_party/safestringlib/CMakeFiles/safestringlib.dir/safe_str_constraint.c.o
[ 3%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbBitstreamUnit.c.o
[ 4%] Building C object third_party/fastfeat/CMakeFiles/FASTFEAT.dir/fast_9.c.o
[ 4%] Built target EbVersionHeaderGen
[ 5%] Building C object Source/Lib/Common/C_DEFAULT/CMakeFiles/COMMON_C_DEFAULT.dir/EbInterPrediction_c.c.o
[ 6%] Building C object Source/Lib/Common/C_DEFAULT/CMakeFiles/COMMON_C_DEFAULT.dir/EbIntraPrediction_c.c.o
[ 6%] Built target clog
[ 7%] Building C object third_party/safestringlib/CMakeFiles/safestringlib.dir/ignore_handler_s.c.o
Scanning dependencies of target cpuinfo
[ 7%] Building C object third_party/cpuinfo/CMakeFiles/cpuinfo.dir/src/init.c.o
[ 8%] Building C object Source/Lib/Encoder/C_DEFAULT/CMakeFiles/ENCODER_C_DEFAULT.dir/EbComputeVariance_C.c.o
[ 8%] Building C object third_party/safestringlib/CMakeFiles/safestringlib.dir/strcpy_s.c.o
[ 9%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbBlend_a64_mask.c.o
[ 9%] Building C object Source/Lib/Common/C_DEFAULT/CMakeFiles/COMMON_C_DEFAULT.dir/EbPackUnPack_C.c.o
Scanning dependencies of target ENCODER_CODEC
[ 10%] Building C object third_party/cpuinfo/CMakeFiles/cpuinfo.dir/src/api.c.o
[ 10%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbAdaptiveMotionVectorPrediction.c.o
[ 11%] Building C object third_party/safestringlib/CMakeFiles/safestringlib.dir/strncpy_s.c.o
[ 11%] Built target cpuinfo
[ 11%] Building C object third_party/fastfeat/CMakeFiles/FASTFEAT.dir/nonmax.c.o
[ 12%] Building C object third_party/safestringlib/CMakeFiles/safestringlib.dir/strnlen_s.c.o
[ 13%] Building C object Source/Lib/Common/C_DEFAULT/CMakeFiles/COMMON_C_DEFAULT.dir/EbPictureOperators_C.c.o
Scanning dependencies of target ENCODER_GLOBALS
[ 13%] Building C object Source/Lib/Encoder/Globals/CMakeFiles/ENCODER_GLOBALS.dir/EbEncHandle.c.o
[ 13%] Built target safestringlib
[ 14%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbCdefProcess.c.o
[ 14%] Building C object Source/Lib/Common/C_DEFAULT/CMakeFiles/COMMON_C_DEFAULT.dir/cfl_c.c.o
[ 14%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbBlockStructures.c.o
[ 14%] Building C object Source/Lib/Encoder/C_DEFAULT/CMakeFiles/ENCODER_C_DEFAULT.dir/EncodeTxbRef_C.c.o
[ 15%] Building C object Source/Lib/Common/C_DEFAULT/CMakeFiles/COMMON_C_DEFAULT.dir/filterintra_c.c.o
[ 16%] Building C object Source/Lib/Encoder/C_DEFAULT/CMakeFiles/ENCODER_C_DEFAULT.dir/sad_av1.c.o
[ 17%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbCabacContextModel.c.o
[ 17%] Built target COMMON_C_DEFAULT
[ 18%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbCodingLoop.c.o
[ 18%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbCdef.c.o
[ 19%] Building C object Source/Lib/Encoder/C_DEFAULT/CMakeFiles/ENCODER_C_DEFAULT.dir/variance.c.o
[ 19%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbCodingUnit.c.o
[ 20%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbDeblockingCommon.c.o
[ 21%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbDeblockingFilter.c.o
[ 22%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbInterPrediction.c.o
[ 22%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbIntraPrediction.c.o
[ 22%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbDlfProcess.c.o
[ 23%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbEncCdef.c.o
[ 23%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbEncDecProcess.c.o
[ 24%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbInvTransforms.c.o
[ 24%] Built target ENCODER_GLOBALS
[ 25%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbEncDecResults.c.o
[ 25%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbLog.c.o
[ 26%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbMalloc.c.o
[ 26%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbMcp.c.o
[ 27%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbEncDecSegments.c.o
[ 28%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbPictureBufferDesc.c.o
[ 28%] Built target ENCODER_C_DEFAULT
[ 28%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbEncDecTasks.c.o
[ 29%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbPictureOperators.c.o
[ 30%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbEncInterPrediction.c.o
[ 30%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbEncIntraPrediction.c.o
[ 30%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbRestoration.c.o
[ 30%] Built target FASTFEAT
[ 31%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbEncWarpedMotion.c.o
[ 32%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbEncodeContext.c.o
[ 33%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbSegmentationParams.c.o
[ 33%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbEntropyCoding.c.o
[ 34%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbSystemResourceManager.c.o
[ 34%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbSuperRes.c.o
[ 34%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbThreads.c.o
[ 35%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbTime.c.o
[ 36%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbEntropyCodingProcess.c.o
[ 36%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbEntropyCodingResults.c.o
[ 37%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbUtility.c.o
[ 37%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/EbWarpedMotion.c.o
[ 38%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbFullLoop.c.o
[ 39%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/common_dsp_rtcd.c.o
[ 39%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbGlobalMotionEstimation.c.o
[ 39%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/convolve.c.o
[ 40%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbGlobalMotionEstimationCost.c.o
[ 41%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbInitialRateControlProcess.c.o
[ 42%] Building C object Source/Lib/Common/Codec/CMakeFiles/COMMON_CODEC.dir/grainSynthesis.c.o
[ 42%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbInitialRateControlReorderQueue.c.o
[ 43%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbInitialRateControlResults.c.o
[ 43%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbMdRateEstimation.c.o
[ 44%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbMeSadCalculation.c.o
[ 44%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbModeDecision.c.o
[ 45%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbModeDecisionConfigurationProcess.c.o
[ 46%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbModeDecisionProcess.c.o
[ 46%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbMotionEstimation.c.o
[ 47%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbMotionEstimationContext.c.o
[ 47%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbMotionEstimationProcess.c.o
[ 48%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbMotionEstimationResults.c.o
[ 48%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbNeighborArrays.c.o
[ 49%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbPacketizationProcess.c.o
[ 50%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbPacketizationReorderQueue.c.o
[ 50%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbPictureAnalysisProcess.c.o
[ 51%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbPictureAnalysisResults.c.o
[ 51%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbPictureControlSet.c.o
[ 52%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbPictureDecisionProcess.c.o
[ 52%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbPictureDecisionQueue.c.o
[ 53%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbPictureDecisionReorderQueue.c.o
[ 54%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbPictureDecisionResults.c.o
[ 54%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbPictureDemuxResults.c.o
[ 55%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbPictureManagerProcess.c.o
[ 55%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbPictureManagerQueue.c.o
[ 56%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbPictureManagerReorderQueue.c.o
[ 56%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbPredictionStructure.c.o
[ 57%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbProductCodingLoop.c.o
[ 58%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbPsnr.c.o
[ 58%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbRateControlProcess.c.o
[ 58%] Built target COMMON_CODEC
[ 59%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbRateControlResults.c.o
[ 59%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbRateControlTables.c.o
[ 60%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbRateControlTasks.c.o
Scanning dependencies of target SvtAv1Dec
[ 61%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecBitstream.c.o
[ 62%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbRateDistortionCost.c.o
[ 63%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecBitstreamUnit.c.o
[ 63%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecCdef.c.o
[ 64%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecHandle.c.o
[ 64%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbReferenceObject.c.o
[ 64%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecInterPrediction.c.o
[ 65%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecIntraPrediction.c.o
[ 66%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecInverseQuantize.c.o
[ 67%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbResize.c.o
[ 67%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbResourceCoordinationProcess.c.o
[ 68%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbResourceCoordinationResults.c.o
[ 68%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbRestProcess.c.o
[ 68%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecLF.c.o
[ 69%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecMemInit.c.o
[ 69%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecNbr.c.o
[ 70%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbRestorationPick.c.o
[ 71%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecObmc.c.o
[ 71%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecParseBlock.c.o
[ 72%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecParseFrame.c.o
[ 73%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbSegmentation.c.o
[ 74%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecParseHelper.c.o
[ 74%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecParseInterBlock.c.o
[ 74%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbSequenceControlSet.c.o
[ 75%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbSourceBasedOperationsProcess.c.o
[ 75%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbTemporalFiltering.c.o
[ 76%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbTransQuantBuffers.c.o
[ 76%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/EbTransforms.c.o
[ 77%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/aom_dsp_rtcd.c.o
[ 78%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/av1me.c.o
[ 78%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/corner_detect.c.o
[ 79%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/corner_match.c.o
[ 80%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecParseObu.c.o
[ 80%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/dwt.c.o
[ 80%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecPicMgr.c.o
[ 81%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecProcess.c.o
[ 81%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecProcessBlock.c.o
[ 82%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/fft.c.o
[ 82%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/firstpass.c.o
[ 83%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/global_motion.c.o
/Users/hjtriem/Desktop/ffmpeg/ffmpeg-build-script/packages/v0.8.6/Source/Lib/Encoder/Codec/firstpass.c:1181:14: warning: unused variable 'src_ptr' [-Wunused-variable]
uint8_t *src_ptr = &(input_picture_ptr->buffer_y[buffer_index]);
^
[ 84%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecProcessFrame.c.o
[ 85%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/hash.c.o
[ 85%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/hash_motion.c.o
[ 86%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/level.c.o
[ 86%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/mcomp.c.o
[ 87%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecRestoration.c.o
[ 88%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/noise_model.c.o
[ 88%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/noise_util.c.o
1 warning generated.
[ 89%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/palette.c.o
[ 89%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecSuperRes.c.o
[ 90%] Building C object Source/Lib/Decoder/CMakeFiles/SvtAv1Dec.dir/Codec/EbDecUtils.c.o
[ 91%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/pass2_strategy.c.o
[ 91%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/ransac.c.o
[ 92%] Building C object Source/Lib/Encoder/Codec/CMakeFiles/ENCODER_CODEC.dir/vector.c.o
[ 92%] Linking C static library ../../../../../Bin/Release/libSvtAv1Dec.a
[ 92%] Built target SvtAv1Dec
Scanning dependencies of target SvtAv1DecApp
[ 94%] Building C object Source/App/DecApp/CMakeFiles/SvtAv1DecApp.dir/EbDecAppMain.c.o
[ 94%] Building C object Source/App/DecApp/CMakeFiles/SvtAv1DecApp.dir/EbDecTime.c.o
[ 94%] Building C object Source/App/DecApp/CMakeFiles/SvtAv1DecApp.dir/EbDecParamParser.c.o
[ 95%] Building C object Source/App/DecApp/CMakeFiles/SvtAv1DecApp.dir/EbFileUtils.c.o
[ 95%] Building C object Source/App/DecApp/CMakeFiles/SvtAv1DecApp.dir/EbMD5Utility.c.o
[ 96%] Linking C executable ../../../../../Bin/Release/SvtAv1DecApp
Undefined symbols for architecture arm64:
"_cpuinfo_arm_mach_init", referenced from:
_cpuinfo_initialize in libSvtAv1Dec.a(init.c.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../../Bin/Release/SvtAv1DecApp] Error 1
make[1]: *** [Source/App/DecApp/CMakeFiles/SvtAv1DecApp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 96%] Built target ENCODER_CODEC
make: *** [all] Error 2

Failed to Execute make -j 8

Thx,

Harm Jan

Unable to compile in macOS 11.3 (20E232) Xcode 12.5 (12E262)

bash <(curl -s "https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install.sh?v1")
ffmpeg-build-script-downloader v0.1
=========================================

First we create the ffmpeg build directory ffmpeg-build
Now we download and execute the build script

ffmpeg-build-script v1.24
=========================

Using 12 make jobs simultaneously.

building pkg-config
=======================
pkg-config-0.29.2.tar.gz has already downloaded.
Extracted pkg-config-0.29.2.tar.gz
$ ./configure --silent --prefix=/Users/wangxiaoxiang/Open Sources/ffmpeg_macos_build/ffmpeg-build/workspace --with-pc-path=/Users/wangxiaoxiang/Open Sources/ffmpeg_macos_build/ffmpeg-build/workspace/lib/pkgconfig --with-internal-glib
$ make -j 12
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in glib
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in .
make[4]: Nothing to be done for `all-am'.
Making all in m4macros
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
make[5]: Nothing to be done for `all-am'.
Making all in glib
  GEN      glibconfig-stamp
config.status: executing glib/glibconfig.h commands
config.status: glib/glibconfig.h is unchanged
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in libcharset
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
  CC       libcharset_la-localcharset.lo
  GEN      ref-add.sed
  GEN      charset.alias
  GEN      ref-del.sed
clang: error: no such file or directory: 'Sources/ffmpeg_macos_build/ffmpeg-build/workspace/lib"'
make[7]: *** [libcharset_la-localcharset.lo] Error 1
make[6]: *** [all] Error 2
make[5]: *** [all-recursive] Error 1
make[4]: *** [all] Error 2
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Failed to Execute make -j 12

sdl2 support

Thanks for a really helpful script solution. I compiled a static version but when testing it out on a friends computer it cries about sdl2 dependency. I suspect he runs an old set up but is there anyway otherwise to enable sdl2 support into the binary? Here is what it looks like:

./ffmpeg -h
dyld: Library not loaded: /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib
  Referenced from: /Users/masc/Desktop/./ffmpeg
  Reason: image not found
Trace/BPT trap: 5

EDIT: His os is OSX 10.9.5 by the way.

AV1 codec

I know it's a bit early but AV1 codec option will be a nice option to get.

Compilation for Windows

Is it possible to add a target for Windows? Cross-compilation on Linux/macOS.
Thanks for your great work! Really simple script which works fine on macOS.

adding packages

Hy
please advise on how to add this packages : libRTMP, libASS, libShine and libMxf.

Thank you

MacOS build error: SDL/SDL.h file not found

[ 72%] Building C object CMakeFiles/imageenc.dir/imageio/image_enc.c.o
Scanning dependencies of target vwebp_sdl
[ 73%] Building C object CMakeFiles/vwebp_sdl.dir/extras/vwebp_sdl.c.o
[ 73%] Building C object CMakeFiles/vwebp_sdl.dir/extras/webp_to_sdl.c.o
/Users/filipp/koding/ffmpeg-build-script/packages/libwebp-1.1.0/extras/vwebp_sdl.c:33:10: fatal error: 'SDL/SDL.h' file not found
#include <SDL/SDL.h>
         ^~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/vwebp_sdl.dir/extras/vwebp_sdl.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/Users/filipp/koding/ffmpeg-build-script/packages/libwebp-1.1.0/extras/webp_to_sdl.c:28:10: fatal error: 'SDL/SDL.h' file not found
#include <SDL/SDL.h>
         ^~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/vwebp_sdl.dir/extras/webp_to_sdl.c.o] Error 1
make[1]: *** [CMakeFiles/vwebp_sdl.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Add SVT-AV1 support

The SVT-AV1 encoder is in some ways better than the reference AV1 encoder (libaom). It has much better multithreading, so it's not a PITA to use all your CPU cores for AV1 encoding.

I've been building from git according to the Debian/Ubuntu compilation guide for a few months and the build process hasn't broken so far.

Please add Windows too

I'm working on application, and need make version of windows too. It's possible that you make a script with windows version?

ERROR: srt >= 1.3.0 not found using pkg-config

Amazon Linux (amzn-ami-hvm-2018.03.0.20181129-x86_64-gp2)
bash <(curl -s "https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install.sh?v1")
ERROR: srt >= 1.3.0 not found using pkg-config

Full output:

ffmpeg-build-script-downloader v0.1
=========================================

First we create the ffmpeg build directory ffmpeg-build
Now we download and execute the build script

ffmpeg-build-script v1.22
=========================

Using 1 make jobs simultaneously.

building pkg-config
=======================
Downloading https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz as pkg-config-0.29.2.tar.gz
... Done
Extracted pkg-config-0.29.2.tar.gz
$ ./configure --silent --prefix=/home/ec2-user/ffmpeg-build/workspace --with-pc-path=/home/ec2-user/ffmpeg-build/workspace/lib/pkgconfig --with-internal-glib
$ make -j 1
$ make install

building lv2
=======================
Downloading https://lv2plug.in/spec/lv2-1.18.0.tar.bz2 as lv2-1.18.0.tar.bz2
... Done
Extracted lv2-1.18.0.tar.bz2
$ ./waf configure --prefix=/home/ec2-user/ffmpeg-build/workspace --lv2-user
$ ./waf
$ ./waf install

building waflib
=======================
Downloading https://gitlab.com/drobilla/autowaf/-/archive/cc37724b9bfa889baebd8cb10f38b8c7cab83e37/autowaf-cc37724b9bfa889baebd8cb10f38b8c7cab83e37.tar.gz as autowaf.tar.gz
... Done
Extracted autowaf.tar.gz

building serd
=======================
Downloading https://gitlab.com/drobilla/serd/-/archive/v0.30.6/serd-v0.30.6.tar.gz as serd-v0.30.6.tar.gz
... Done
Extracted serd-v0.30.6.tar.gz
$ cp -r /home/ec2-user/ffmpeg-build/packages/autowaf/ansiterm.py /home/ec2-user/ffmpeg-build/packages/autowaf/Build.py /home/ec2-user/ffmpeg-build/packages/autowaf/ConfigSet.py /home/ec2-user/ffmpeg-build/packages/autowaf/Configure.py /home/ec2-user/ffmpeg-build/packages/autowaf/Context.py /home/ec2-user/ffmpeg-build/packages/autowaf/COPYING /home/ec2-user/ffmpeg-build/packages/autowaf/Errors.py /home/ec2-user/ffmpeg-build/packages/autowaf/extras /home/ec2-user/ffmpeg-build/packages/autowaf/fixpy2.py /home/ec2-user/ffmpeg-build/packages/autowaf/__init__.py /home/ec2-user/ffmpeg-build/packages/autowaf/Logs.py /home/ec2-user/ffmpeg-build/packages/autowaf/Node.py /home/ec2-user/ffmpeg-build/packages/autowaf/Options.py /home/ec2-user/ffmpeg-build/packages/autowaf/processor.py /home/ec2-user/ffmpeg-build/packages/autowaf/README.md /home/ec2-user/ffmpeg-build/packages/autowaf/Runner.py /home/ec2-user/ffmpeg-build/packages/autowaf/Scripting.py /home/ec2-user/ffmpeg-build/packages/autowaf/TaskGen.py /home/ec2-user/ffmpeg-build/packages/autowaf/Task.py /home/ec2-user/ffmpeg-build/packages/autowaf/Tools /home/ec2-user/ffmpeg-build/packages/autowaf/Utils.py /home/ec2-user/ffmpeg-build/packages/autowaf/waf /home/ec2-user/ffmpeg-build/packages/serd-v0.30.6/waflib/
$ ./waf configure --prefix=/home/ec2-user/ffmpeg-build/workspace --static --no-shared --no-posix
$ ./waf
$ ./waf install

building pcre
=======================
Downloading https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz as pcre-8.44.tar.gz
... Done
Extracted pcre-8.44.tar.gz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build/workspace --disable-shared --enable-static
$ make -j 1
$ make install

building sord
=======================
Downloading https://gitlab.com/drobilla/sord/-/archive/v0.16.6/sord-v0.16.6.tar.gz as sord-v0.16.6.tar.gz
... Done
Extracted sord-v0.16.6.tar.gz
$ cp -r /home/ec2-user/ffmpeg-build/packages/autowaf/ansiterm.py /home/ec2-user/ffmpeg-build/packages/autowaf/Build.py /home/ec2-user/ffmpeg-build/packages/autowaf/ConfigSet.py /home/ec2-user/ffmpeg-build/packages/autowaf/Configure.py /home/ec2-user/ffmpeg-build/packages/autowaf/Context.py /home/ec2-user/ffmpeg-build/packages/autowaf/COPYING /home/ec2-user/ffmpeg-build/packages/autowaf/Errors.py /home/ec2-user/ffmpeg-build/packages/autowaf/extras /home/ec2-user/ffmpeg-build/packages/autowaf/fixpy2.py /home/ec2-user/ffmpeg-build/packages/autowaf/__init__.py /home/ec2-user/ffmpeg-build/packages/autowaf/Logs.py /home/ec2-user/ffmpeg-build/packages/autowaf/Node.py /home/ec2-user/ffmpeg-build/packages/autowaf/Options.py /home/ec2-user/ffmpeg-build/packages/autowaf/processor.py /home/ec2-user/ffmpeg-build/packages/autowaf/README.md /home/ec2-user/ffmpeg-build/packages/autowaf/Runner.py /home/ec2-user/ffmpeg-build/packages/autowaf/Scripting.py /home/ec2-user/ffmpeg-build/packages/autowaf/TaskGen.py /home/ec2-user/ffmpeg-build/packages/autowaf/Task.py /home/ec2-user/ffmpeg-build/packages/autowaf/Tools /home/ec2-user/ffmpeg-build/packages/autowaf/Utils.py /home/ec2-user/ffmpeg-build/packages/autowaf/waf /home/ec2-user/ffmpeg-build/packages/sord-v0.16.6/waflib/
$ ./waf configure --prefix=/home/ec2-user/ffmpeg-build/workspace CFLAGS=-I/home/ec2-user/ffmpeg-build/workspace/include --static --no-shared --no-utils
$ ./waf CFLAGS=-I/home/ec2-user/ffmpeg-build/workspace/include
$ ./waf install

building sratom
=======================
Downloading https://gitlab.com/lv2/sratom/-/archive/v0.6.6/sratom-v0.6.6.tar.gz as sratom-v0.6.6.tar.gz
... Done
Extracted sratom-v0.6.6.tar.gz
$ cp -r /home/ec2-user/ffmpeg-build/packages/autowaf/ansiterm.py /home/ec2-user/ffmpeg-build/packages/autowaf/Build.py /home/ec2-user/ffmpeg-build/packages/autowaf/ConfigSet.py /home/ec2-user/ffmpeg-build/packages/autowaf/Configure.py /home/ec2-user/ffmpeg-build/packages/autowaf/Context.py /home/ec2-user/ffmpeg-build/packages/autowaf/COPYING /home/ec2-user/ffmpeg-build/packages/autowaf/Errors.py /home/ec2-user/ffmpeg-build/packages/autowaf/extras /home/ec2-user/ffmpeg-build/packages/autowaf/fixpy2.py /home/ec2-user/ffmpeg-build/packages/autowaf/__init__.py /home/ec2-user/ffmpeg-build/packages/autowaf/Logs.py /home/ec2-user/ffmpeg-build/packages/autowaf/Node.py /home/ec2-user/ffmpeg-build/packages/autowaf/Options.py /home/ec2-user/ffmpeg-build/packages/autowaf/processor.py /home/ec2-user/ffmpeg-build/packages/autowaf/README.md /home/ec2-user/ffmpeg-build/packages/autowaf/Runner.py /home/ec2-user/ffmpeg-build/packages/autowaf/Scripting.py /home/ec2-user/ffmpeg-build/packages/autowaf/TaskGen.py /home/ec2-user/ffmpeg-build/packages/autowaf/Task.py /home/ec2-user/ffmpeg-build/packages/autowaf/Tools /home/ec2-user/ffmpeg-build/packages/autowaf/Utils.py /home/ec2-user/ffmpeg-build/packages/autowaf/waf /home/ec2-user/ffmpeg-build/packages/sratom-v0.6.6/waflib/
$ ./waf configure --prefix=/home/ec2-user/ffmpeg-build/workspace --static --no-shared
$ ./waf
$ ./waf install

building lilv
=======================
Downloading https://gitlab.com/lv2/lilv/-/archive/v0.24.10/lilv-v0.24.10.tar.gz as lilv-v0.24.10.tar.gz
... Done
Extracted lilv-v0.24.10.tar.gz
$ cp -r /home/ec2-user/ffmpeg-build/packages/autowaf/ansiterm.py /home/ec2-user/ffmpeg-build/packages/autowaf/Build.py /home/ec2-user/ffmpeg-build/packages/autowaf/ConfigSet.py /home/ec2-user/ffmpeg-build/packages/autowaf/Configure.py /home/ec2-user/ffmpeg-build/packages/autowaf/Context.py /home/ec2-user/ffmpeg-build/packages/autowaf/COPYING /home/ec2-user/ffmpeg-build/packages/autowaf/Errors.py /home/ec2-user/ffmpeg-build/packages/autowaf/extras /home/ec2-user/ffmpeg-build/packages/autowaf/fixpy2.py /home/ec2-user/ffmpeg-build/packages/autowaf/__init__.py /home/ec2-user/ffmpeg-build/packages/autowaf/Logs.py /home/ec2-user/ffmpeg-build/packages/autowaf/Node.py /home/ec2-user/ffmpeg-build/packages/autowaf/Options.py /home/ec2-user/ffmpeg-build/packages/autowaf/processor.py /home/ec2-user/ffmpeg-build/packages/autowaf/README.md /home/ec2-user/ffmpeg-build/packages/autowaf/Runner.py /home/ec2-user/ffmpeg-build/packages/autowaf/Scripting.py /home/ec2-user/ffmpeg-build/packages/autowaf/TaskGen.py /home/ec2-user/ffmpeg-build/packages/autowaf/Task.py /home/ec2-user/ffmpeg-build/packages/autowaf/Tools /home/ec2-user/ffmpeg-build/packages/autowaf/Utils.py /home/ec2-user/ffmpeg-build/packages/autowaf/waf /home/ec2-user/ffmpeg-build/packages/lilv-v0.24.10/waflib/
$ ./waf configure --prefix=/home/ec2-user/ffmpeg-build/workspace --static --no-shared --no-utils
$ ./waf
$ ./waf install

building yasm
=======================
Downloading https://github.com/yasm/yasm/releases/download/v1.3.0/yasm-1.3.0.tar.gz as yasm-1.3.0.tar.gz
... Done
Extracted yasm-1.3.0.tar.gz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build/workspace
$ make -j 1
$ make install

building nasm
=======================
Downloading https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.xz as nasm-2.15.05.tar.xz
... Done
Extracted nasm-2.15.05.tar.xz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build/workspace --disable-shared --enable-static
$ make -j 1
$ make install

building zlib
=======================
Downloading https://www.zlib.net/zlib-1.2.11.tar.gz as zlib-1.2.11.tar.gz
... Done
Extracted zlib-1.2.11.tar.gz
$ ./configure --static --prefix=/home/ec2-user/ffmpeg-build/workspace
$ make -j 1
$ make install

building openssl
=======================
Downloading https://www.openssl.org/source/openssl-1.1.1i.tar.gz as openssl-1.1.1i.tar.gz
... Done
Extracted openssl-1.1.1i.tar.gz
$ ./config --prefix=/home/ec2-user/ffmpeg-build/workspace --openssldir=/home/ec2-user/ffmpeg-build/workspace --with-zlib-include=/home/ec2-user/ffmpeg-build/workspace/include/ --with-zlib-lib=/home/ec2-user/ffmpeg-build/workspace/lib no-shared zlib
$ make -j 1
$ make install_sw

building cmake
=======================
Downloading https://cmake.org/files/v3.18/cmake-3.18.4.tar.gz as cmake-3.18.4.tar.gz
... Done
Extracted cmake-3.18.4.tar.gz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build/workspace --system-zlib
$ make -j 1
$ make install

building svtav1
=======================
Downloading https://github.com/AOMediaCodec/SVT-AV1/archive/v0.8.6.tar.gz as v0.8.6.tar.gz
... Done
Extracted v0.8.6.tar.gz
$ cmake -DCMAKE_INSTALL_PREFIX=/home/ec2-user/ffmpeg-build/workspace -DENABLE_SHARED=off -DBUILD_SHARED_LIBS=OFF ../.. -GUnix Makefiles -DCMAKE_BUILD_TYPE=Release
$ make -j 1
$ make install
$ cp SvtAv1Enc.pc /home/ec2-user/ffmpeg-build/workspace/lib/pkgconfig/
$ cp SvtAv1Dec.pc /home/ec2-user/ffmpeg-build/workspace/lib/pkgconfig/

building x264
=======================
Downloading https://code.videolan.org/videolan/x264/-/archive/0d754ec36013fee82978496cd56fbd48824910b3/x264-0d754ec36013fee82978496cd56fbd48824910b3.tar.gz as x264-0d754ec.tar.gz
... Done
Extracted x264-0d754ec.tar.gz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build/workspace --enable-static --enable-pic CXXFLAGS=-fPIC
$ make -j 1
$ make install
$ make install-lib-static

building x265
=======================
Downloading https://github.com/videolan/x265/archive/Release_3.5.tar.gz as x265-3.5.tar.gz
... Done
Extracted x265-3.5.tar.gz
$ cmake -DCMAKE_INSTALL_PREFIX=/home/ec2-user/ffmpeg-build/workspace -DENABLE_SHARED=off -DBUILD_SHARED_LIBS=OFF ../../source
$ make -j 1
$ make install

building libvpx
=======================
Downloading https://github.com/webmproject/libvpx/archive/v1.9.0.tar.gz as libvpx-1.9.0.tar.gz
... Done
Extracted libvpx-1.9.0.tar.gz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build/workspace --disable-unit-tests --disable-shared --as=yasm
$ make -j 1
$ make install

building xvidcore
=======================
Downloading https://downloads.xvid.com/downloads/xvidcore-1.3.7.tar.gz as xvidcore-1.3.7.tar.gz
... Done
Extracted xvidcore-1.3.7.tar.gz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build/workspace --disable-shared --enable-static
$ make -j 1
$ make install
$ rm /home/ec2-user/ffmpeg-build/workspace/lib/libxvidcore.so /home/ec2-user/ffmpeg-build/workspace/lib/libxvidcore.so.4 /home/ec2-user/ffmpeg-build/workspace/lib/libxvidcore.so.4.3

building vid_stab
=======================
Downloading https://github.com/georgmartius/vid.stab/archive/v1.1.0.tar.gz as vid.stab-1.1.0.tar.gz
... Done
Extracted vid.stab-1.1.0.tar.gz
$ cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/home/ec2-user/ffmpeg-build/workspace -DUSE_OMP=OFF -DENABLE_SHARED=off .
$ make
$ make install

building av1
=======================
Downloading https://aomedia.googlesource.com/aom/+archive/b52ee6d44adaef8a08f6984390de050d64df9faa.tar.gz as av1.tar.gz
... Done
Extracted av1.tar.gz
$ cmake -DENABLE_TESTS=0 -DCMAKE_INSTALL_PREFIX=/home/ec2-user/ffmpeg-build/workspace -DCMAKE_INSTALL_LIBDIR=lib /home/ec2-user/ffmpeg-build/packages/av1
$ make -j 1
$ make install

building opencore
=======================
Downloading https://deac-riga.dl.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.5.tar.gz as opencore-amr-0.1.5.tar.gz
... Done
Extracted opencore-amr-0.1.5.tar.gz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build/workspace --disable-shared --enable-static
$ make -j 1
$ make install

building lame
=======================
Downloading https://netcologne.dl.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz as lame-3.100.tar.gz
... Done
Extracted lame-3.100.tar.gz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build/workspace --disable-shared --enable-static
$ make -j 1
$ make install

building opus
=======================
Downloading https://archive.mozilla.org/pub/opus/opus-1.3.1.tar.gz as opus-1.3.1.tar.gz
... Done
Extracted opus-1.3.1.tar.gz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build/workspace --disable-shared --enable-static
$ make -j 1
$ make install

building libogg
=======================
Downloading https://ftp.osuosl.org/pub/xiph/releases/ogg/libogg-1.3.3.tar.gz as libogg-1.3.3.tar.gz
... Done
Extracted libogg-1.3.3.tar.gz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build/workspace --disable-shared --enable-static
$ make -j 1
$ make install

building libvorbis
=======================
Downloading https://ftp.osuosl.org/pub/xiph/releases/vorbis/libvorbis-1.3.6.tar.gz as libvorbis-1.3.6.tar.gz
... Done
Extracted libvorbis-1.3.6.tar.gz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build/workspace --with-ogg-libraries=/home/ec2-user/ffmpeg-build/workspace/lib --with-ogg-includes=/home/ec2-user/ffmpeg-build/workspace/include/ --enable-static --disable-shared --disable-oggtest
$ make -j 1
$ make install

building libtheora
=======================
Downloading https://ftp.osuosl.org/pub/xiph/releases/theora/libtheora-1.1.1.tar.gz as libtheora-1.1.1.tar.gz
... Done
Extracted libtheora-1.1.1.tar.gz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build/workspace --with-ogg-libraries=/home/ec2-user/ffmpeg-build/workspace/lib --with-ogg-includes=/home/ec2-user/ffmpeg-build/workspace/include/ --with-vorbis-libraries=/home/ec2-user/ffmpeg-build/workspace/lib --with-vorbis-includes=/home/ec2-user/ffmpeg-build/workspace/include/ --enable-static --disable-shared --disable-oggtest --disable-vorbistest --disable-examples --disable-asm --disable-spec
$ make -j 1
$ make install

building fdk_aac
=======================
Downloading https://sourceforge.net/projects/opencore-amr/files/fdk-aac/fdk-aac-2.0.1.tar.gz/download?use_mirror=gigenet as fdk-aac-2.0.1.tar.gz
... Done
Extracted fdk-aac-2.0.1.tar.gz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build/workspace --disable-shared --enable-static
$ make -j 1
$ make install

building libwebp
=======================
Downloading https://github.com/webmproject/libwebp/archive/v1.1.0.tar.gz as libwebp-1.1.0.tar.gz
... Done
Extracted libwebp-1.1.0.tar.gz
$ cmake -DCMAKE_INSTALL_PREFIX=/home/ec2-user/ffmpeg-build/workspace -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_INCLUDEDIR=include -DENABLE_SHARED=OFF -DENABLE_STATIC=ON ../
$ make -j 1
$ make install

building libsdl
=======================
Downloading https://www.libsdl.org/release/SDL2-2.0.14.tar.gz as SDL2-2.0.14.tar.gz
... Done
Extracted SDL2-2.0.14.tar.gz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build/workspace --disable-shared --enable-static
$ make -j 1
$ make install

building srt
=======================
Downloading https://github.com/Haivision/srt/archive/v1.4.1.tar.gz as srt-1.4.1.tar.gz
... Done
Extracted srt-1.4.1.tar.gz
$ cmake . -DCMAKE_INSTALL_PREFIX=/home/ec2-user/ffmpeg-build/workspace -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_INCLUDEDIR=include -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_APPS=OFF -DUSE_STATIC_LIBSTDCXX=ON
$ make install

building ffmpeg
=======================
Downloading https://git.ffmpeg.org/gitweb/ffmpeg.git/snapshot/553eb0773763798a6b9656b621cb125e1f6edbcc.tar.gz as 553eb0773763798a6b9656b621cb125e1f6edbcc.tar.gz
... Done
Extracted 553eb0773763798a6b9656b621cb125e1f6edbcc.tar.gz
ERROR: srt >= 1.3.0 not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
$ make -j 1
Makefile:2: ffbuild/config.mak: No such file or directory
Makefile:40: /tools/Makefile: No such file or directory
Makefile:41: /ffbuild/common.mak: No such file or directory
Makefile:107: /libavutil/Makefile: No such file or directory
Makefile:107: /ffbuild/library.mak: No such file or directory
Makefile:109: /fftools/Makefile: No such file or directory
Makefile:110: /doc/Makefile: No such file or directory
Makefile:111: /doc/examples/Makefile: No such file or directory
Makefile:177: /tests/Makefile: No such file or directory
make: *** No rule to make target `/tests/Makefile'.  Stop.

Failed to Execute make -j 1

Make old build

Is it possible for your script to build an old build, more precisely 3.4.2?

build x264 fail

when building the latest x264 ,errors occured :

building x264

$ ./configure --prefix=/home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace --disable-shared --enable-static
$ make
dependency file generation...
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o x264.o x264.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o input/input.o input/input.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o input/timecode.o input/timecode.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o input/raw.o input/raw.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o input/y4m.o input/y4m.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o output/raw.o output/raw.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o output/matroska.o output/matroska.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o output/matroska_ebml.o output/matroska_ebml.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o output/flv.o output/flv.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o output/flv_bytestream.o output/flv_bytestream.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/filters.o filters/filters.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/video.o filters/video/video.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/source.o filters/video/source.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/internal.o filters/video/internal.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/resize.o filters/video/resize.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/cache.o filters/video/cache.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/fix_vfr_pts.o filters/video/fix_vfr_pts.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/select_every.o filters/video/select_every.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/crop.o filters/video/crop.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/depth.o filters/video/depth.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o input/avs.o input/avs.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o input/thread.o input/thread.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o input/lavf.o input/lavf.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/mc.o common/mc.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/predict.o common/predict.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/pixel.o common/pixel.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/macroblock.o common/macroblock.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/frame.o common/frame.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/dct.o common/dct.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/cpu.o common/cpu.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/cabac.o common/cabac.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/common.o common/common.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/osdep.o common/osdep.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/rectangle.o common/rectangle.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/set.o common/set.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/quant.o common/quant.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/deblock.o common/deblock.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/vlc.o common/vlc.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/mvpred.o common/mvpred.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/bitstream.o common/bitstream.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/analyse.o encoder/analyse.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/me.o encoder/me.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/ratecontrol.o encoder/ratecontrol.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/set.o encoder/set.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/macroblock.o encoder/macroblock.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/cabac.o encoder/cabac.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/cavlc.o encoder/cavlc.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/encoder.o encoder/encoder.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/lookahead.o encoder/lookahead.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/threadpool.o common/threadpool.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/x86/mc-c.o common/x86/mc-c.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/x86/predict-c.o common/x86/predict-c.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/opencl.o common/opencl.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/slicetype-cl.o encoder/slicetype-cl.c
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/const-a.o common/x86/const-a.asm
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/cabac-a.o common/x86/cabac-a.asm
common/x86/cabac-a.asm:106: error: redefinition of `.text'
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section
common/x86/cabac-a.asm:263: error: only RES* allowed within absolute section

however, if I just make ,it will be ok :

root@ubuntu:/home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/packages/x264-snapshot-20161024-2245# make
cat common/opencl/x264-cl.h common/opencl/motionsearch.cl common/opencl/subpel.cl common/opencl/intra.cl common/opencl/weightp.cl common/opencl/downscale.cl common/opencl/bidir.cl | ./tools/cltostr.sh common/oclobj.h
dependency file generation...
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o x264.o x264.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o input/input.o input/input.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o input/timecode.o input/timecode.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o input/raw.o input/raw.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o input/y4m.o input/y4m.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o output/raw.o output/raw.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o output/matroska.o output/matroska.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o output/matroska_ebml.o output/matroska_ebml.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o output/flv.o output/flv.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o output/flv_bytestream.o output/flv_bytestream.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/filters.o filters/filters.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/video.o filters/video/video.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/source.o filters/video/source.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/internal.o filters/video/internal.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/resize.o filters/video/resize.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/cache.o filters/video/cache.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/fix_vfr_pts.o filters/video/fix_vfr_pts.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/select_every.o filters/video/select_every.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/crop.o filters/video/crop.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o filters/video/depth.o filters/video/depth.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o input/avs.o input/avs.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o input/thread.o input/thread.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o input/lavf.o input/lavf.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/mc.o common/mc.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/predict.o common/predict.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/pixel.o common/pixel.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/macroblock.o common/macroblock.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/frame.o common/frame.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/dct.o common/dct.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/cpu.o common/cpu.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/cabac.o common/cabac.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/common.o common/common.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/osdep.o common/osdep.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/rectangle.o common/rectangle.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/set.o common/set.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/quant.o common/quant.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/deblock.o common/deblock.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/vlc.o common/vlc.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/mvpred.o common/mvpred.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/bitstream.o common/bitstream.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/analyse.o encoder/analyse.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/me.o encoder/me.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/ratecontrol.o encoder/ratecontrol.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/set.o encoder/set.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/macroblock.o encoder/macroblock.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/cabac.o encoder/cabac.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/cavlc.o encoder/cavlc.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/encoder.o encoder/encoder.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/lookahead.o encoder/lookahead.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/threadpool.o common/threadpool.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/x86/mc-c.o common/x86/mc-c.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/x86/predict-c.o common/x86/predict-c.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o common/opencl.o common/opencl.c
gcc -Wno-maybe-uninitialized -Wshadow -O3 -ffast-math -m64 -Wall -I. -I. -std=gnu99 -D_GNU_SOURCE -mpreferred-stack-boundary=5 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -fomit-frame-pointer -fno-tree-vectorize -c -o encoder/slicetype-cl.o encoder/slicetype-cl.c
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/const-a.o common/x86/const-a.asm
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/cabac-a.o common/x86/cabac-a.asm
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/dct-a.o common/x86/dct-a.asm
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/deblock-a.o common/x86/deblock-a.asm
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/mc-a.o common/x86/mc-a.asm
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/mc-a2.o common/x86/mc-a2.asm
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/pixel-a.o common/x86/pixel-a.asm
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/predict-a.o common/x86/predict-a.asm
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/quant-a.o common/x86/quant-a.asm
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/cpu-a.o common/x86/cpu-a.asm
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/dct-64.o common/x86/dct-64.asm
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/bitstream-a.o common/x86/bitstream-a.asm
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/sad-a.o common/x86/sad-a.asm
yasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f elf64 -Worphan-labels -DSTACK_ALIGNMENT=32 -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8 -o common/x86/trellis-64.o common/x86/trellis-64.asm
rm -f libx264.a
gcc-ar rc libx264.a common/mc.o common/predict.o common/pixel.o common/macroblock.o common/frame.o common/dct.o common/cpu.o common/cabac.o common/common.o common/osdep.o common/rectangle.o common/set.o common/quant.o common/deblock.o common/vlc.o common/mvpred.o common/bitstream.o encoder/analyse.o encoder/me.o encoder/ratecontrol.o encoder/set.o encoder/macroblock.o encoder/cabac.o encoder/cavlc.o encoder/encoder.o encoder/lookahead.o common/threadpool.o common/x86/mc-c.o common/x86/predict-c.o common/opencl.o encoder/slicetype-cl.o common/x86/const-a.o common/x86/cabac-a.o common/x86/dct-a.o common/x86/deblock-a.o common/x86/mc-a.o common/x86/mc-a2.o common/x86/pixel-a.o common/x86/predict-a.o common/x86/quant-a.o common/x86/cpu-a.o common/x86/dct-64.o common/x86/bitstream-a.o common/x86/sad-a.o common/x86/trellis-64.o
gcc-ranlib libx264.a
gcc -o x264 x264.o input/input.o input/timecode.o input/raw.o input/y4m.o output/raw.o output/matroska.o output/matroska_ebml.o output/flv.o output/flv_bytestream.o filters/filters.o filters/video/video.o filters/video/source.o filters/video/internal.o filters/video/resize.o filters/video/cache.o filters/video/fix_vfr_pts.o filters/video/select_every.o filters/video/crop.o filters/video/depth.o input/avs.o input/thread.o input/lavf.o libx264.a -ldl -L. -lavformat-ffmpeg -lavcodec-ffmpeg -lavutil-ffmpeg -lswscale-ffmpeg -lswscale-ffmpeg -lavutil-ffmpeg -m64 -lm -lpthread -ldl
root@ubuntu:/home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/packages/x264-snapshot-20161024-2245# make install
install -d /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/bin
install x264 /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/bin
install -d /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/include
install -d /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/lib
install -d /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/lib/pkgconfig
install -m 644 ./x264.h /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/include
install -m 644 x264_config.h /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/include
install -m 644 x264.pc /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/lib/pkgconfig
install -m 644 libx264.a /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/lib
gcc-ranlib /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/lib/libx264.a
root@ubuntu:/home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/packages/x264-snapshot-20161024-2245# make install-lib-static
install -d /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/include
install -d /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/lib
install -d /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/lib/pkgconfig
install -m 644 ./x264.h /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/include
install -m 644 x264_config.h /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/include
install -m 644 x264.pc /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/lib/pkgconfig
install -m 644 libx264.a /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/lib
gcc-ranlib /home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/workspace/lib/libx264.a
root@ubuntu:/home/zhangbin/stream/ffmpeg/markus-perl/ffmpeg-build-script/packages/x264-snapshot-20161024-2245#

in centos 7 openssl and libaom is installed in $workspace/lib64.

In centos 7 openssl is installed in $workspace/lib64.
libaom is also in $workspace/lib64

When building ffmpeg it will fail for not found openssl.
libaom is the same.

If i copy them to $workspace/lib and modify $workspace/lib/pkgconfig/libssl.pc libcrypto.pc openssl.pc libaom.pc
then compile ffmpeg sucess.

Is that the same in your machine?

Would some fix operation be performed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.