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 28th November 2019, 22:09   #7221  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 948
x265.exe 3.2+17-4a29e0c5bfaf

Download: http://www.mediafire.com/file/ieswxu...5bfaf.rar/file

FWIW...

Code:
In file included from D:/KOMPILES/MCW/x265/source/encoder/encoder.cpp:27:
D:/KOMPILES/MCW/x265/source/encoder/encoder.cpp: In member function 'void x265::Encoder::destroy()':
D:/KOMPILES/MCW/x265/source/common/common.h:222:37: warning: macro expands to multiple statements [-Wmultistatement-macros]
  222 | #define X265_FREE_ZERO(ptr)         x265_free(ptr); (ptr) = NULL
      |                                     ^~~~~~~~~
D:/KOMPILES/MCW/x265/source/encoder/encoder.cpp:882:12: note: in expansion of macro 'X265_FREE_ZERO'
  882 |            X265_FREE_ZERO(m_edgePic);
      |            ^~~~~~~~~~~~~~
D:/KOMPILES/MCW/x265/source/encoder/encoder.cpp:881:9: note: some parts of macro expansion are not guarded by this 'if' clause
  881 |         if(m_edgePic != NULL)
      |         ^~
filler56789 is offline   Reply With Quote
Old 29th November 2019, 04:32   #7222  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,901
found an issue about 2pass crashing (https://bitbucket.org/multicoreware/...ure-with-32-15)
->
scenecut-aware-qp=0 (default) fails
scenecut-aware-qp=1 works

hopefully they will fix this soon,....
__________________
Hybrid here in the forum, homepage
Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
Selur is online now   Reply With Quote
Old 29th November 2019, 15:10   #7223  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,955
@filler56789: Known and about to be fixed (it's really just a question of C source formatting).
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 29th November 2019, 21:12   #7224  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,901
'scenecut-aware-qp'-bug is fixed
__________________
Hybrid here in the forum, homepage
Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
Selur is online now   Reply With Quote
Old 30th November 2019, 17:44   #7225  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 948
x265.exe 3.2+18-f0fe46ce379d

(64-bit, multilib, GCC 9.2.0)

http://www.mediafire.com/file/bqmxz9...e379d.rar/file
filler56789 is offline   Reply With Quote
Old 1st December 2019, 12:51   #7226  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 4,632
Some new stuff there I see, has anyone made any tests? Once again there are no use cases available from the devs.
__________________
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
Old 3rd December 2019, 19:32   #7227  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 948
Pooja Venkatesan committed a4e060a

2019-09-11

Add option hme-range to modify search range for HME levels L0, L1 and L2.

https://bitbucket.org/multicoreware/...49f3ba8b63ac5a

Download the .EXE from: http://msystem.waw.pl/x265/
filler56789 is offline   Reply With Quote
Old Today, 14:08   #7228  |  Link
_kermit
Registered User
 
Join Date: Apr 2017
Posts: 14
Artifacts

those are my current parameters for 1080p encoding and I'll use between CRF 18 to 22, depending on the source material

--preset slow --vbv-maxrate 20000 --deblock=-6:-6 --no-strong-intra-smoothing --amp --aq-strength 1.25 --qcomp 0.7 --no-deblock --no-sao --rskip --output-depth 10

in general I get good results but once in a while there are artifacts, particular in dark areas, looking like this:
(in this case it was CRF 22)

Name:  x256.jpg
Views: 64
Size:  34.8 KB

two questions:

any suggestions on improving my parameters in general?

Is there a parameter which would improve in particular on that (besides a lower CRF value of course)?

cheers, roland
_kermit is offline   Reply With Quote
Old Today, 15:01   #7229  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 4,632
--aq-mode 3 is meant to battle issues with dark areas of the frame. You may want to tune the strength down though, the bitrate will most likely shoot through the roof
__________________
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
Old Today, 15:20   #7230  |  Link
markiemarcus
Registered User
 
Join Date: May 2018
Posts: 11
Quote:
Originally Posted by _kermit View Post
those are my current parameters for 1080p encoding and I'll use between CRF 18 to 22, depending on the source material

--preset slow --vbv-maxrate 20000 --deblock=-6:-6 --no-strong-intra-smoothing --amp --aq-strength 1.25 --qcomp 0.7 --no-deblock --no-sao --rskip --output-depth 10

in general I get good results but once in a while there are artifacts, particular in dark areas, looking like this:
(in this case it was CRF 22)

Attachment 17045

two questions:

any suggestions on improving my parameters in general?

Is there a parameter which would improve in particular on that (besides a lower CRF value of course)?

cheers, roland
As mentioned above, I'd also look at Aq mode 3 with the default AQ strength. You may even be able to get better results (at the same file size) with around 0.85, even lower if the source is very grainy.

Additionally, I have yet to see any real detail benefit to no-strong-intra-smoothing. I'd also avoid disabling deblocking and, if grain retention is still a priority, use some light deblocking instead. I've had good results with -4: -1 and -3: -3, with the former being slightly better IMO.

--selective-sao 1 also seems to work well from my testing, subjectively better than disabling it entirely IMO.

Last edited by markiemarcus; Today at 15:41.
markiemarcus is online now   Reply With Quote
Old Today, 16:19   #7231  |  Link
_kermit
Registered User
 
Join Date: Apr 2017
Posts: 14
Quote:
Originally Posted by markiemarcus View Post
As mentioned above, I'd also look at Aq mode 3 with the default AQ strength. You may even be able to get better results (at the same file size) with around 0.85, even lower if the source is very grainy.

Additionally, I have yet to see any real detail benefit to no-strong-intra-smoothing. I'd also avoid disabling deblocking and, if grain retention is still a priority, use some light deblocking instead. I've had good results with -4: -1 and -3: -3, with the former being slightly better IMO.

--selective-sao 1 also seems to work well from my testing, subjectively better than disabling it entirely IMO.
thanks both.

I've gathered those parameters from many sources, and honestly have mostly no clue about the impact.

Something like this?

--preset slow --vbv-maxrate 20000 --deblock=-4:-1 --amp --aq-strength 0.85 --qcomp 0.7 --selective-sao 1 --rskip --output-depth 10 --Aq-mode 3

I don't care about grain. Grain is IMO just noise.
And while I understand that old material just has to have grain I don't understand why there is grain in newer material.

If grain can be reduced without having other negative effects on a movie, that would also be fine.
I don't analyze still pics, I don't see a point there. I'm not watching still pics.

would the above be a good compromise, sufficient, or is there more to fine tune?

-roland
_kermit is offline   Reply With Quote
Old Today, 17:19   #7232  |  Link
markiemarcus
Registered User
 
Join Date: May 2018
Posts: 11
Quote:
Originally Posted by _kermit View Post
thanks both.

I've gathered those parameters from many sources, and honestly have mostly no clue about the impact.

Something like this?

--preset slow --vbv-maxrate 20000 --deblock=-4:-1 --amp --aq-strength 0.85 --qcomp 0.7 --selective-sao 1 --rskip --output-depth 10 --Aq-mode 3

I don't care about grain. Grain is IMO just noise.
And while I understand that old material just has to have grain I don't understand why there is grain in newer material.

If grain can be reduced without having other negative effects on a movie, that would also be fine.
I don't analyze still pics, I don't see a point there. I'm not watching still pics.

would the above be a good compromise, sufficient, or is there more to fine tune?

-roland
It's very difficult to compare without 2-pass, but I'd also ditch qcomp 0.7 . Between that and the Aq strength changes, bitrate at CRF 22 is going to drop quite a lot, so I'd maybe look at using a lower CRF. Maybe start around CRF 20.5 and see how you get on?

Perhaps keep AQ strength at the default of 1.0 for the time being. You really need 2-pass and short scene tests to find the optimal value.

Last edited by markiemarcus; Today at 17:30.
markiemarcus is online now   Reply With Quote
Old Today, 17:20   #7233  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 4,632
Losing grain means also losing details, but --selective-sao 1 probably helps with that. SAO used to be one option to disable (I still disable it completely myself), because it just smoothed everything. Otherwise, your settings should be a good basis. I don't know much about the inner workings of the deblocking feature, but I use --deblock -2:-2 myself.
__________________
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
Old Today, 17:40   #7234  |  Link
markiemarcus
Registered User
 
Join Date: May 2018
Posts: 11
Quote:
Originally Posted by Boulder View Post
Losing grain means also losing details, but --selective-sao 1 probably helps with that. SAO used to be one option to disable (I still disable it completely myself), because it just smoothed everything. Otherwise, your settings should be a good basis. I don't know much about the inner workings of the deblocking feature, but I use --deblock -2:-2 myself.
Deblock -2:-2 usually looks nice from my testing also. I'd definitely give --selective-sao 1 a try. Helps with a few rough edges. You can really see the grain smearing start to kick in with --selective-sao 2 though.
markiemarcus is online now   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 18:35.


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