Skip to content

Instantly share code, notes, and snippets.

@Deathproof76
Last active December 26, 2022 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Deathproof76/07e544adbff38dd3b3bd02d193bcce20 to your computer and use it in GitHub Desktop.
Save Deathproof76/07e544adbff38dd3b3bd02d193bcce20 to your computer and use it in GitHub Desktop.
Cartwheel FFmpeg Quick Sync (qsv) Onevpl enabled
# Cartwheel FFmpeg
mkdir ~/git && cd ~/git
git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive
cd cartwheel-ffmpeg
git submodule update --init --recursive
cd ffmpeg
git am ../patches/*.patch
PKG_CONFIG_PATH=/opt/intel/mediasdk/lib/pkgconfig ./configure \
--prefix=/home/yourname/.local \ ####change to preferred install path
--extra-cflags="-I/opt/intel/mediasdk/include" \ ###location may depend on your env
--extra-ldflags="-L/opt/intel/mediasdk/lib" \ ###location may depend on your env
--extra-ldflags="-L/opt/intel/mediasdk/plugins" \ ###location may depend on your env
--enable-libfontconfig --enable-libass --enable-gpl\
--enable-libfdk-aac --enable-libmp3lame --enable-libopus \
--enable-libtheora --enable-libvorbis --enable-libdav1d \
--enable-libwebp --enable-libvpx --enable-libx264 \
--enable-libx265 --enable-libzvbi --enable-libzimg \
--enable-opencl --enable-vaapi --enable-libvpl \
--enable-nonfree \
--enable-vulkan --extra-libs=-lpthread
make -j8
make install
@Deathproof76
Copy link
Author

Compiles FFmpeg applies Cartwheel Patches, adds Quicksync and OneVpl support.
I'm using an Intel Arc on Ubuntu 22.04. That's what I wrote this for mainly.
Uses --enable-libvpl instead of --enable-libmfx for FFmpeg, and enables a lot more, also uses multicore compiling .

may need:

git config --global user.name "FirstName LastName"
git config --global user.email "your@email.com"  

Clones to ~/git. Also may need dependencies for ffmpeg I haven't thought about because they were already installed (still w.i.p.). Just look, when it nags during FFmpeg configure and do tell me to update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment