configure -prefix="$HOME/ffmpeg_build" -bindir="$HOME/bin" -enable-static -disable-opencl This requires ffmpeg to be configured with -enable-gpl -enable-libx264. See the H.264 Encoding Guide for more information and usage examples. This library provides a H.264 video encoder. Highly recommended or your resulting build may be very slow. #Static ffmpeg builds installInstall dependencies for NVENC: sudo apt-get -y install glew-utils libglew-dev libglew2.0 freeglut3 freeglut3-dev libghc-glut-dev libghc-glut-doc libghc-glut-prof libalut-dev libxmu-dev libxmu-headers libxmu6 libxmu6-dbg libxmuu-dev libxmuu1 libxmuu1-dbg git-coreīuild and deploy Yasm: Yasm is an assembler for x86 optimizations used by x264 and FFmpeg. Sudo apt-get -y install autoconf automake build-essential libass-dev libtool pkg-config texinfo zlib1g-dev With this guide, I'm adding more instructions to enable support for NVIDIA CUVID and NVIDIA NPP for enhanced encode and decode performance.įirst, prepare for the build and create the work space directory: cd ~/ Original guide with a standard build is here. Minimalist static FFmpeg build on Ubuntu 18.10 with Nvidia NVENC enabled. PATH= " $HOME/bin: $PATH " PKG_CONFIG_PATH= " $HOME/ffmpeg_build/lib/pkgconfig ". configure -prefix= " $HOME/ffmpeg_build " -bindir= " $HOME/bin " -enable-static -disable-shared -with-included-libtasn1 -with-included-unistring -without-p11-kit -disable-doc \ cpu=native -as=nasm -enable-static -disable-shared enable-postproc -enable-vp9-postproc -enable-multi-res-encoding -enable-webm-io -enable-better-hw-compatibility -enable-vp9-highbitdepth -enable-onthefly-bitpacking -enable-realtime-only \ configure -prefix= " $HOME/ffmpeg_build " -disable-examples -enable-runtime-cpu-detect -enable-vp9 -enable-vp8 \ configure -prefix= " $HOME/ffmpeg_build " -enable-nasm -enable-static -disable-shared configure -prefix= " $HOME/ffmpeg_build " -enable-static -disable-shared PATH= " $HOME/bin: $PATH " make -j $(nproc ) configure -prefix= " $HOME/ffmpeg_build " -bindir= " $HOME/bin " -enable-static -disable-shared Sudo mv cuda-ubuntu1604.pin /etc/apt/preferences.d/cuda-repository-pin-600Įcho "Installing the nVidia NVENC SDK using the latest supported 9.0 tag. #Static ffmpeg builds drivers# Not currently enabled as it will update the SDK level and drivers and require newer ones than what the DSVM VM Image on Azure currently has. Libxcb-xfixes0-dev pkg-config texi2html zlib1g-dev libvpx-dev \ Libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \ Sudo apt-get -y -force-yes install autoconf automake build-essential libfreetype6-dev libgpac-dev \ # in function probe_cc, replace the _flags_filter line to: _flags_filter='filter_out -lm|-ldl' # Long story short, you need to edit your ffmepg's configure script to avoid failures on libm and libdl. # It also relies on a hack described in to make glibc dynamic still. # NOTE: This build is made to target Ubunutu 16.04 Data-Science Azure VMs - With nVidia 418.xx drivers and CUDA SDK 9.0. # See the prefix path and compile options if edits are needed to suit your needs. # This script will compile and install a static ffmpeg build with support for nvenc in ubuntu.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |