Skip to content

Hardware Acceleration

Can Kurt edited this page Mar 18, 2023 · 1 revision

Running ffmpeg with hardware acceleration


Get supported encoders from ffmpeg

ffmpeg -encoders

Add this line to your configs/config.yaml file's video_options section

  • Replace h264_nvenc with your encoder
postprocessor_args: ['-c:v', 'h264_nvenc']

It should look like this

video_options:
  postprocessor_args: ['-c:v', 'h264_nvenc']
  postprocessors: 
    - key: "FFmpegVideoConvertor"
      preferedformat: "mp4"

Check the example on Google Colab

Open In Colab