Transcode video file or disc image directory into format and size similar to
	popular online downloads. Works best with Blu-ray or DVD rip.

	Automatically determines target video bitrate, number of audio tracks, etc.
	WITHOUT ANY command line options.

	Usage: /usr/local/bundle/bin/transcode-video [OPTION]... [FILE|DIRECTORY]...

	Input options:
		--scan          list title(s) and tracks in video media and exit
		--title INDEX   select indexed title in video media
						  (default: main feature or first listed)
		--chapters CHAPTER[-CHAPTER]
						select chapters, single or range (default: all)

	Output options:
	-o, --output FILENAME|DIRECTORY
						set output path and filename, or just path
						  (default: input filename with output format extension
							in current working directory)
		--mp4           output MP4 instead of Matroska `.mkv` format
		--m4v             "     "  with `.m4v` extension instead of `.mp4`
		--chapter-names FILENAME
						import chapter names from `.csv` text file
						  (in NUMBER,NAME format, e.g. "1,Intro")
		--no-log        don't write log file
		--dry-run       don't transcode, just show `HandBrakeCLI` command and exit

	Quality options:
		--abr           use constrained average bitrate (ABR) ratecontrol
						  (predictable size with different quality than default)
		--target big|small
						apply video bitrate target macro for all input resolutions
						  (`big` trades some size for increased quality)
						  (`small` trades some quality for reduced size)
		--target [2160p=|1080p=|720p=|480p=]BITRATE
						set video bitrate target (default: based on input)
						  or target for specific input resolution
						  (can be exceeded to maintain video quality)
						  (can be used multiple times)
		--quick         increase encoding speed by 70-80%
						  with no easily perceptible loss in video quality
						  (avoids quality problems associated with x264 presets)
		--veryquick     increase encoding speed by 90-125%
						  with little easily perceptible loss in video quality
						  (unlike `--quick`, output size is larger than default)
		--preset veryfast|faster|fast|slow|slower|veryslow
						apply x264 encoder preset

	Video options:
		--crop T:B:L:R  set video crop values (default: 0:0:0:0)
						  (use `--crop detect` for `detect-crop` behavior)
						  (use `--crop auto` for `HandBrakeCLI` behavior)
		--constrain-crop
						constrain `--crop detect` to optimal shape
		--fallback-crop handbrake|ffmpeg|none
						select fallback crop values if `--crop detect` fails
		--720p          fit video within 1280x720 pixel bounds
		--max-width WIDTH, --max-height HEIGHT
						fit video within horizontal and/or vertical pixel bounds
		--pixel-aspect X:Y
						set pixel aspect ratio (default: 1:1)
						  (e.g.: make X larger than Y to stretch horizontally)
		--force-rate FPS
						force constant video frame rate
						  (`23.976` applied automatically for some inputs)
		--limit-rate FPS
						set peak-limited video frame rate
						  (`30` applied automatically for most inputs)
		--filter NAME[=SETTINGS]
						apply `HandBrakeCLI` video filter with optional settings
						  (`deinterlace` applied automatically for some inputs)
						  (refer to `HandBrakeCLI --help` for more information)
						  (can be used multiple times)

	Audio options:
		--main-audio TRACK[=NAME]|LANGUAGE[=NAME]
						select main track by number or first with language code
						  assigning it an optional name
						  (default: first track, i.e. 1)
						  (language code must be ISO 639-2 format, e.g.: `eng`)
						  (default output can be two audio tracks,
							both surround and stereo, i.e. width is `double`)
		--add-audio TRACK[=NAME]|LANGUAGE[,LANGUAGE,...]|all
						add track selected by number assigning it an optional name
						  or add tracks selected with one or more language codes
						  or add all tracks
						  (language code must be ISO 639-2 format, e.g.: `eng`)
						  (multiple languages are separated by commas)
						  (default output is single AAC audio track,
							i.e. width is `stereo`)
						  (can be used multiple times)
		--audio-width TRACK|main|other|all=double|surround|stereo
						set audio output width for specific track by number
						  or main track or other non-main tracks or all tracks
						  with `double` to allow room for two output tracks
						  with `surround` to allow single surround or stereo track
						  with `stereo` to allow only single stereo track
						  (can be used multiple times)
		--reverse-double-order
						reverse order of `double` width audio output tracks
		--prefer-ac3    prefer AC-3 over AAC format when encoding or copying audio
						  even when original track channel layout is stereo or mono
						  (sets audio output width for all tracks to `surround`)
		--ac3-encoder ac3|eac3
						set AC-3 audio encoder (default: ac3)
		--ac3-bitrate 384|448|640|768|1536
						set AC-3 audio bitrate (default: 640)
		--pass-ac3-bitrate 384|448|640|768|1536
						set AC-3 audio pass-through bitrate (default: 640)
		--copy-audio TRACK|all
						try to copy track selected by number in its original format
						  falling back to AC-3 format if original not allowed
						  or try to copy all tracks in same manner
						  (only applies to main and explicitly added audio tracks)
						  (can be used multiple times)
		--copy-audio-name TRACK|all
						copy original track name selected by number
						  unless the name is specified with another option
						  or try to copy all track names in same manner
						  (only applies to main and explicitly added audio tracks)
						  (can be used multiple times)
		--aac-encoder NAME
						use named AAC audio encoder (default: platform dependent)
		--no-audio      disable all audio output

	Subtitle options:
		--burn-subtitle TRACK|scan
						burn track selected by number into video
						  or `scan` to find forced track in main audio language
		--force-subtitle TRACK|scan
						add track selected by number and set forced flag
						  or scan for forced track in same language as main audio
		--add-subtitle TRACK|LANGUAGE[,LANGUAGE,...]|all
						add track selected by number
						  or add tracks selected with one or more language codes
						  or add all tracks
						  (language code must be ISO 639-2 format, e.g.: `eng`)
						  (multiple languages are separated by commas)
						  (can be used multiple times)
		--no-auto-burn  don't automatically burn first forced subtitle

	External subtitle options:
		--burn-srt FILENAME
						burn SubRip-format text file into video
		--force-srt FILENAME
						add subtitle track from SubRip-format text file
						  and set forced flag
		--add-srt FILENAME
						add subtitle track from SubRip-format text file
						  (can be used multiple times)
		--bind-srt-language CODE
						bind ISO 639-2 language code (default: und)
						  to previously forced or added subtitle
						  (can be used multiple times)
		--bind-srt-encoding FORMAT
						bind character set encoding (default: latin1)
						  to previously burned, forced or added subtitle
						  (can be used multiple times)
		--bind-srt-offset MILLISECONDS
						bind +/- offset in milliseconds (default: 0)
						  to previously burned, forced or added subtitle
						  (can be used multiple times)

	Advanced options:
	-E, --encoder-option NAME=VALUE|_NAME
						pass x264 video encoder option by name with value
						  or disable use of option by prefixing name with "_"
						  (e.g.: `-E vbv-bufsize=8000`)
						  (e.g.: `-E _crf-max`)
						  (refer to `x264 --fullhelp` for more information)
						  (can be used multiple times)
	-H, --handbrake-option NAME[=VALUE]|_NAME
						pass `HandBrakeCLI` option by name or by name with value
						  or disable use of option by prefixing name with "_"
						  (e.g.: `-H stop-at=duration:30`)
						  (e.g.: `-H _markers`)
						  (refer to `HandBrakeCLI --help` for more information)
						  (some options are not allowed)
						  (can be used multiple times)

	Diagnostic options:
	-v, --verbose       increase diagnostic information
	-q, --quiet         decrease     "           "

	Other options:
	-h, --help          display this help and exit
		--version       output version information and exit

	Requires `HandBrakeCLI`, `mp4track`, `ffmpeg` and `mkvpropedit`.