Communicating directly with the programmer really make thing happened.
Thanks again for your help and patience. Time for me to do batch conversion

Code: Select all
convert all local DVDs recursive in a directory
hb.rb --input "~/DVD/**/VIDEO_TS" --output "~/#title#_#pos#.m4v"
Code: Select all
hb.rb --input "~/DVD/**/*.mkv" --output "~/#title#.m4v"
Code: Select all
set handbrake="C:\Program Files\Handbrake\HandBrakeCLI.exe"
for /d %%a in (*) do start "encode" /b /low /wait %handbrake% -i "%%a" -t 1 -o "x:\dir\%%a-t1.mp4" -m -f mp4 --detelecine --decomb="fast" --strict-anamorphic -e x264 -q 20 --cfr -a -E faac -B 128 -6 dpl2 -R Auto -D 0 --audio-fallback faac --audio eng --subtitle 1,2,3,4,5,6,7,8,9,10 -x ref=4:weightp=1:rc-lookahead=80:trellis=0:8x8dct=0 --verbose=1
for /d %%a in (*) do start "encode" /b /low /wait %handbrake% -i "%%a" -t 2 -o "x:\dir\%%a-t2.mp4" -m -f mp4 --detelecine --decomb="fast" --strict-anamorphic -e x264 -q 20 --cfr -a -E faac -B 128 -6 dpl2 -R Auto -D 0 --audio-fallback faac --audio eng --subtitle 1,2,3,4,5,6,7,8,9,10 -x ref=4:weightp=1:rc-lookahead=80:trellis=0:8x8dct=0 --verbose=1
It was a less convoluted batch than the ffmpeg one i was using for remuxing, it should be a positive thing like the BMW driver with a Cadillac mug in the cup holder, it's what they *used* to drive. At least it wasn't something I was really frustrated with else there could have been variable names not appropriate for mixed company :/Rodeo wrote:Your variable name is just plain wrong.
Code: Select all
#!/usr/bin/perl
use strict;
use warnings;
my $main = 0;
my $audio = 0;
open HANDBRAKE, "HandBrakeCLI --scan --main-feature --input . 2>&1 |"
or die "unable to run HandBrakeCLI: $!\n";
while (<HANDBRAKE>){
if (/^Found main feature title/){
$main++;
}
if ($main and /^ \+ audio tracks:/){
$audio++;
}
if ($audio and /^ \+ 1, .*? \(iso.*?: (.*?)\)/){
print "$1\n";
exit;
}
}
close HANDBRAKE;
Code: Select all
LANG=`~/bin/determineNativeLang.pl`
if [[ "$LANG" != "" ]]; then
LANG="$LANG,eng"
else
LANG="eng"
fi
Code: Select all
--lang LANGUAGES set subtitle and audio languges
--bluray disables decomb and enables support for mp4-files over 4GB
Code: Select all
#!/usr/bin/ruby
Code: Select all
#!/usr/bin/env ruby
Code: Select all
ruby hb.rb
Code: Select all
#!/usr/bin/env ruby