CUDA GPU Accelerated h264 / h265 / HEVC Video Encoding with Staxrip

Gaming has changed my life.

I have traveled to many cities for years, which had Assassin’s Creed series journeys including “Sleeping Dogs 2,” “GTA,” and so on. It had a significant impact on me when I really stepped into the real world. Therefore, every time I go back, I always want to experience it in the game.

However, as I grow older 👴, I have less and less time to play games 👱.

While I was playing 📹, I was recording 🎮, which might be a good idea.

ShadowPlay

Since I have a Gigabyte Geforce GTX 1080 for training deep learning models, all I need is Nvidia ShadowPlay, which is perfect for recording games.

However, the minimum bitrate is 10Mbps. I want to reduce it to below 6kbps, so compression is involved 🗜️.

Staxrip

I used to use FFmpeg all the time, but I would get nervous every time I heard the sound of my MacBook, and I would usually spend the whole night converting batch videos.

Luckily, this time I saw the Cuda logo, which reminded me of GPU acceleration.

Then I discovered Staxrip, it’s incredible.

  1. Click on x264, select NVIDIA H.265 (I tested it on my 1080, its speed is similar to NVIDIA H.264, I used to think that 264 should be much faster than 265), and it can use GPU acceleration.
  2. Click on Encoder Options, change the mode to VBR, and then the “Video Bitrate” will appear.

It can reach 250 frames per second when the CPU is at 40% and the GPU is at 35%.

Translated by gpt-3.5-turbo