First off, thanks OP for the awesome script, and obviously all the hard work on this project! Many props to you and this forums/group of members for looking into improving this idea.
For everyone on here, I have always been a 'custom is better' type of guy... so I tend to work outside the lane of the normal presets in handbrake, and optimize quite a bit for encoding. Using a few different resources I have built a template that works well except for a few final details that I can't seem to get to work right inside the script, and I am wondering if the community can help me on (and maybe you can benefit from my script as well? :D ).
I have not figured out how to get the DRC or GAIN to work correctly for the Audio Track. During the encode the DRC always shows up for the Audio Track as --drc 0.0 and the GAIN does not show up as all. I have tried putting both of these tags outside the --xtra section, and I have tried putting them both inside the --xtra section as well, but neither seems to work. Anyone get these to work? Also, if anyone is curious, I have provided some very helpful resources (links) at the bottom of this post that should shed some light at how I arrived at some of my custom settings.
So here is what I have so far.
For NON-DISNEY / OLDER-STYLE ANIMATION SPECIFIC MOVIES (in other words, everything else besides older animations + disney type movies), I use the following:
Code: Select all
hb.rb --input "H:\TEST\*\*.mkv" --main --titles 1 --output "I:\MOVIES (FS - Rips & Re-encodes)\#source_parentname#\#source_basename#.mkv" --autocrop --no-loose-anamorphic --skip-commentaries --quality 20 --decomb --detelecine --only-first-track-per-language --audio-track encoder=av_aac,mixdown=stereo,language=eng,arate=auto,bitrate=320 --xtra "-f mkv -e x264 --drc 2.5 --gain 3.0 --vfr -x level=4.1:no-fast-pskip:ref=4:bframes=8:b-adapt=2:direct=auto:me=umh:subme=10:merange=24:analyse=all:trellis=2:psy-rd=1.0,0.15:no-dct-decimate=1:deblock=-1,-1:vbv-bufsize=13000:vbv-maxrate=13000:crf=21:rc-lookahead=50 --verbose=1"
For DISNEY / OLDER-STYLE ANIMATION SPECIFIC MOVIES, I use the following:
Code: Select all
hb.rb --input "H:\TEST\*\*.mkv" --main --titles 1 --output "I:\MOVIES (FS - Rips & Re-encodes)\#source_parentname#\#source_basename#.mkv" --autocrop --no-loose-anamorphic --skip-commentaries --quality 20 --decomb --detelecine --only-first-track-per-language --audio-track encoder=av_aac,mixdown=stereo,language=eng,arate=auto,bitrate=320 --drc 2.5 --gain 3.0 --xtra "-f mkv -e x264 --vfr -x level=4.1:no-fast-pskip:ref=4:bframes=8:b-adapt=2:direct=auto:me=umh:subme=10:merange=24:analyse=all:trellis=2:psy-rd=0.4,0.00:no-dct-decimate=1:deblock=1,1:vbv-bufsize=13000:vbv-maxrate=13000:crf=21:rc-lookahead=50 --verbose=1"
Helpful Resources / Links:
https://mattgadient.com/2012/06/25/a-ru ... ngs-0-9-6/
https://mattgadient.com/2013/06/12/a-be ... ake-0-9-9/
https://mattgadient.com/2013/06/20/comp ... -examples/
Hope some of this information helps someone!