Skip to content

Instantly share code, notes, and snippets.

@alpianon
alpianon / nvenc-install.sh
Last active December 6, 2024 18:14 — forked from lucaspar/nvenc-install.sh
Installation script of CUDA-accelerated `ffmpeg` with NVIDIA Encoder
#!/bin/bash
# ==================================================================
# This script will compile and install a static ffmpeg build with
# support for NVENC in Ubuntu. Developed in Ubuntu 22.04 LTS
# It assumes NVIDIA drivers are installed and that you have a
# CUDA-compatible GPU. You can check installed drivers with:
# $ apt list *nvidia-driver-* | grep installed
# $ nvidia-smi
# It installs the CUDA toolkit from Ubuntu repos so you do not need
# to manually install it.