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 4th June 2020, 22:07   #1  |  Link
crystalfunky
Registered User
 
Join Date: Apr 2010
Posts: 57
Best quality settings for x264 to x265

Hi guys,

I know this has been asked too much already, but here it goes:

x264 video to x265.

Just preset slow, crf 18, no sao, deblock -3:-3, no strong intra, vbv 160000, chromaloc 0, no-hdr10, cll 0,0, no-hdr-opt, no-hdr10-opt

Source: Bluray rip by MakeMKV

Last edited by crystalfunky; 4th June 2020 at 22:50.
crystalfunky is offline   Reply With Quote
Old 5th June 2020, 10:09   #2  |  Link
Forteen88
Herr
 
Join Date: Apr 2009
Location: North Europe
Posts: 556
If you got a strong CPU, set --preset slower.

"vbv 160000, chromaloc 0, no-hdr10, cll 0,0, no-hdr-opt, no-hdr10-opt", isn't that only for HDR-video?

UPDATE: Never mind my comment about HDR. I'm real newbie at UHD/HDR

Last edited by Forteen88; 5th June 2020 at 15:25. Reason: HDR...
Forteen88 is offline   Reply With Quote
Old 5th June 2020, 12:06   #3  |  Link
crystalfunky
Registered User
 
Join Date: Apr 2010
Posts: 57
I have a Ryzen 3700x thats why I choose slow instead of slower.

Those settings are indeed for HDR, thats why I disabled them, because I have a x264 video.
Or did you mean something else?

Last edited by crystalfunky; 7th June 2020 at 09:03.
crystalfunky is offline   Reply With Quote
Old 5th June 2020, 12:09   #4  |  Link
excellentswordfight
Lost my old account :(
 
Join Date: Jul 2017
Posts: 322
Quote:
Originally Posted by crystalfunky View Post
Hi guys,

I know this has been asked too much already, but here it goes:

x264 video to x265.

Just preset slow, crf 18, no sao, deblock -3:-3, no strong intra, vbv 160000, chromaloc 0, no-hdr10, cll 0,0, no-hdr-opt, no-hdr10-opt

Source: Bluray rip by MakeMKV
I wouldnt turn off strong intra smoothing.

Did some tests in a previous thread, and it seems very beneficial to keep it on:

https://ibb.co/PmRXGF6

"chromaloc 0, no-hdr10, cll 0,0, no-hdr-opt, no-hdr10-opt"

These are not enabled by default, so you dont need to (un)set those. For SDR bluray, just set --colorprim bt709 --transfer bt709 --colormatrix bt709 --range limited if you wanna be on the safe side (if those matches your source ofc).

Last edited by excellentswordfight; 5th June 2020 at 12:12.
excellentswordfight is offline   Reply With Quote
Old 6th June 2020, 07:55   #5  |  Link
crystalfunky
Registered User
 
Join Date: Apr 2010
Posts: 57
Interesting, i turned it on again, thanks.

Regardless of that I get quite low bitrates for x264 to x265 encodings. Around 6500 for the Lord of the Rings Bluray with my settings above (crf 18).
Does it even make sense to increase crf even more or should I see the encodings with these low bitrates as good/sufficient?
crystalfunky is offline   Reply With Quote
Old 6th June 2020, 13:53   #6  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,843
My recommendations are

crf 21
qcomp 0.7
no-strong-intra-smoothing
no-sao
deblock -3,-3
psy-rd 3.3
psy-rdoq 16

If you have HW support for it, use 10 bits x265. It will someowhat reduce banding

The above settings really shine if you have dark scenes with some noise (inc. mosquito noise)
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 6th June 2020, 21:50   #7  |  Link
Forteen88
Herr
 
Join Date: Apr 2009
Location: North Europe
Posts: 556
Quote:
Originally Posted by froggy1 View Post
My recommendations are
...
psy-rdoq 16
I'm not the OP, but Psy-Trellis produces too much noise for my taste.
OP can use Trim(1000,1500) in his AviSynth-script to do a short video-clip (frame 1000 to 1500) encode just to see if s/he likes that setting though.
Forteen88 is offline   Reply With Quote
Old 6th June 2020, 22:24   #8  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,843
Quote:
Originally Posted by Forteen88 View Post
I'm not the OP, but Psy-Trellis produces too much noise for my taste.
OP can use Trim(1000,1500) in his AviSynth-script to do a short video-clip (frame 1000 to 1500) encode just to see if s/he likes that setting though.
It does not "produce" noise. It retains the noise better to match the content as close as possible. If you don't like that, reduce or disable it
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 11th June 2020, 11:10   #9  |  Link
Forteen88
Herr
 
Join Date: Apr 2009
Location: North Europe
Posts: 556
Quote:
Originally Posted by froggy1 View Post
It does not "produce" noise. It retains the noise better to match the content as close as possible. If you don't like that, reduce or disable it
Quote:
High levels of psy-rdoq can double the bitrate which can have a drastic effect on rate control, forcing higher overall QP, and can cause ringing artifacts. psy-rdoq is less accurate than psy-rd, it is biasing towards energy in general while psy-rd biases towards the energy of the source image.
https://x265.readthedocs.io/en/defau...visual-options
Forteen88 is offline   Reply With Quote
Old 11th June 2020, 11:26   #10  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,717
In CRF mode without any VBV settings, the bitrate will just shoot through the roof as there's almost nothing limiting it. The artifacts appear if the rate control starts limiting the bitrate availability.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder 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 04:10.


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