Converting Videos with FFmpeg to H.265 (HEVC) MP4

Learn how to convert videos with the popular tool FFmpeg to the H.265 (HEVC) MP4 format. We provide a step-by-step guide which also covers opening a command prompt or terminal, navigating to the video folder, and running the conversion command. We also show you how to check the converted video to ensure that the conversion was successful.

Install FFmpeg (if not already installed):

Opening a Command Prompt or Terminal

Open a command prompt or terminal and navigate to the folder where the video you want to convert is located.

Running the Conversion Command

Run the following command to convert the video to the H.265 MP4 format:

ffmpeg -i input.mp4 -c:v libx265 -crf 28 -c:s copy -c:a copy output.mp4

Replace input.mp4 with the name of your input file and output.mp4 with the desired name of the output file.

The -crf option specifies the quality factor and can be adjusted to affect the quality of the output file. A lower value means higher quality but also a larger file size.

Please note that H.265 is a more advanced video encoding technique and may not be supported by all devices and applications. It may also be required for FFmpeg to be compiled with the H.265 codec in order to use this command.

Once the conversion is complete, the converted video should be found in the specified output path. Check the video to ensure that it was properly converted.