Hello guest, if you like this forum, why don't you register? https://fanrestore.com/member.php?action=register (December 14, 2021) x


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
x264 BD compliant "perfect" settings
#31
Okay, so let's have a look at the settings I generally use. First this is what the --preset values mean...

- medium: default settings:
(--b-adapt: 1 --direct spatial --me hex --rc-lookahead 40 --ref 3 --subme 7)
- slow:
--b-adapt 2 --direct auto --me umh --rc-lookahead 50 --ref 5 --subme 8
- slower:
--b-adapt 2 --direct auto --me umh --partitions all --rc-lookahead 60 --ref 8 --subme 9 --trellis 2

Those are probably the ones you want to look at for the most part. Note that of course blu-ray compatibility (/L4.1) is limited to 4 reference frames for 1080p and 5 for 720p (not 9, although it is a legal value for L4.1 it's not for BD), and the default partitions setting (so setting --ref above "5" or --partitions to "all" has no effect).

Here are my usual settings:

Code:
--tune film --profile high --level 4.1 --bluray-compat --threads 8 --keyint 230 --open-gop --b-adapt 2 --b-bias 3 --slices 4 --vbv-bufsize 14000 --vbv-maxrate 14000 --aq-strength 1.5 --me umh --ref 4
Reply
Thanks given by:
#32
Thanks for your hints!

I left out --open-gop because I noted some standalone players seem to not like it a lot... am I wrong?
Reply
Thanks given by:
#33
--open-gop (or open_gop=1 ?) seems to be necessary for MPC-HC to seek properly.
Reply
Thanks given by:
#34
Andrea- Closed GOP has advantages, each GOP is self-contained so you'll be able to split the file losslessly at any GOP. Open GOP means if you want to split your (already encoded) file losslessly you have to find a closed GOP (and most will be open) - if you cut the video at an Open GOP your last B-frame will suffer a loss of information. That might be required if you were planning on making a mutli-angle video for instance, but you can get around that limitation by simply encoding the file in parts in the first place.

I believe seeking is only a problem for the MP4 container, which hardly anyone would want to use over MKV nowadays. It shouldn't cause any issues with M2TS files. I believe it's because MP4 thinks that GOPs are the seek points rather than the RAPs (random access points) encoded in the x264 bitstream. But yes, you're right, the MP4 container can't correctly handle Open-GOP material.
Reply
Thanks given by:
#35
I had the seeking problem with both M2TS and MKV.
Reply
Thanks given by:
#36
Well it certainly shouldn't, because it's a part of the blu-ray spec. Although you don't have to use it when encoding, players must support it.

Did you have any trouble with the Jurassic Park MKV seeking (assuming that you downloaded it)?
Reply
Thanks given by:
#37
No, because JP release has open gop. Smile

It's a part of BD spec, but I'm only talking about MPC-HC (and likely other players) having problems with closed gop.
Reply
Thanks given by:
#38
That's interesting because my MPC-HC has no issues (1.7.9 x64) - it can even seek from MP4 files which have open-gop x264 streams in them. My guess is it's an issue with the decoder and not MPC itself. Although if you're already using the latest version of LAV then I'm out of ideas. Smile
Reply
Thanks given by:
#39
It happened on various versions of MPC-HC and LAV, including the most recent one, for me and at least one more person. No idea why, VLC played the file fine.
Reply
Thanks given by:
#40
...it seems I should use the open gop at the end! Big Grin
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Help] Best Topaz Video Enhance settings ? mysun 6 1,298 2024-10-24, 01:01 PM
Last Post: SHM
  [Help] How to convert Dolby Vision Profile 8 to 7 to make it UHD BD compliant? Red41804 5 488 2024-10-24, 12:59 PM
Last Post: SHM
  xvYCC for x264 nightstalkerpoet 10 9,124 2023-03-15, 10:42 PM
Last Post: Falcon
  x265 UHD-BD compliant "perfect" settings spoRv 18 16,978 2021-12-06, 06:12 PM
Last Post: bronan
  I want to change AR, do I have to re-encode? If so, how can I keep original settings? Onti 3 2,462 2021-07-14, 06:28 PM
Last Post: Onti
  x264 - filesize output calculator for 2-pass and CRF ? loa 7 5,464 2020-08-05, 10:30 PM
Last Post: spoRv
  NVenc Test Settings Chewtobacca 2 2,511 2020-08-04, 07:56 PM
Last Post: Chewtobacca
  [Idea] x264 BD compliant "perfect" settings - faster version spoRv 26 21,403 2020-05-11, 08:36 PM
Last Post: Stamper
  Handbrake settings - question JackForrester 3 3,432 2020-03-21, 09:25 PM
Last Post: deleted user
  x264 encoding from Adobe Premiere DoomBot 26 20,684 2019-03-25, 08:26 PM
Last Post: jaminmc

Forum Jump:


Users browsing this thread: 17 Guest(s)