How to Convert HEVC/H.265 MKV Video to AVC/H.264 MP4 with FFmpeg

Posted by Olivia Quinn to HEVC, FFmpeg, Video Converter | Last Updated on Dec.10, 2018

With the arrival of iOS 11 and macOS High Sierra, we got to know a brand-new video codec, called HEVC/H.265, which replaces the previous standard most commonly used AVC/H.264 on Mac and iOS devices. It's amazing that H265 outputs better visual quality and occupies smaller storage on iOS 11 and macOS High Sierra. But if you attempt to play HEVC/H.265 4K on Mac El Capitan, Sierra, iOS 10 or earlier, it will result in "unable to play the file" error. In this case, you need to convert HEVC/H.265 to H.264. For example, an FFmpeg user stated that:
Hi all, can you please help me? I want to convert in a mkv file only the video encoding from hevc (h265) to h264 without loosing all the audio tracks in AC3/DTS/... and subtitles.

4k codec video

Convert H265 to H264 FFmpeg? An Easier Way Here!

Try MacX Video Converter Pro - A fast 4K HEVC h265 encoder/decoder, which convert 4K H.265 to 4K H.264, HD h265 to 4K h264 MP4, MOV, MKV, AVI, etc with No.1 fast speed. 5X faster than Handbrake.
Secure Download
Secure Download

How to Convert HEVC/H.265 MKV Video to AVC/H.264 MP4 with FFmpeg

To do this, a H265 to H264 converter is in demand. And FFmpeg, as a free software project that produces libraries and programs for handling multimedia data would come to your mind firstly. You can transcode h265 to h264 with ffmpeg indeed, but this HEVC encoder can be a little difficult to work, especially as it has so many options. Many users, especially the green hands feel at a loss even on installing ffmpeg on computer. Worse still, after program installed, the errors like "unrecognized option x265-params", "fail to set value for crf", "unable to read files" happen frequently. Anyway, I converted a HEVC MKV video to H.264 MP4 with ffmpeg for a test. Here are the detailed steps:

Step 1: Download a ffmpeg static build zip file here. Choose the right one according to your system type. For example, I'm running on Windows 7 (32-bit), thus I downloaded the Windows-32bit one.
Step 2: Install ffmpeg on my Windows 7. Unpack the zip in the folder of your choice and open a command prompt with administrators' rights. Then run the command: . Be sure to alter the command so that reflects the folder path from your root to . Convert MKV H265 to H264 with FFmpeg

free convert HEVC to H.264 ffmpeg

Step 3: Use FFmpeg to decode HEVC to H.264. Stay in the current window and input your HEVC video with command: ffmpeg -i input.mkv -x265-params crf=25 output.mp4 to convert HEVC/H.265 MKV Video to AVC/H.264 MP4 with FFmpeg. I imported a MKV HEVC video (rersolution:1920×1080px, video bitrate: 624.39 kbps, audio bitrate:106.43 kbps, duration: 1min, file size: 6.43MB). It takes me 1 min 23 sec to transcode this MKV HEVC video to MP4 H264.

H265 to H264 Tips with FFmpeg

If you'd like to batch convert HEVC to H265 and set other paramters, you need type in a more complicated command on the command window, such as transcode H264 to H265 with ffmpeg or batch conversions. Now, take batch decode H265 to H264 MP4 as an example. This one is a little more complicated. This will perform conditional encoding depending if the input audio is AAC or not. If the input audio is AAC then the audio will be stream copied (re-muxed) as is and needless re-encoding is avoided. If the input audio is not AAC then it will be re-encoded to AAC.

batch convert h265 to h264 mp4

An Easier Way to Convert HEVC/H265 to H264

Well, how do you think of this conversion with FFmpeg? I'm totally confused and disoriented anyhow. Though I did transcode H265 to H264 for free, it could be the least option if there are any other HEVC converters. Is there? Of course yes. You can also change H265 to H264 with Handbrake, it's slow tho. But to tackle HEVC/H.265 to H.264 conversion with easier steps and fast speed, MacX Video Converter Pro is highly recommended FFmpeg alternative with a great many bells and whistles on wide output profiles, fast conversion speed, high quality, and easy-to-use interface.

Secure Download
Secure Download

How to Convert HEVC/H.265 to H.264 with MacX Video Converter

The initial step comes to free download the HEVC to H.264 video processing software. It's compatible with Windows 10/8/7/XP and Mac OS X 10.5 or above.
For Mac:
For Windows:

Step 1: Load HEVC/H265 files.
Fire the program up and click on + Video to load your HEVC codec video. Or you can just drag and drop h265 files to this H265 video converter.

Step 2: Choose H264 as output format.
The HEVC decoder requires you to choose output format from dozens of ready-made profiles, all widely available models of iPhone iPad Android and general-purpose formats like MP4, MKV, FLV, AVI, M2TS, etc. Here I picked MP4 Video (H264), a more acceptable format compared with HEVC.

convert hevc h265 to h264 easy

Step 3: Do some settings for speed and quality.
As you attempt to convert HEVC to H.264, you can check the box of Hardware Encoder to take advantage of the Intel QSV hardware acceleration, and tick up the box of the Use High Quality Engine and Deinterlacing to optimise the image quality though it may have some impact on speed.

Step 4: Start transcoding HEVC/H265 to H264.
Tap RUN icon, and your HEVC/H265 files will be encoded into H264 right now. A video conversion window will pop up to show you the copy processing, the FPS, time remaining, etc.

MacX Video Converter - Fast Encode/Decode H265/HEVC Video Easily

MacX Video Converter Pro can easily convert X265 to X264 video and vice versa at a speed higher than FFmpeg. It also supports up to 370 audio/video codecs, including HEVC H.265, H.264, VP9, AVI, QuickTime MOV, FLV, MP4, MKV, DivX, etc. and makes them playable on iPhone, iPad, iTunes, Android devices, 4K UHD TVs, 4K video player, computer smoothly.

Related Articles and Tips

2018 Best Video Converter for Mac

How to transcode MP4 AVI WMV MOV with Mac video converter

Free MP4 Converter on Mac

Top free MP4 converter to change videos on Mac

Free Convert MKV to MP4

How to convert and compress MKV to MP4 on macOS

Compress Videos on Mac

Best Video compression software for Mac to compress video

For any questions with MacX Video Converter Pro, please feel free to contact our support team.

Contact US:

Home | About | Site Map | Privacy Policy | Terms and Conditions | License Agreement | Resource | News | Contact Us

Copyright © 2018 Digiarty Software, Inc(MacXDVD). All rights reserved, iPod®,iPhone®, iPad®, are trademarks of Apple Inc.

Convert H265 to H264 with FFmpeg? An Easier Way Here!