Skip to content

Instantly share code, notes, and snippets.

@EitanGoldfrad
EitanGoldfrad / compile-ffmpeg.sh
Last active June 14, 2021 23:15
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 libfreetype6-dev libgpac-dev \
@EitanGoldfrad
EitanGoldfrad / ffmpeg-install.sh
Last active October 3, 2018 10:49 — forked from patmandenver/ffmpeg-install.sh
ffmpeg install script for Ubuntu 14.04
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run with admin privileges 'sudo'"
echo "exiting...."
exit 1
fi
echo "*********************************"
echo "*"