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
#1
Thumbs Up 
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; also Easy BD Light is a good software, but the latter doesn't allow you to make menus... I must admit lately I'm using only TSmuxeR, that, even if it doesn't make menus, it seems to produce good compliant files.

Thanks to many OT members, in particular Chewtobacca, that helped me to find out these settings!

NEW SETTINGS:
Code:
x264.exe --pass 1 --bitrate 25000 --bluray-compat --level 4.1 --preset veryslow --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_File.avs"

x264.exe --pass 2 --bitrate 25000 --bluray-compat --level 4.1 --preset veryslow --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 "Output_File.264" "Input_File.avs"

OLD SETTINGS:
Code:
pass 1:
x264 --pass 1 --bitrate 25000 --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 "Input_File.avs"

pass 2:
x264 --pass 2 --bitrate 25000 --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 "Output_File.264" "Input_File.avs"

replace 25000 with the desired average bitrate, 24 in the keyint with the video framerate (24 would do for 23.976 and 30 for 29.97), Input_File.avs with an AviSynth script (or a video file), and Output_File.264 with the final x264 file.

You can use them directly with the x264 command line - just copy and paste pass 1 settings then, when finished, copy and paste pass2 settings - or save as .bat file (thanks to Feallan for the idea), or use them inside some GUIs - the best so far IMHO is Simple x264 Launcher, but using any software that is not the original x264 command line could add some further setting that could lead to have a not-compliant file, so be aware, you are warned! And, do NOT delete any temp files you get after pass 1 (.stats and .stats.mbtree) because they will be used by pass 2!!!

HINTS:
  • these settings are good for 1080p video
  • pay attention to the BD size: actual ones are 23.3GB for BD-25 and 46.6GB for BD-50
  • allow about 7% overhead for the .m2ts container - for example, total file size (video+audio+subs) excluding eventual menus would be around 21.75GB for a BD-25, and 43.55 for a BD-50
  • to retain grain, better to not go under 20/22mbps for 2.35:1 and 28/30mbps for 1.78:1/1.85:1
  • max bitrate allowed for BD (video+audio) is 48mbps, so if audio tracks total bitrate is over 8mbps, you should lower video bitrate accordingly, in particular pay attention to --vbv-maxrate
  • to improve speed, you can use for pass 1 a "simpler" version of the final file, for example without noise reduction, grain plate, color grading, but it should be otherwise identical - same frame numbers, same resolution etc.

Hope it will help some user here; any feedback is really appreciated!
Reply
Thanks given by: bronan
#2
Do you know if this can be used in Adobe Premiere as an external encoder?

Film Addict    
Reply
Thanks given by:
#3
Frankly don't know... hope some Premiere user will chime in to give you some advice!
Reply
Thanks given by:
#4
I tried with the x264vfw variant out of premiere, and could not get it working. This was the actual render to .avi, not the BD compliant settings posted above. Outside of expensive plugins I don't know any other wat to get x264 directly out of premiere.

What I have done is

1. Output a dummy .avi from the premiere timeline using Advanced Frameserver.

2. Load the dummy .avi into MeGui.

3. Encoded using the settings from this thread.

I got a .h264 file that I could load into Adobe Encore without any re-coding flags, and it played fine on the PS3 (This was a BD9 as I do not have a BD burner.) 

I'm still experimenting myself, but these were possitive results. I Will put a more comprehensive tutorial together when ive prefected the process a little more if people want it, this will include how to export a 5.1 mix from premiere, which is actually a bit of a pain!
Reply
Thanks given by:
#5
An up to date tutorial would be appreciated.

I followed this guide to make a PS3 compliant disc for my Superman returns edit:
http://netblender.ning.com/forum/topics/...e=activity

It worked, but as you can see the page is 5 years old, so I'm sure there are better options available now.
Reply
Thanks given by:
#6
(2015-02-01, 03:09 AM)CSchmidlapp Wrote: I tried with the x264vfw variant out of premiere, and could not get it working. This was the actual render to .avi, not the BD compliant settings posted above. Outside of expensive plugins I don't know any other wat to get x264 directly out of premiere.

What I have done is

1. Output a dummy .avi from the premiere timeline using Advanced Frameserver.

2. Load the dummy .avi into MeGui.

