Skip to main content

How to set the decoder using FFmpeg

· One min read

Setting up

First make sure you have FFmpeg installed. Follow this guide if you haven't already:

https://docs.tdarr.io/blog/how-to-install-ffmpeg

Running the CLI

The decoder being set depends on the type of codec of the input file. For example, when converting a file from h264 to h265, use the following:

ffmpeg -c:v h264_cuvid -i "C:\Transcode\input.mkv" -map 0 -c copy -c:v hevc_nvenc "C:\Transcode\output.mkv"

The following provides a list of decoders:

h263_cuvid
h264_cuvid
mjpeg_cuvid
mpeg1_cuvid
mpeg2_cuvid
mpeg4_cuvid
vc1_cuvid
vp8_cuvid

You can automate this process on your files using the following Tdarr Plugins:

To transcode into hevc using GPU:

Tdarr_Plugin_MC93_Migz1FFMPEG

info

Get started using Tdarr transcode automation for free with this link:

https://tdarr.io/download/