

Optimize means moving important data to the beginning of the file so it’s downloaded first, allowing the video to start quickly.

Your client won’t give a jack how fancy you think you are unless you include the most important part: -optimize.Two passes over the video is better than one.

The best part about these two lines is that the aspect ratio will not be changed! HandBrakeCLI will try to fill the larger value without exceeding the latter. If the video is mostly talking go ahead and bump it down to 96. Audio Bit Rate is specified in kilobits per second.Video Bit Rate is specified in kilobits per second.The best codec for the web is H.264 video, using x264 encoder.Technically, this file path starting with ~/Desktop means to the Desktop folder of the current user (you!). The next part defines the path where you’d like to place your final converted video. The next part lists the path to your original video file you’d like to convert (I find it’s easiest to work from the Desktop). means to stay in the current directory. Technically, this file path starting with. Before you run your command, use the Change Directory command ( cd path/to/handbrakecli) to make sure you are in the same folder as the HandBrakeCLI file is located.Let’s explain this command and ease your apprehension about using the command line by breaking down each individual argument in the command, line-by-line: 1). HandBrakeCLI -i ~/Desktop/my_original_file.wmv -o ~/Desktop/my_new_file.mp4 -encoder x264 -vb 1800 -ab 128 -maxWidth 640 -maxHeight 480 -two-pass -optimize Explanation HandBrakeCLI takes a crummy Windows Media video file and turns it into something awesome for the web. I often use HandBrake to take client’s video files and add them to their website in a format that streams quickly and looks great. On a Mac, use Terminal.app to access the command line. I prefer to use the CLI, or Command Line Interface. The GUI is a little clunky for this purpose and doesn’t even have what you need. HandBrake is an excellent application for converting your favorite Flash files, VOB folders, or almost anything else really, for use on your iPhone, iPod or AppleTV.īut it also has another great use: creating videos for the web.
