AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Linux ffmpeg static builds2/18/2023 And finally, ffmpeg configured and complied with -enable-cuda-nvcc option.In short, to enable support for GPU-assisted encoding with an NVIDIA GPU for ffmpeg, you need: Please see NVIDIA documentations and ffmpeg wiki page for further information. Some distros provide static library versions while others dont, so, be prepared to build all libraries yourself. You learned how to install FFmpeg with NVIDIA GPU acceleration hardware support on Debian or Ubuntu Linux to speed up encoding with the ffmpeg command. You will need to have or build static versions of all libraries that ffmpeg depend on. Make sure you read the following man pages using the man command: Mine is a consumer-grade GPU, but no doubt data center or professional-grade NVIDIA GPU gives even better performance. Clone git repo: mkdir /nvidia/ & cd /nvidia/. To compile ffmpeg with NVIDIA we need ffnvcodec too. For example: sudo apt install nvidia-driver-460. Make sure to disable its auto-update ability on first run because allowing it to update will break AC-4 audio. Just unzip the contents wherever you want and run the binary from there. ![]() This build of QMPlay2 is a portable build. Static Windows (x8664) and Linux (x8664) Builds of ffmpeg master and latest release branch. Heres the download link for it: QMPlay2.zip. First, make sure Nvidia Driver (Latest Proprietary Driver) installed on Ubuntu or Debian. Ive also build a custom version of QMPlay2 that supports ATSC3.0/AC-4/HEVC. Time command outputs with GPU used: realĐm28.494sįfmpeg speed up by 4.32x: frame= 7320 fps=259 q=31.0 Lsize= 50294kB time=00:02:02.03 bitrate=3376.2kbits/s speed=4.32x Installing FFmpeg with NVIDIA GPU hardware acceleration on Linux. Time ~/ffmpeg/ffmpeg -hwaccel cuda -y -i /tmp/input.mkv /tmp/out.mp4 Time command outputs with CPU used: realđm40.678sĪlso note down the speed: frame= 7320 fps= 73 q=-1.0 Lsize= 58306kB time=00:02:02.03 bitrate=3914.0kbits/s speed=1.22xĪnd now same file with NVIDIA GPU acceleration (note the path, I am calling the compiled version): Time /bin/ffmpeg -y -i /tmp/input.mkv /tmp/out.mp4 In this example, I am converting input.mkv to out.mp4 as follows without using GPU acceleration: ![]() Related: Top 7 Linux GPU Monitoring and Diagnostic Commands Line Tools Result
0 Comments
Read More
Leave a Reply. |