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. |
|
|
Thread Tools | Search this Thread | Display Modes |
16th July 2021, 22:35 | #1 | Link |
Registered User
Join Date: May 2020
Posts: 74
|
Dialing in Settings for x264 8-bit Transparent Blu-Ray Encodes
Hey guys,
I have learned so much in the past few months, it is just crazy! I am encoding a large blu-ray collection at the highest quality (transparent to source) and had some questions. The main settings that I am having a bit of trouble with are aq-strength, qcomp, psy-rdo, and ip/pb ratio. Here is what I do for each encode - I do test samples to find the highest CRF I can get away with to maintain transparency to the source. I use avspmod to interleave the source to encode. I do samples of CRF 15-20 and find the highest value that is transparent to the source throughout the test scenes. Once I have found my ideal CRF value, I switch to 2-pass using the bitrate I retrieved from the CRF testing and dial in aq-strength, qcomp, psy-rdo, ip/pb ratio mainly. Once those settings are found, then I go back and test it with the CRF value in another test and as long as the latest sample encode is transparent to the source throughout, that's my ideal settings for the live action blu-ray. Are there any general rules that I can use for each movie and if it looks good, then just find the right CRF value and encode it? For instance, modern digitally shot movies typically doesn't have as much grain as a 1980's movie. So right away, couldn't we do a preset for digitally shot modern movies, one preset for grain, then another one for animation and call it a day? From what I have gathered in my review samples, here is what I have came to the conclusion to on these settings using a "normal live action modern movie as an example. Normal Live Action Modern Movies - deblock -3:-3, q comp between .6-.65, IP Ratio 1.3, PB Ratio 1.2, AQ Mode 3, AQ Strength .8, Psy-RDO- between 1 and 1.05. Please let me know your thoughts on how I can better dial in aq-strength, psy-rdo, qcomp, ip/pb ratio, and even CRF values. My goal is to save space, but I am willing to only save 30% file size of the source to have high transparency to the source. *I guess I just need some of these settings simplified a bit more in laymen terms. So it seems like a value of psy-rdo 1.10-1.15 may work better for grainy movies because the goal of psy-rdo is to sharpen the picture a bit more so to preserve detail, we may want to do that on the grainier source. I should point out that I always keep the trellis strength at 0. * Thanks for any help. I really appreciate it guys. It means a lot and I'm just trying to get everything dialed in a bit more so I can encode more movies. Last edited by StormMeows; 17th July 2021 at 03:50. |
17th July 2021, 03:12 | #2 | Link |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
|
I am sorry to inform you that your process is not a good one.
You need to pick aq-strength, qcomp, psy-rdo, ip/pb ratio while encoding using 2-pass so you are always comparing files of the same size. Only after you have figured out all your settings can you tune crf values. --tune grain/film/animation
__________________
madVR options explained |
17th July 2021, 03:48 | #3 | Link | |
Derek Prestegard IRL
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,988
|
Quote:
|
|
17th July 2021, 03:48 | #4 | Link | |
Registered User
Join Date: May 2020
Posts: 74
|
Quote:
|
|
17th July 2021, 03:52 | #5 | Link |
Registered User
Join Date: May 2020
Posts: 74
|
I usually take the bitrate that I got from my CRF transparency testing and use the highest CRF that looks like the source, then use that bitrate to test all of the various settings in 2 pass mode. Also, I have noticed a lot when comparing settings, it seems like the encode will make people's eyes blacker and create shadows around them. It sometimes makes their pupils bigger as well. What settings are affecting these kind of things? Any help with testing for transparency would be great. Thanks
|
17th July 2021, 08:02 | #6 | Link |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
|
Ah, that is good then. Ignore me.
__________________
madVR options explained |
17th July 2021, 17:22 | #7 | Link |
Registered User
Join Date: May 2020
Posts: 74
|
I appreciate the help man. I just forgot to put that in there. I noticed early on that if I try to test settings with the same CRF, it yielded completely different results and bitrates. For some of these settings like adjusting the qcomp or ip/pb ratios, will the tests even look much different? I have to either zoom in to 200% or get really close to my monitor to see any changes. Even then, it is usually just grain shift or the new settings create like dark shadows around people's eyes or their pupils get bigger/blacker.
|
17th July 2021, 23:48 | #8 | Link |
Registered User
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
|
Maybe try with a lower bitrate to exaggerate the differences. Then it isn't exactly the same situation, but if you start with bitrates that seem transparent then by definition it is going to be really hard to spot any differences.
__________________
madVR options explained |
18th July 2021, 03:44 | #9 | Link |
Registered User
Join Date: May 2020
Posts: 74
|
That's very true! I completely understand what you're saying. All in all, if I use a lower CRF like 16-18, then wouldn't you say that the settings matter as much? From my testing so far, if I give it enough bitrate (typically CRF 16-18) then I can usually use the same settings for each movie and be fine. I haven't noticed too many differences when the bitrate is pretty transparent. I should technically be able to use the same settings for each bluray live action movie unless it is very grainy or animation, right? Also, what are some examples of really grainy movies? Most movies have grain in them and some really grainy scenes but I haven't ran into too many that are just crazy grainy. Probably like 60s, 70s, 80s movies mainly? On really grainy movies I should be able to just increase the qcomp a bit and lower aq-strength from my typical live action value. Thanks
|
18th July 2021, 10:17 | #10 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,308
|
Test and compare to tune and check effects of settings are difficult, because... If bitrate is too high (or result is too good) differences are hard to see. Opposite is also true, if bitrate is too low (or result too bad). You have to find the threshold bitrate, where things are not too good and not too bad, to be able to realy see if any change setting has significant effect. It's realy not easy.
__________________
My github. |
18th July 2021, 15:21 | #11 | Link | |
Registered User
Join Date: May 2020
Posts: 74
|
Quote:
|
|
29th July 2021, 07:24 | #12 | Link | |
None
Join Date: Jul 2007
Location: The Background
Posts: 303
|
Quote:
I don't change q comp, IP Ratio, PB Ratio, Psy-RDO, I leave them at their defaults. Here are my settings that I use for most of my Blu-ray live action movie backups: Code:
C: cd "C:\FFmpeg 2019\bin" ffmpeg.exe -i "D:\Project\AviSynth Scripts\BluRay.avs" -codec:v libx264 -preset slower -crf 20 -deblock -3:-3 -aq-mode 3 -aq-strength 0.6 -g 240 -keyint_min 24 -x264-params no-dct-decimate=1:no-mbtree=1 -an D:\Project\Output.mp4 pause Last edited by orion44; 3rd August 2021 at 11:01. |
|
29th August 2021, 19:27 | #14 | Link | |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
|
Quote:
Bluray encodes need to respect a whole bunch of things which harm compression, like --keyint 24 --ref 4 etc. The thing about the GOP etc were implemented to make life easier for hardware decoders but when you're re-encoding for your own personal use you might just not care about those if you're planning to watch them on your computer with a powerful enough CPU. Therefore, even something as simple as --preset placebo --ref 16 --me esa --subme 11 and no restrictions to the GOP / keyframe about having 1 keyframe per second allows the user to save space. And of course, there's the bitrate question: specifying a --crf is a much more efficient way than using a two pass VBR encode with vbv/maxrate constraints to stay within the maximum allowed bitrate like the one used by the studios, also 'cause I've noticed that some studios (I'm looking at you, Aniplex) encoded at CBR 1 pass with a certain number of lookahead frames and never looked back. Sure, it's not gonna be such a huge reduction and sure, you're always gonna lose something 'cause it's the lossy of the lossy, but still, cutting out x264 to re-encode official BDs only 'cause there's x265 seems a bit harsh eheheheh Last edited by FranceBB; 29th August 2021 at 19:30. |
|
29th August 2021, 19:47 | #15 | Link | |
Registered User
Join Date: Dec 2013
Posts: 343
|
Quote:
|
|
31st August 2021, 10:32 | #16 | Link |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
|
Yep, I know, but in all my tests with x264, it actually does benefit from 2 passes even when in CBR compared to just using a lookahead, while 3 passes were totally useless.
|
Thread Tools | Search this Thread |
Display Modes | |
|
|