Page 1 of 1

Blu-Ray-compliant setting/preset for use in TMPGEnc Authoring Works

Posted: Sun Jul 07, 2019 8:27 am
by cddb2
Description of problem or question:
I want to compress some videos using Handbrake 1.2.2 to use in TMPGEnc Authoring Works to create a custom Blu-Ray disc. But the files I made so far are usually not accepted by Authoring Works and would be re-compressed again. If someone could point me to the correct settings or a preset I would be extremely grateful.


HandBrake version (e.g., 1.0.0):
1.2.2



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows10

HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake 1.2.2 (2019022300)
OS: Microsoft Windows NT 10.0.18362.0
CPU: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
Ram: 16328 MB, 
GPU Information:
  NVIDIA GeForce GTX 1080 - 26.21.14.3118
Screen: 1920x1080
Temp Dir: C:\Users\D\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\D\AppData\Roaming\HandBrake

-------------------------------------------

Re: Blu-Ray-compliant setting/preset for use in TMPGEnc Authoring Works

Posted: Sun Jul 07, 2019 11:28 pm
by mduell
Why not just encode with TMPGEnc from your source?

Re: Blu-Ray-compliant setting/preset for use in TMPGEnc Authoring Works

Posted: Mon Jul 08, 2019 2:05 am
by cddb2
mduell wrote:
Sun Jul 07, 2019 11:28 pm
Why not just encode with TMPGEnc from your source?
I only have Authoring Works, not the Video Mastering-Suite. On top of that, I need to add some subtitles to the video and the subtitle-support in TMPG-software is not as robust as I like to, so just burning-in the subs into the video with Handbrake would make thing a lot easier for me.
I have also tried to add the parameters from http://www.x264bluray.com/ to the Handbrake-encode, but the resulting file still wasn’t up to the BD-standard.

Re: Blu-Ray-compliant setting/preset for use in TMPGEnc Authoring Works

Posted: Mon Jul 08, 2019 2:24 am
by Woodstock
Having the encode log will help here. There are several things mentioned on your link, like forcing CFR, that might not be happening. But, only the logs will tell us that.

Re: Blu-Ray-compliant setting/preset for use in TMPGEnc Authoring Works

Posted: Mon Jul 08, 2019 6:22 am
by musicvid
BluRay compatible switch in x264 has never worked. Neither have other schemes to produce compliant BluRay files for my authoring programs. They all end up being re-encoded.

Re: Blu-Ray-compliant setting/preset for use in TMPGEnc Authoring Works

Posted: Mon Jul 08, 2019 10:45 am
by cddb2
Here some more info:

My "Video"-tab-settings in Handbrake: https://i.imgur.com/RR87xOS.jpg

What Authoring Works is "complaining" about: https://i.imgur.com/pgBD6mI.jpg

My Encode-Log: https://pastebin.com/TDQxqKvx

Anyway, thanks for all the help, really appreciated!

Re: Blu-Ray-compliant setting/preset for use in TMPGEnc Authoring Works

Posted: Thu Jul 18, 2019 3:45 am
by cddb2
Replying to myself here, I figured out the command-chain to make Handbrake encode a BluRay-compliant file:

https://i.imgur.com/kBlqmTa.png


Code: Select all

bluray-compat=:vbv-maxrate=40000:vbv-bufsize=30000:keyint=24:open-gop=:slices=4:colorprim=bt709:transfer=bt709:colormatrix=bt709:level=4.1:ref=4:bframes=8:b-adapt=2:direct=auto:deblock=-1,-1:analyse=all:me=umh:merange=24:subme=10:trellis=2:psy-rd=1,0.15:rc-lookahead=60
By using those settings (and AC3 as sound-codec) TMPG Authoring Works (and probably others) will accept the file without re-encoding.

Re: Blu-Ray-compliant setting/preset for use in TMPGEnc Authoring Works

Posted: Thu Jul 18, 2019 8:57 am
by Rodeo
cddb2 wrote:
Thu Jul 18, 2019 3:45 am

Code: Select all

