ffmpeg: AMD & NVIDIA hardware video encoding (h264, h265)

ffmpeg: AMD & NVIDIA hardware video encoding (h264, h265)

I recently needed to export some video from an Enterprise Video Surveillance system. The system will only export mjpeg avi videos, which are huge files. I ended up using ffmpeg to encode these videos into h.264 mp4 files. I performed the video encoding on a machine with an AMD GPU. This article documents some of the ffmpeg command line switches require to perform hardware video encoding on both NVIDIA and AMD GPUs.

Encode AVI to h.264 Video (Software Encoding)

Encode AVI to h.265 Video (Software Encoding)

Encode AVI to h.264 Video (AMD GPU Encoding)

Encode AVI to h.265 Video (AMD GPU Encoding)

Encode AVI to h.264 Video (NVIDIA GPU Encoding)

Encode AVI to h.265 Video (NVIDIA GPU Encoding)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.