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

Discuss encoding for devices and presets.
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
cddb2
Posts: 4
Joined: Sun Jul 07, 2019 8:20 am

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

Post by cddb2 » Sun Jul 07, 2019 8:27 am

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

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

mduell
Veteran User
Posts: 6589
Joined: Sat Apr 21, 2007 8:54 pm

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

Post by mduell » Sun Jul 07, 2019 11:28 pm

Why not just encode with TMPGEnc from your source?

cddb2
Posts: 4
Joined: Sun Jul 07, 2019 8:20 am

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

Post by cddb2 » Mon Jul 08, 2019 2:05 am

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.

Woodstock
Veteran User
Posts: 3154
Joined: Tue Aug 27, 2013 6:39 am

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

Post by Woodstock » Mon Jul 08, 2019 2:24 am

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.

musicvid
Veteran User
Posts: 3243
Joined: Sat Jun 27, 2009 1:19 am

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

Post by musicvid » Mon Jul 08, 2019 6:22 am

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.

cddb2
Posts: 4
Joined: Sun Jul 07, 2019 8:20 am

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

Post by cddb2 » Mon Jul 08, 2019 10:45 am

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!

cddb2
Posts: 4
Joined: Sun Jul 07, 2019 8:20 am

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

Post by cddb2 » Thu Jul 18, 2019 3:45 am

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.

User avatar
Rodeo
HandBrake Team
Posts: 12141
Joined: Tue Mar 03, 2009 8:55 pm

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

Post by Rodeo » Thu Jul 18, 2019 8:57 am

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

musicvid
Veteran User
Posts: 3243
Joined: Sat Jun 27, 2009 1:19 am

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

Post by musicvid » Fri Jul 19, 2019 7:48 pm

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

User avatar
Rodeo
HandBrake Team
Posts: 12141
Joined: Tue Mar 03, 2009 8:55 pm

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

Post by Rodeo » Fri Jul 19, 2019 7:54 pm

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

musicvid
Veteran User
Posts: 3243
Joined: Sat Jun 27, 2009 1:19 am

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

Post by musicvid » Sat Jul 20, 2019 6:00 pm

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 
Last edited by musicvid on Sat Jul 20, 2019 9:34 pm, edited 1 time in total.

User avatar
Rodeo
HandBrake Team
Posts: 12141
Joined: Tue Mar 03, 2009 8:55 pm

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

Post by Rodeo » Sat Jul 20, 2019 7:44 pm

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?

musicvid
Veteran User
Posts: 3243
Joined: Sat Jun 27, 2009 1:19 am

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

Post by musicvid » Sat Jul 20, 2019 9:21 pm

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/

Post Reply