Convert different video formats (AVI to mp4) using handbrake on Ubuntu

If you want to convert any AVI file to MP4 or compatible to be used in mobiles, you want to that on ubuntu using “HandBreak” and ffmpeg.

First, make sure you have handbreak installed on ubuntu, if not you can use below commands to do that,

$ sudo add-apt-repository ppa:stebbins/handbrake-releases

These are the official HandBrake releases for Ubuntu. Official web site

HandBrake is an open-source, GPL-licensed, multiplatform, multithreaded video transcoder, available for MacOS X, Linux and Windows.

After adding this PPA to your list of repositories (see “Adding this PPA to your system” below), you can install the HandBrake gtk gui with the command:

$ apt-get install handbrake-gtk

And you can install the HandBrake CLI with the command:

$ apt-get install handbrake-cli
More info:
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmp0rnft20h/secring.gpg' created
gpg: keyring `/tmp/tmp0rnft20h/pubring.gpg' created
gpg: requesting key 816950D8 from hkp server
gpg: /tmp/tmp0rnft20h/trustdb.gpg: trustdb created
gpg: key 816950D8: public key "Launchpad HandBrake Snapshots" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
$ sudo apt-get update
$ sudo apt-get install handbrake-gtk handbrake-cli

Once HandBreak is installed, browse to the location of your AVI video, ( you can convert other formats as well ) and right click and select “Open with HandBreak” you will get screen like below,

avi to mp4

Please, note the “Ticks” from above image, which you can change as you want and click “Start Encoding”, after some time you will get the video file with “.m4v” extention stored as “Videos” or as path chosen by you in “Destination” as shown above.

If you want to cut/trim/slice/split the video for certain duration, visit our next post “Cutting videos from start time to end time using ffmpeg on Ubuntu”

How to Create Swap File in Linux fo... x
How to Create Swap File in Linux for Increase Memory / RAM Size of VPS

1 thought on “Convert different video formats (AVI to mp4) using handbrake on Ubuntu”

Leave a Comment

Sign up to our newsletter!

ADB Commands Android Android Applications Android Build system Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development & Build Development, Debugging and Performance Tools Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia NDK / Middleware / HAL Operating System Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web design and development Website Hosting Wordpress Yocto Embedded Linux