

mp4 format, which is the format that plays everywhere - from Mac OS X to iPad and Kodi (Linux plays everything, so I am not worried about it).

I downloaded the “flv” format of a Linux Foundation video called Distributed Genius and wanted to transcode it into. If you run Kodi instead of Plex server, then I suggest this profile, because Kodi doesn’t transcode videos on the server side. I use the last preset - “High Profile” - for two reasons: 1) In my experience, it offers the best quality 2) It will work across devices - from mobile to HDTV. You will notice presets for iPhone, iPod, iPad, Apple TV, and other such devices. This will give a long and detailed output of all the available presets (see Figure 1 above). If you want to use the presets, it’s extremely easy to find what you need, just run this command: $ HandBrakeCLI -preset-list If you don’t use the preset (and I am not sure why you should not), then you will have to specify every single thing as I explained above and that, in my opinion, is overkill. If you have used the GUI version of Handbrake (as you can see in this article), it comes with different presets so you can transcode your video for the targeted devices. The “Preset Name” option is the reason I use Handbrake over others. Keep in mind that you do have to give the name and extension of the output file. If you want to keep the transcoded file in the same folder, then just give the name of the file. It’s self-explanatory that you have to provide the path of the source file and the destination where you want to save the converted file. In the above command “i” stands for input and “o” stands for output here. For example, you can give Handbrake detailed instructions on how it should deal with audio, video, what bitrate it should use, and what codec it should deploy, but that would become intimidating for a new user, and I like to keep things simple.

Ok, this is not the only command you can use there are different ways of doing it. This is the command you will need to convert any file: HandBrakeCLI - i PATH-OF-SOURCE-FILE -o NAME-OF-OUTPUT-FILE -"preset-name" Now that Handbrake is installed, let’s take a closer look.
#HANDBRAKE LINUX INSTALL#
If not, then you can enable the necessary third-party repo and install the software. Most major distributions such as openSUSE, Arch, Fedora, and Ubuntu have this in their main repositories. Using Handbrake to Transcodeįirst you need to install the “Handbrake CLI” packages on your system.
#HANDBRAKE LINUX HOW TO#
In this article, I will show how to use Handbrake to convert video files. Some of the popular tools include ffmpeg, mencoder, and my favorite Handbrake. There are dozens of such tools out there, and I am covering the one that I frequently use, because it’s easy and I’ve been using it for a long time. Just keep one point in mind: this is just one of the “many” ways you can do it in Linux. In this article, I will share how I transcode video in Linux using CLI tools.

I would mount the removable drive on my desktop and convert files using GUI tools. I confess that even if I ran a headless file server at home, I never really bothered to do it via an SSH session. There was a demand for CLI (command-line interface) tools for the same job. In a previous article, I wrote about some GUI tools that can transcode videos with ease. However, if you want to play videos on mobile devices such as your iPhone or iPad, or if you run streaming servers, then transcoding your videos into supported formats becomes essential. Linux users don’t need to transcode video files, because they have VLC and many other apps at their disposal that can play almost any media format out there.
