Skip to content

Instantly share code, notes, and snippets.

View shaljam's full-sized avatar
🤷‍♂️
👨🏻‍💻

Ali Momen Sani shaljam

🤷‍♂️
👨🏻‍💻
View GitHub Profile
@shaljam
shaljam / compile-ffmpeg-nvenc.sh
Last active July 10, 2019 10:34
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/sh -e
#This script will compile and install a SHARED ffmpeg build with support for nvenc un ubuntu to /usr (requires sudo).
#See the prefix path and compile options if edits are needed to suit your needs.
# Based on: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
# Based on: https://gist.github.com/Brainiarc7/3f7695ac2a0905b05c5b
# Rewritten here: https://github.com/ilyaevseev/ffmpeg-build-static/