H265 Encode Settings for MiniHD


Video: Codec x265, Framerate Same as source, Constant Framerate, Constant Quality 28 RF, x265 Preset Ultrafast
hb2651

Audio: HE-AAC, Bitrate 96, Dolby Pro Logic II mixdown. On my i5-4670 processor, x264 at the “same” settings encodes 3 times faster, at around 90fps while the x265 encoded as around 30fps average. However, what surprised me was that after the 90 or so minutes encoding the x265 encode, the resulting file had YIFY-comparable 1080p quality but had only a file size of 806mb. Its x264 equivalent encode took 1/3rd the time but also resulted in a 2.23gb file. Here’s some screens:scrnff1scrnff2

I’ll be the first to admit that the quality is far from perfect, but 1) it’s less noticeable when the video is in motion and 2) I mean come on, this is less than 1mbps of video encoded at a speed of 30 frames per second! Besides, imagine how much better the quality would be if the slider was simply moved to the position of say 23. I’m guessing that using high compression will further reduce the file size by 40%, although prolonging the encode time by a factor of 10x or something. Turns out, encoding speed is a none issue. Anybody doing video things at all, YOU HAVE NO EXCUSE NOW, SERIOUSLY! So, as an inexperienced x265 encoder, I’m here to offer some uneducated guess at instructions on how to encode h265 video in handbrake.

1. Install VLC and Handbrake, then open Handbrake, Import Video by dragging into the window or selecting via the button “Source”, “File”

2. Select mkv MP4 as container. This issue probably doesn’t affect other video players, but the libdeh265 build of vlc does not playback h265 mp4 files properly (non issue for newest version of stock vlc).

3. Adjust the video output width if necessary. As for cropping, if the source video has no black bars but the numbers in the top, left, right, bottom fields are any number other than zero, it’s a problem with the software’s auto detection. select the custom option and edit the number to zero.

4. Click the Video tab.

5. Select H.265 (x265) as the video codec.

6. Framerate fps same as source, or any number from 23.976 to 60 depending on the framerate of your source material, I’d recommend constant framerate because it gives the best quality.

7. For quality settings, if you’re making YIFY style encodes, a quality of 28 is recommended. If you want high quality preservation then nudge that constant quality slider to an RF of 23 for a pleasant viewing experience, or to 15 if you really need the detail. Rule of thumb is for the same detail, h265 cuts the bandwidth by three quarters compared to h264.

8. Uncheck the Use Advanced Tab instead checkbox. select x264 Preset Ultrafast if you’re not sure how fast your CPU is. People with higher end hardware are advised not to push the preset beyond Medium, assuming you don’t want to wait forever. edit: It is possible to crank it up to the Very Slow preset which yielded RF23 quality at 1000kbps in my test encode of a 1080p video, but expect 3 hours per 10 minutes if you’re on a desktop i5-4670 or better, and 2 hours per 10 minutes if you’re on a desktop i7-4xxx or better (rough estimate, I don’t actually own an i7).

9. x265 Tune: None

10. H.265 Profile: None

11. Move to Audio tab.

12. Switch to the audio tab. If the grey box is empty and your video is supposed to have audio, click “add track”. If your video contains multiple audio tracks and you want to add a specific one of your choice, click add track for a new track, and then click the on the listbox beside “source”, in the track you added and select from the list.

13. For Audio Codec, use 64-128kbps HE-AAC(FDK) if you’re doing a YIFY-style encode, or use AAC(FDK) at 320 kbps for high quality, and max it out to 448kbps if you need the detail. Do not use a bitrate higher than that of your source.

14. If you want to have surround sound, change the mixdown to the number of channels in the source audio track, however keep in mind there is no point in increasing the amount of audio channels beyond what is in the source. Keep in mind that Dolby Pro Logic retains some surround sound when mixing down to  stereo tracks.

15. Subtitles. Add it the same way you add audio. Foreign Audio Scan scans for special subtitles. Deselect Burn In unless you’re evil.

16. Chapter markers. If your source has them, check the check box.

17. Make sure nothing’s in the Advanced tab, then click add to queue if something else is encoding, or click Start directly.

18. Wait.

19. Once you’re done encoding, don’t close Handbrake. Review the the results using the libdeh265 build of VLC. if you like the results and think you might want to do a similar encode later, save your video encoding settings as a preset by clicking Add in the buttom left corner of the window. Name the Preset Name descriptively or artistically or however you wish. If you want the preset to automatically scale down large videos, change the left number to the desired maximum width, or the right number to the maximum height, and delete the number in the side you didn’t change. If you want the preset not to resize your videos, then change the “custom” to “none” in the drop down.

20. Type something Rebellious in the preset description box, then click Add.

21. Marvel at the amazingness that is h.265 by masturbating to its mediainfo.

Last update:
20-01-2016 13:06
Author:
Karl Hudgell
Revision:
1.0
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Latest FAQs RSS

  1. NodeJS on Raspberry Pi Zero (12-10-2020 12:47)
  2. Useful Notes (13-11-2019 12:51)
  3. Dockerized Download VM (30-01-2019 20:26)
  4. Jmeter + Performance Plugin + Jenkins Pipeline (16-02-2018 12:49)
  5. MySQL DB Backup Script (04-09-2017 10:16)