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
#21
It will take seven days and one week... Wink

Of course, if you have another video file, you could replace it with your file.avi (or another extension); it should work!
Reply
Thanks given by:
#22
Just one more question. Are DVD compliant MPEG2 streams also BD compliant? Can I just put them into a BD without transcoding or changing anything?
Reply
Thanks given by:
#23
I haven't tried it (yet), but AFAIK the only difference is the container (vob in the DVD, m2ts in the BD); so, demuxing the video from vob and remuxing it in m2ts should work, with no transcoding at all!
Reply
Thanks given by:
#24
Okay, so I've tried your settings. At first pass 2 wouldn't work because pass 1 didn't generate a .stats.mbtree file. I could fix this by changing "--preset ultrafast" to "--preset faster". Does this happen to anyone else? After that, it worked fine, but I did get this warning: "x264 [warning]: direct=auto not used on the first pass." Does this cause any significant problem?

EDIT: I forgot to mention, the image quality with these settings is superb.
Reply
Thanks given by:
#25
Ok so i added --weightp 0 in MeGUI but for some reason it won't let me disable open-gop. Any thoughts?

program --level 4.1 --bluray-compat --preset slow --tune grain --pass 2 --bitrate 23500 --stats ".stats" --keyint 24 --open-gop --b-pyramid none --weightp 0 --slices 4 --vbv-bufsize 30000 --vbv-maxrate 40000 --colorprim bt709 --transfer bt709 --colormatrix bt709 --merange 24 --sar 1:1 --output "output" "input"

Film Addict    
Reply
Thanks given by:
#26
Here you are the settings you could use with x264:

pass 1:

Quote:x264 --pass 1 --bitrate 23500 --bluray-compat --level 4.1 --preset fast  --tune film --keyint 24 --sar 1:1 --slices 4 --vbv-bufsize 30000 --vbv-maxrate 40000 --b-pyramid none --weightp 0 --colorprim bt709 --transfer bt709 --colormatrix bt709 --merange 24 --stats ".stats" --output NUL "input_filename.avi"

pass 2:

Quote:x264 --pass 2 --bitrate 23500 --bluray-compat --level 4.1 --preset slow  --tune film --keyint 24 --sar 1:1 --slices 4 --vbv-bufsize 30000 --vbv-maxrate 40000 --b-pyramid none --weightp 0 --colorprim bt709 --transfer bt709 --colormatrix bt709 --merange 24 --stats ".stats" --output "ouput_filename.264" "input_filename.avi"

just copy the x264.exe file in the source folder, open a DOS window, copy all the pass 1 settings, paste, wait for the process to finish, then copy pass 2, paste, done! Wink

Edit: you could always use --tune grain that *maybe* is better with film source
Reply
Thanks given by:
#27
Perfect, i'll do a test right now!

Yes tune grain will definitely be used for. I did a test encode and grain was so much better with that.

Thanks Andrea

I did a test, one thing though, is this normal?

[Image: 2PFIDfe.png]

Does AVISource now it's MagicYUV used?

Film Addict    
Reply
Thanks given by:
#28
Yep, it knows somehow... don't ask me how! Big Grin
Reply
Thanks given by:
#29
Ok, as long as it's good to go, then i'll ignore the red test and error.

Film Addict    
Reply
Thanks given by:
#30
(2015-01-31, 06:32 PM)spoRv Wrote: Hello to eveyone, I think it's time to share the "perfect" settings to use with x264, to obtain a BD compliant file; what you will get is a .264 file that could be used with any authoring software - I use MultiAVCHD, but also Easy BD Light is a good software, but the latter doesn't allow you to make menus... thanks to many OT members, in particular Chewtobacca, that helped me to find out these settings!

Code:
pass 1:
x264 --pass 1 --bitrate XXXXX --bluray-compat --level 4.1 --preset ultrafast  --tune film
--keyint 24 --sar 1:1 --slices 4 --vbv-bufsize 30000 --vbv-maxrate 40000 --b-pyramid none
--weightp 0 --colorprim bt709 --transfer bt709 --colormatrix bt709 --merange 24
--stats ".stats" --output NUL "project_file.avs"
pass 2:
x264 --pass 2 --bitrate XXXXX --bluray-compat --level 4.1 --preset slow  --tune film
--keyint 24 --sar 1:1 --slices 4 --vbv-bufsize 30000 --vbv-maxrate 40000 --b-pyramid none
--weightp 0 --colorprim bt709 --transfer bt709 --colormatrix bt709 --merange 24
--stats ".stats" --output "project_final_output.264" "project_file.avs"
There's very little difference between setting --preset slow and --preset ultrafast on the first pass since x264 uses faster settings for the first pass anyway (they are: --no-8x8dct --me dia --partitions none --ref 1 --subme {2 if >2 else unchanged} --trellis 0 --fast-pskip). There's no need to specify --sar 1:1 since that's the default. I'll post back with the settings I use soon.

I'm pretty sure you don't need to specify the --colormatrix, Rec.709 is the assumed colorspace for standard HD material. Same for --colorprim (in fact if anything, you set it to what the original material was set to if it was different to Rec.709). --transfer, again, is assumed Rec.709 for HD material. So there's no need to specify any of that, and in fact using those specifications for something that came from a SD source is incorrect (the correct settings would vary depending on the source, but Rec.601 is  what you want for something originating from a Laserdisc, a DVD, or a SD broadcast, at least most of the time and depending on the source itself). Of course any decent conversion will use that avisynth file to output a Rec.709 correct picture and render tinkering with the colorspace settings irrelevant since AVC defaults to Rec.709 even for SD material (at least that's my understanding). In short: leave those settings alone unless you need to change them to something other than Rec.709.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
  xvYCC for x264 nightstalkerpoet 10 7,563 2023-03-15, 10:42 PM
Last Post: Falcon
  x265 UHD-BD compliant "perfect" settings spoRv 18 14,468 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 1,905 2021-07-14, 06:28 PM
Last Post: Onti
  x264 - filesize output calculator for 2-pass and CRF ? loa 7 4,352 2020-08-05, 10:30 PM
Last Post: spoRv
  NVenc Test Settings Chewtobacca 2 2,019 2020-08-04, 07:56 PM
Last Post: Chewtobacca
  [Idea] x264 BD compliant "perfect" settings - faster version spoRv 26 18,616 2020-05-11, 08:36 PM
Last Post: Stamper
  Handbrake settings - question JackForrester 3 2,770 2020-03-21, 09:25 PM
Last Post: deleted user
  x264 encoding from Adobe Premiere DoomBot 26 17,747 2019-03-25, 08:26 PM
Last Post: jaminmc
  Tools and settings for compressing x264? NeonBible 1 2,299 2019-01-11, 12:01 PM
Last Post: MrBrown
  [Help] DNxHR to x264? Valeyard 2 2,905 2018-12-26, 10:16 AM
Last Post: deleted user

Forum Jump:


Users browsing this thread: 1 Guest(s)