Batch encode all video files in directories.
HandBrakeCLI can be downloaded from handbrake.fr. Place it in /usr/bin or you can edit to suit your needs.
Pass zero or more directories as arguments. If no argument is given, current directory will be used.