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 3rd December 2020, 20:18   #1  |  Link
Nemo1985
Registered User
 
Join Date: Nov 2020
Posts: 2
hevc file bigger than x264

Hello, my nas is strugling with space, so I needed to convert some of my files on hevc. I know it's not the best thing to do but still...
I'm using handbrake (v1.3.3), Qc 18, medium, h265 10 bit.
Everything is usually fine the output file is usually smaller up to 50%, usually around 30%, but there is one episode of house m.d. which has scenes in both bw and color during all the episode, this file no matter what it comes out bigger than the x264 file.
I also tried to reduce the bitrate of about 20% compared to the h264 file, use the 2 pass encoding but still it's insanely big.

Any suggestion about which settings can I use?
Thanks
Nemo1985 is offline   Reply With Quote
Old 3rd December 2020, 20:53   #2  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,752
Is it particularly grainy? Grain is really random noise, and the hardest thing for codec improvements to improve.

To make a grainy file smaller, I'd start by trying --preset slower and --nr-inter 250.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 4th December 2020, 06:39   #3  |  Link
Nemo1985
Registered User
 
Join Date: Nov 2020
Posts: 2
Quote:
Originally Posted by benwaggoner View Post
Is it particularly grainy? Grain is really random noise, and the hardest thing for codec improvements to improve.

To make a grainy file smaller, I'd start by trying --preset slower and --nr-inter 250.
Thank you for the quick answer.
Here is an example of b\w and color image of the episode: https://imgur.com/a/s0bjuTZ

I have a stupid question probably, how can I put those settings on handbrake? Do I put the voices on advanced options text box?

Thanks
Nemo1985 is offline   Reply With Quote
Old 5th December 2020, 01:06   #4  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,752
Quote:
Originally Posted by Nemo1985 View Post
Thank you for the quick answer.
Here is an example of b\w and color image of the episode: https://imgur.com/a/s0bjuTZ
Doesn't seem particularly grainy, although it's kind of hard to tell from a single image. How the grain moves frame-to-frame can be a bigger factor.

Quote:
I have a stupid question probably, how can I put those settings on handbrake? Do I put the voices on advanced options text box?
Sorry, I don't use handbrake. I just pipe whatever into x265.exe.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 10th December 2020, 15:21   #5  |  Link
RanmaCanada
Registered User
 
Join Date: May 2009
Posts: 328
If you're using QC that means you're using your video card to compress your files, and not your CPU. If it was your CPU it would be CRF. Hardware encoding is no where near as efficient as software encoding.
RanmaCanada is offline   Reply With Quote
Old 10th December 2020, 19:52   #6  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
@Nemo1985:

First of all, you have to understand that you can get any file size with any video format. It all depends on the rate-control mode and the selected bitrate! (or target CRF value)

For example, even old-school MPEG-2 can be smaller than AVC (H.264), if you just set the target bitrate of the MPEG-2 encoder accordingly


Now, HEVC (H.265) is supposed to compress more efficiently than AVC (H.264), which means that with HEVC you should be able to retain a similar level of quality at lower bitrate (i.e. smaller file) than with AVC.

But, again, in no way HEVC is guaranteed to produce a lower bitrate (i.e. smaller file) than AVC.

If you want the HEVC file to be smaller than the AVC file, you have to select a target bitrate (or target CRF value) for the HEVC encode that actually results in a lower bitrate than that of the AVC file you are comparing to!


Last but not least: HEVC (H.265) compresses more efficiently than AVC (H.264), only if both formats are encoded from a clean original source, and only if a "good" encoder is used for both formats!

As RanmaCanada already mentioned, hardware encoders almost universally produce significant worse results – at the same bitrate – than the best available software encoders.

Therefore, if the AVC file was encoded by a "good" software encoder, whereas the HEVC file is encoded by some hardware encoder, then you may very well need a higher bitrate for the HEVC file to retain similar quality!
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 10th December 2020 at 20:06.
LoRd_MuldeR 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 00:33.


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