Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old Yesterday, 17:38   #1  |  Link
Ischemia24
Registered User
 
Join Date: Nov 2016
Posts: 2
Highest quality to file size ratio

I didn't see anything about this in the guides or FAQ and googling also hasn't turned up the specific information I'm looking for, so I'm asking here: How can I use H.265 to achieve the highest quality to file size ratio? This pertains to archiving Blu-Ray content for my personal server.

A year or two ago I found this post by Ma in the main HEVC thread. Based on that I've been using these Handbrake settings.

1080p
MKV format, 1920x1080, no filters, 10-bit H.265, constant framerate same as source, very slow preset, no encoder tune, auto-profile, 2-pass, 1500 bitrate, Extra Options: rc-lookahead=120:bframes=12:ref=6:subme=7
If it is a dark video then: rc-lookahead=120:bframes=12:ref=6:subme=7:aq-mode=3

720p (only listing what's different here and for subsequent resolutions)
1280x720, 760 bitrate

480p
854x480, 360 bitrate

360p
640x360, 300 bitrate

These are a starting point, and I've had to adjust the bitrate or try CRF instead, depending on the source files. But I've noticed that others have outdone me when it comes to the quality to file size ratio. It seems there should be a better set of options to start with, or I'm missing something in terms of what settings I should know to try to tweak in different scenarios.

I've seen these types of threads before and contributed to them, and they usually have answers like "just find what's right for you", but I would like to at least hear what baseline settings others use and what are the prime candidates for settings to tweak for those that value quality to file size as I do.
Ischemia24 is offline   Reply With Quote
Old Yesterday, 19:54   #2  |  Link
mariush
Registered User
 
Join Date: Dec 2008
Posts: 589
My advice would be to seriously analyze how much time disk space is really worth to you.

We're at the point where you can buy a 8 TB (~ 7250 GiB in real disk space) for $150 ... that's 0.02$ per GB.

At 3 mbps, you're looking at ~ 22 MB per minute or 1.4 GB per hour ...

If you're gonna spend maybe 2-3 hours per one hour of encoding you should at least use a higher bitrate, maybe something like 8-10mbps VBR for 1080p and 4-8 mbps VBR for 720p ... if you end up with around 4-6 GB for a 2h movie, you're still looking at less than 0.1$ in disk space cost.

// also hmm.. you joined nov 2016 but today's your first post?

// ps... also checked the other forum post you mentioned.. hope you realized he used a cartoon for tests... real motion video, bluray with grain etc will behave differently.. make sure you understand why he uses some settings there.
mariush is offline   Reply With Quote
Old Yesterday, 22:48   #3  |  Link
Ischemia24
Registered User
 
Join Date: Nov 2016
Posts: 2
Quote:
Originally Posted by mariush View Post
My advice would be to seriously analyze how much time disk space is really worth to you.

We're at the point where you can buy a 8 TB (~ 7250 GiB in real disk space) for $150 ... that's 0.02$ per GB.

At 3 mbps, you're looking at ~ 22 MB per minute or 1.4 GB per hour ...
I run an ITX media server, and I don't have a lot of room for expandability. But I recently upgraded it to a 3900X, so I am finally in a position to throw a lot of CPU power at H.265 encoding.

Quote:
Originally Posted by mariush View Post
If you're gonna spend maybe 2-3 hours per one hour of encoding you should at least use a higher bitrate, maybe something like 8-10mbps VBR for 1080p and 4-8 mbps VBR for 720p ... if you end up with around 4-6 GB for a 2h movie, you're still looking at less than 0.1$ in disk space cost.
Most of the time the settings I cited in the original post work pretty well for me. But I've seen examples where I'm clearly beaten in quality to file size. I want to know how to improve. Actually, part of that is how to leverage the 3900X, because I started three instances of Handbrake doing 360p and 480p encodes and the CPU is not fully utilized. Maybe should be its own post.

Quote:
Originally Posted by mariush View Post
also hmm.. you joined nov 2016 but today's your first post?

ps... also checked the other forum post you mentioned.. hope you realized he used a cartoon for tests... real motion video, bluray with grain etc will behave differently.. make sure you understand why he uses some settings there.
Yes, I was going to ask then what settings I should use for my goals, but I feared I hadn't done enough of my own research and held off, then forgot all about it.

I think the Big Buck Bunny movie sample he used is something that you would tune for Film if using H.264 rather than Animation. But I admit I don't know why he went with the particular settings he chose. It was just presented as "true placebo" mode for H.265 and I seized on it.
Ischemia24 is offline   Reply With Quote
Old Today, 00:08   #4  |  Link
RanmaCanada
Registered User
 
Join Date: May 2009
Posts: 66
Time to change your media server to something larger. Sorry, but that is the reality. Disk space is cheap, and it will actually cost you more in power to convert your movies, than to just store them. IE the amount it will cost in power to use your computer to "save space" by encoding, is more expensive than storing the original on a hard drive and just buying new drives when you run out of space. Especially if you care about quality in your encodes.
RanmaCanada is offline   Reply With Quote
Old Today, 00:12   #5  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 2,874
Turning the nebulous concept of "quality" into a linear value that a ratio can be calculated from is a massive unsolved problem in computer vision and human visual perception. Any scale you could come up with would be specific to a given scenario.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:39.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.