Skip to content

Instantly share code, notes, and snippets.

View funatsufumiya's full-sized avatar

Fumiya Funatsu funatsufumiya

View GitHub Profile
@funatsufumiya
funatsufumiya / compile-ffmpeg-nvenc.sh
Created November 16, 2022 23:14
This bash script will compile a static Ffmpeg build with NVENC and VAAPI hardware-accelerated support on Ubuntu in your home directory. You can modify the script to customize the build options as you see fit.
#!/bin/bash
#This script will compile and install a static ffmpeg build with support for nvenc un ubuntu.
#See the prefix path and compile options if edits are needed to suit your needs.
#install required things from apt
installLibs(){
echo "Installing prerequisites"
sudo apt-get update
sudo apt-get -y --force-yes install autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev \