Skip to content

Instantly share code, notes, and snippets.

View richardzhang0301's full-sized avatar

Richard Zhang richardzhang0301

View GitHub Profile
@richardzhang0301
richardzhang0301 / compile-ffmpeg-nvenc.sh
Last active March 13, 2019 09:37
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 install git autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev \