Skip to main content

How to transcode video into h265/hevc 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

To transcode into hevc using FFmpeg, use the libx265 encoder, for example:

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

If you have an Nvidia GPU on your system, you can use the hevc_nvenc to transcode 5-10 times faster, although note that the quality isn't quite as good as when using CPU based transcoding:

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

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

To transcode into hevc using CPU:

Tdarr_Plugin_MC93_Migz1FFMPEG_CPU

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/