bluray-compat=:vbv-maxrate=40000:vbv-bufsize=30000:keyint=24:open-gop=:slices=4:colorprim=bt709:transfer=bt709:colormatrix=bt709:level=4.1:ref=4:bframes=8:b-adapt=2:direct=auto:deblock=-1,-1:analyse=all:me=umh:merange=24:subme=10:trellis=2:psy-rd=1,0.15:rc-lookahead=60
It should be bluray-compat=1 in HandBrake; bluray-compat= may work but it's not correct syntax. Same for open-gop. The bframes and some other options are overridden by bluray-compat, BTW.

Here's the minimum amount of options you need in the advanced options text box for 1080p24:

Code: Select all

bluray-compat=1:vbv-maxrate=40000:vbv-bufsize=30000:keyint=24:open-gop=1:slices=4:colorprim=bt709:transfer=bt709:colormatrix=bt709
Other options can be set using dedicated drop-down widgets:

- frame rate to CFR (constant framerate)

- frame rate to 23.976 or 24 frames per second depending on the source video's frame rate
>>> (or 25, 29.97, 30 if the source is that, don't forget you can then adjust the keyint value to 25 or 30, respectively)

- encoder preset and tune as desired, they have no effect on Blu-ray compatibility

- H.264 level to 4.1 via the dedicated drop-down

- H.264 profile to High or Auto

Re: Blu-Ray-compliant setting/preset for use in TMPGEnc Authoring Works

Posted: Fri Jul 19, 2019 7:48 pm
by musicvid
Here is a link a developer friend used to get files from x264 that work in TMPGENC Authoring.
http://www.x264bluray.com/

He reports success using a command line like this (in Happy Otter Scripts)

Code: Select all

ffmpeg -y -i <inAVS> -c:v libx264  -pix_fmt yuv420p -b:v 35000k  -preset medium -tune film -level:v 4.1 --x264-params  bluray-compat --vbv-maxrate 40000 --vbv-bufsize 30000 --keyint 60 --open-gop --slices 4 --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 -an  <outFile>.mp4

Re: Blu-Ray-compliant setting/preset for use in TMPGEnc Authoring Works

Posted: Fri Jul 19, 2019 7:54 pm
by Rodeo
musicvid wrote:
Fri Jul 19, 2019 7:48 pm
He reports success using a command line like this (in Happy Otter Scripts)

Code: Select all

ffmpeg -y -i <inAVS> -c:v libx264  -pix_fmt yuv420p -b:v 35000k  -preset medium -tune film -level:v 4.1 --x264-params  bluray-compat --vbv-maxrate 40000 --vbv-bufsize 30000 --keyint 60 --open-gop --slices 4 --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 -an  <outFile>.mp4
He's lucky, this is not correct syntax for the --x264-params command:

https://trac.ffmpeg.org/wiki/Encode/H.2 ... etsettings

Re: Blu-Ray-compliant setting/preset for use in TMPGEnc Authoring Works

Posted: Sat Jul 20, 2019 6:00 pm
by musicvid
The reason it's different is because HOS runs AVS, VDub, ffmpeg, and Debugmode frameserver modules simultaneously in Vegas. Are the quoted --x264-params not correct syntax? He says these work for TMPGENC but not Architect.

Code: Select all

  --x264-params  bluray-compat --vbv-maxrate 40000 --vbv-bufsize 30000 --keyint 60 --open-gop --slices 4 --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 -an  <outFile>.mp4 

Re: Blu-Ray-compliant setting/preset for use in TMPGEnc Authoring Works

Posted: Sat Jul 20, 2019 7:44 pm
by Rodeo
musicvid wrote:
Sat Jul 20, 2019 6:00 pm

Code: Select all

  --x264-params  bluray-compat --vbv-maxrate 40000
You tell me, is --vbv-maxrate an argument to --x264-params or an ffmpeg option?

Re: Blu-Ray-compliant setting/preset for use in TMPGEnc Authoring Works

Posted: Sat Jul 20, 2019 9:21 pm
by musicvid
Not sure I understand.
Single-dash ffmpeg, double-dash x264, colon Handbrake?
The line runs in HOS (just checked it), and I see now it is identical to that given above by the OP, but in Handbrake syntax. That said, I just copied it, no idea how well it works for TMPGENC Authoring.

HOS runs commands to several modules concurrently and consecutively using frameserver, then chains them to a single output. I have no idea how Wayne did it.
https://tools4vegas.com/home/