![]() Now all of above was due to non availability of linux ffmpeg build with vmaf support. Of course it is a non distributable build for my local consumption.įfmpeg version N-101868-g557953a Copyright (c) 2000-2021 the FFmpeg developersīuilt with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)Ĭonfiguration: –prefix=/home/sarangb/ffmpeg_build –pkg-config-flags=–static –extra-cflags=-I/home/sarangb/ffmpeg_build/include –extra-ldflags=-L/home/sarangb/ffmpeg_build/lib –extra-libs=’-lpthread -lm’ –bindir=/home/sarangb/bin –enable-gpl –enable-gnutls –enable-libass –enable-libfdk-aac –enable-libfreetype –enable-libmp3lame –enable-libopus –enable-libvorbis –enable-libvpx –enable-libx264 –enable-libx265 –enable-libvmaf –enable-nonfree In such case sourcing the `~/.profile` helped with command `source ~/.profile`Ĭhecking with the newly built `ffmpeg`, I can see that it has `libvmaf` support. ![]() Now, it gets fancy if you had installed `ffmpeg` thru `apt install` command earlier. #Ubuntu ffmpeg build installTo continue with build and installation, this will take a bit but it will build and install in local user's directory:įor me, it installed it in directory: `/home/sarangb/bin/ffmpeg`. configure –prefix="$HOME/ffmpeg_build" –pkg-config-flags="–static" –extra-cflags="-I$HOME/ffmpeg_build/include" –extra-ldflags="-L$HOME/ffmpeg_build/lib" –extra-libs="-lpthread -lm" –ld=“g ” –bindir="$HOME/bin" –enable-gpl –enable-gnutls –enable-libass –enable-libfdk-aac –enable-libfreetype –enable-libmp3lame –enable-libopus –enable-libvorbis –enable-libvpx –enable-libx264 –enable-libx265 –enable-libvmaf –enable-nonfree \Įxternal libraries providing hardware acceleration:Ī64multi dnxhd magicyuv pcm_s64be speedhq PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" It will configure our build and list various filters and encoders it is going to build with: Now to build ffmpeg with various support encoders and filters execute below command. Next, create couple of directories in to extract source and build: Sudo apt -y install libvpx-dev libfdk-aac-dev libmp3lame-dev \ Sudo apt -y install libx264-dev libx265-dev libnuma-dev libopus-dev Sudo apt -y install pkg-config texinfo wget yasm zlib1g-dev nasm Sudo apt -y install libxcb-shm0-dev libxcb-xfixes0-dev meson ninja-build Sudo apt -y install libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev Sudo apt -y install libass-dev libfreetype6-dev libgnutls28-dev libsdl2-dev Sudo apt -y install autoconf automake build-essential cmake git-core Once, `libvmaf` is built and installed, it is now time to build `ffmpeg` and it will include the `libvmaf.a` file generated earlier.įirst get all dependencies built and installed, we are going to various encoders and their dev-packages to be linked in ffmpeg: ![]() it is installed in location /usr/local/lib/x86_64-linux-gnu Next, I downloaded latest vmaf from github repo and extracted in a directory, say ~\source\vmaf. Sudo apt install python3 python3-pip python3-setuptools python3-wheel ninja-build nasm It shouldn’t matter which way you install as long as it is found during build. I have installed meson myself rather than going thru pip3, somehow system was not able to find it where it was install during building libvmaf. Install python3 and pip3 for Cython and numpy. I am running on Ubuntu 20.04 in both cases.įirst, ensure various tools are updated and ensure that you have build-essentials installed. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |