Skip to content

Instantly share code, notes, and snippets.

@denji
denji / nvenc-install.sh
Last active August 24, 2025 10:53 — forked from lucaspar/nvenc-install.sh
Installation script of CUDA-accelerated `ffmpeg` with NVIDIA Encoder ( docker NVIDIA Encoder https://github.com/markus-perl/ffmpeg-build-script )
#!/bin/bash
# =========================================================================
# Source: https://gist.github.com/lucaspar/27f5e108b80524b315be10b2a9049817
# =========================================================================
# This script will compile and install a static FFmpeg build with
# support for NVENC in Ubuntu. Updated for Ubuntu 24.04.2,
# with NVIDIA Drivers v535.183.01 and CUDA v12.2 with a GPU
# with CUDA capability 8.6 (RTX 3080). Set ccap below if using
# a different GPU.
# It assumes NVIDIA drivers are installed and that you have a