GithubHelp home page GithubHelp logo

build-ffmpeg-with-libvmaf's Introduction

Build & Install FFmpeg with libvmaf on Ubuntu 20.04

FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. VMAF is a perceptual video quality assessment algorithm developed by Netflix. VMAF Development Kit (VDK) is a software package that contains the VMAF algorithm implementation, as well as a set of tools that allows a user to train and test a custom VMAF model.

Installation

  1. Install Meson and Ninja using following commands:

    sudo apt-get install ninja-build meson

  2. Get latest VMAF SDK release from here.

  3. Unzip VMAF SDK zip and install libvmaf with following commands:

    cd vmaf-1.5.3/libvmaf

    meson build --buildtype release

    ninja -vC build

    ninja -vC build install

  4. Get latest FFmpeg soruce from here.

  5. Build and install ffmpeg with libvamf using following commands:

    ./configure --enable-gpl --enable-libx264 --enable-libx265 --enable-nonfree --enable-libvmaf --enable-version3

    sudo make

    sudo make install

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

  6. To build ffmpeg with Nvidia-Cuda support use following command:

    ./configure --enable-gpl --enable-gnutls --enable-demuxer=dash --enable-libxml2 --enable-librsvg --enable-libaom --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libfreetype --enable-libvorbis --enable-libopus --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-libvmaf --enable-version3 --enable-cuda-nvcc --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --nvccflags='-gencode arch=compute_61,code=sm_61'

build-ffmpeg-with-libvmaf's People

Contributors

yash1994 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

build-ffmpeg-with-libvmaf's Issues

lib path needs correction

After make install for ffmpeg, when I tried running it I got an error error while loading shared libraries: libvmaf.so, which has a solution here.
The export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib line needs to be changed to export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/x86_64-linux-gnu/. It'd also help to mention that this line needs to be inserted into ~/.bashrc or ~/.bash_profile and then the user needs to run source ~/.bashrc or source ~/.bash_profile.

nasm installation step needed

Thanks for providing this tutorial. Before running the build commands, it's necessary to install nasm and doxygen with sudo apt-get install nasm doxygen. Else, these errors are thrown:

src/meson.build:42:8: ERROR: Program(s) ['nasm'] not found or not executable
Program doxygen found: NO

Hope you'd include these commands.

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.