hb.rb is a "simple" ruby-script to add some more features to HandbrakeCLI.
Main advantages of the script are:
To run hb.rb you need an installed ruby-interpreter. You can get the current version of ruby for your platfrom from http://www.ruby-lang.org/
gem install plist
gem install hpricot
gem install imdb
Now you should be able to run hb.rb. Maybe directly via ./hb.rb or via path_to_ruby/ruby.exe hb.rb
To get a list of possible options and example-calls run hb.rb without any arguments or with --help.
For any questions about hb.rb use also this thread https://forum.handbrake.fr/viewtopic.php?f=10&t=26163
convert main-feature with all original-tracks (audio and subtitle) for languages german and english (override languages with --lang)
hb.rb --input /dev/rdisk1 --output "~/Movie.m4v" --movie
convert all episodes with all original-tracks (audio and subtitle) for languages german and english
hb.rb --input /dev/rdisk1 --output "~/Series_SeasonX_#pos#.m4v" --episodes
convert complete file or DVD with all tracks, languages etc.
hb.rb --input /dev/rdisk1 --output "~/Output_#pos#.m4v"
convert all MKVs recursive in a directory
hb.rb --input "~/MKV/**/*.mkv" --output "~/#title#.m4v"
If your ripped files are orderd e.g. for According to Jim Season 1
ATJ_S1D1T2.m4v (season 1, disc 1, title 2)
ATJ_S1D1T3.m4v (season 1, disc 1, title 3)
...
you can run
tag_episode.rb --id Accordingtojim --season 1 --episode 1 --tag --rename ATJ_S1*.m4v
So the first file will have the name and tags for episode 1, the second file for episode 2 and so on.
This program comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt (available in archive). This is free software, and you are welcome to redistribute it under certain conditions.