Log in

View Full Version : x264 encoder settings for Nero Video?


Morku
21st September 2015, 16:02
Hi,

I know, Nero is propably not the things you would recommend for authoring Blu-ray.
I would like to use Nero, because it's user friendly to create fast a Blu-ray or DVD.
Nero Video includes SmartEncoding which copy 100% compatible Blu-ray files without reencoding, but propably Nero have it own rules for a 100% Blu-ray file.
To create a Blu-ray file for 50i, I oriented to this site: http://www.x264bluray.com/home/1080i

Nero gives my result sometimes a 100% compatible, sometimes 91% or a completly 0%. It's random if Nero accept my file, but there is never a hint whats the problem with my file.
This are my current x264 settings:
program --level 4.1 --bluray-compat --preset veryslow --tune film --pass 2
--bitrate 25000 --stats ".stats" --keyint 25 --open-gop --slices 4 --vbv-bufsize 30000
--vbv-maxrate 40000 --tff --colorprim bt709 --transfer bt709 --colormatrix bt709 --sar 1:1 --output "output" "input"

After encoding Media Info gives me that result:
General
ID : 1 (0x1)
Complete name : G:\BluRay1.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 2.00 GiB
Duration : 9mn 6s
Overall bit rate mode : Variable
Overall bit rate : 31.4 Mbps
Maximum Overall bit rate : 35.5 Mbps

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : 27
Duration : 9mn 6s
Bit rate mode : Variable
Bit rate : 30.1 Mbps
Maximum bit rate : 40.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.581
Stream size : 1.92 GiB (96%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

and Nero gave it a 0% :\
To find out whats the problem and what Nero may like to see, I let Nero encode itself and this is the result:
General
ID : 0 (0x0)
Complete name : G:\test2\BDMV\STREAM\00000.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 34.0 MiB
Duration : 8s 825ms
Overall bit rate mode : Variable
Overall bit rate : 32.2 Mbps
Maximum Overall bit rate : 48.0 Mbps

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Format settings, GOP : M=3, N=12
Codec ID : 27
Duration : 9s 80ms
Bit rate mode : Variable
Bit rate : 30.9 Mbps
Maximum bit rate : 37.5 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.597
Stream size : 33.5 MiB (99%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

The only big differences I found out are in:
Format settings, ReFrames : 2 frames
Format settings, GOP : M=3, N=12
Standard : PAL

To get ReFrames 2, I changed "Number of References Frames" to 2 and Disabled B-Pyramid, but I don't know how to get the M=3 and N=12 entry. Maybe Nero also feels better when it contains the "PAL" entry, but I also don't know how to add.

Whats your advice? I searched many times to find out how SmartEncoding works and how to set up x264 to get always (without luck) a 100% compatible file. Or can I just replace 00000.m2ts with my file? Thank you!

sneaker_ger
21st September 2015, 16:12
How did you obtain m2ts files? x264 does not support m2ts output.
Use --fps command to make sure frame rate mode is exactly correct. (e.g. --fps 25)

Morku
21st September 2015, 16:18
How did you obtain m2ts files? x264 does not support m2ts output.
Use --fps command to make sure frame rate mode is exactly correct. (e.g. --fps 25)

I encoded RAWAVC 264 with MeGUI and muxed with tsMuxeR GUI 2.6.12. It should be unnecessary, becase Nero also supports mp4, mkv...
Should I add --fps 25 by myself or there is a switch in the x264 GUI? (It's not enough that MediaInfo output Frame rate: 25.000 fps?)

sneaker_ger
21st September 2015, 16:26
BluRay needs constant frame-rate flag and correct fps value. Since you used MeGUI it will probably already be correct but you can add it to be sure.
Does Nero not allow raw avc input?

Morku
21st September 2015, 16:29
No, it doesn't:
http://i.imgur.com/8iVXojK.png