3. Encoded using the settings from this thread.

I got a .h264 file that I could load into Adobe Encore without any re-coding flags, and it played fine on the PS3 (This was a BD9 as I do not have a BD burner.) 

I'm still experimenting myself, but these were possitive results. I Will put a more comprehensive tutorial together when ive prefected the process a little more if people want it, this will include how to export a 5.1 mix from premiere, which is actually a bit of a pain!

Hi CSchmidlapp,
What do you mean by dummy .avi? Is it a small file at that point with just information from Adobe or?

Film Addict    
Reply
Thanks given by:
#7
(2015-02-01, 03:40 PM)DoomBot Wrote:
(2015-02-01, 03:09 AM)CSchmidlapp Wrote: I tried with the x264vfw variant out of premiere, and could not get it working. This was the actual render to .avi, not the BD compliant settings posted above. Outside of expensive plugins I don't know any other wat to get x264 directly out of premiere.

What I have done is

1. Output a dummy .avi from the premiere timeline using Advanced Frameserver.

2. Load the dummy .avi into MeGui.

3. Encoded using the settings from this thread.

I got a .h264 file that I could load into Adobe Encore without any re-coding flags, and it played fine on the PS3 (This was a BD9 as I do not have a BD burner.) 

I'm still experimenting myself, but these were possitive results. I Will put a more comprehensive tutorial together when ive prefected the process a little more if people want it, this will include how to export a 5.1 mix from premiere, which is actually a bit of a pain!

Hi CSchmidlapp,
What do you mean by dummy .avi?  Is it a small file at that point with just information from Adobe or?

Hi Doombot, Hope you are well sir?

It basiclly turns Premiere into a frameserver, you have to leave premiere running while you do your encode through MeGui.
The dummy .avi is like you said, a small file containing information from the premiere timeline and can be loaded into anything on your machine that will except .avi files.

There are alternatives but this is working for me.

If you are going to try this use Advanced Frameserver and not DebugMode frameserver which its based on, as it does not work in CS6 or above. (Im on CS6)
Ive also had problems with audio, so turn that off in the frameserver plugin settings (available in Adobe Media Encoder when you are setting up your export)

Hope this helps, I will attempt a tutorial at somepoint.

(2015-02-01, 08:12 AM)Booshman Wrote: An up to date tutorial would be appreciated.

I followed this guide to make a PS3 compliant disc for my Superman returns edit:
http://netblender.ning.com/forum/topics/...e=activity

It worked, but as you can see the page is 5 years old, so I'm sure there are better options available now.

Thanks Booshman.
Will check this out.
Reply
Thanks given by:
#8
Thank you CSchmidlapp i'm doing very well indeed Smile

That's sounds like a good plan of attack instead of the internal encoder of premiere. Do you think the settings provided by Andrea could be used in MeGUI or could this method be done with another GUI?
You guys are a wealth of useful information.

Film Addict    
Reply
Thanks given by:
#9
(2015-02-01, 04:58 PM)DoomBot Wrote: Thank you CSchmidlapp i'm doing very well indeed Smile

That's sounds like a good plan of attack instead of the internal encoder of premiere. Do you think the settings provided by Andrea could be used in MeGUI or could this method be done with another GUI?
You guys are a wealth of useful information.

The setting's provided by Andrea are perfect if you are using the command line (cmd.xe) method to encode your .h264 file using x264.

MeGui is a frontend to control x264 and other plugins (AVIsynth scripts ect) and you access the x264 settings through its own GUI contained with in. I literally followed this tutorial here and got great results. There are multitude of other things you can also do filtering wise through MeGui's AVIsynth implementation. It's a great piece of software, abit of a learning curve, but very powerfull and worth your time. 

If like me you have very little experience with command line, go with MeGui.

I hope this all made sense.
Reply
Thanks given by:
#10
Yep it all made sense, i've done some command lines and scripts before out side of premiere of course. I'll check out MeGUI and Advanced Frameserver and see what happens.

Thanks again

Film Addict    
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 489 2024-10-24, 12:59 PM
Last Post: SHM
  xvYCC for x264 nightstalkerpoet 10 9,127 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,685 2019-03-25, 08:26 PM
Last Post: jaminmc

Forum Jump:


Users browsing this thread: 5 Guest(s)