Skip to content

WebNinjaDeveloper.com

Programming Tutorials




Menu
  • Home
  • Youtube Channel
  • Official Blog
  • Nearby Places Finder
  • Direction Route Finder
  • Distance & Time Calculator
Menu

FFMPEG Tutorial to Enable NVIDIA or AMD GPU Acceleration to Speed Up Encoding of Videos in Terminal

Posted on February 12, 2023

 

 

Welcome folks today in this blog post we will be enabling NVIDIA or AMD GPU Acceleration in ffmpeg library to speed up encoding and conversion of video and audio in terminal. All the instructions is shown below.

 

 

Get Started

 

 

In order to get started you need to install the ffmpeg library installed on your system. Now to enable the GPU for ffmpeg you need to execute the below commands as shown below

 

 

AMD GPU Command in FFMPEG

 

 

ffmpeg -i  input.mp4 -c:v h264_amf output.mp4

 

 

Here as you can see we are providing the input video.mp4 file and then we are using the amd gpu using the h264_amf and then we are providing the output file called output.mp4.

 

 

NVIDIA GPU Command in FFMPEG

 

 

ffmpeg -i  input.mp4 -c:v h264_nvenc output.mp4

 

 

Here as you can see we are providing the input video.mp4 file and then we are using the nvidia gpu using the h264_nvenc and then we are providing the output file called output.mp4.

 

Recent Posts

  • Android Java Project to Capture Image From Camera & Save it inside Gallery
  • Android Java Project to Crop,Scale & Rotate Images Selected From Gallery and Save it inside SD Card
  • Android Kotlin Project to Load Image From URL into ImageView Widget
  • Android Java Project to Make HTTP Call to JSONPlaceholder API and Display Data in RecyclerView Using GSON & Volley Library
  • Android Java Project to Download Youtube Video Thumbnail From URL & Save it inside SD Card
  • Angular
  • Bunjs
  • C#
  • Deno
  • django
  • Electronjs
  • java
  • javascript
  • Koajs
  • kotlin
  • Laravel
  • meteorjs
  • Nestjs
  • Nextjs
  • Nodejs
  • PHP
  • Python
  • React
  • ReactNative
  • Svelte
  • Tutorials
  • Vuejs




©2023 WebNinjaDeveloper.com | Design: Newspaperly WordPress Theme