Home > Handy/Mobile, Ubuntu > How to convert movies to mp4 using avidemux2

How to convert movies to mp4 using avidemux2

I recently bought a Sony Ericsson K770 mobile, which is a pretty neat piece of phone.

The phone supports playback of videos in different formats, including .mp4 or .3gp. As I would like to be able to convert videos from different sources to .mp4 using Ubuntu, I found a nice and easy method to convert dozens of Source formats to mp4.

All you need is a decent version of avidemux2, which can be installed in Ubuntu using the following command:

(or your preferred apt gui)

sudo apt-get install avidemux

First look at avidemux:

Avidemux first start

Let’s convert a downloaded flash video from youtube to the format .mp4. This entry describes how to enable Firefox to download flash videos from youtube.

Open your source video in avidemux, in my case, the file is called 777_takeoff.flv.

Avidemux Settings

On the left, you have 3 types of segments, video audio and Format to set.

For “video” use the following settings:

MPEG 4 ASP (XVid4)

Next part is a bit tricky as it offers a wide range of settings. I haven’t played a lot with them, but finally I can say, these settings should work, in opposite to the originally set ones for xvid4. Only thing that might interest you is the bitrate the video will be encoded to.

I have set mine to 400 kb/s – but far less, like 200-250 kb/s should be plenty, depending on the original video which you want to convert.

Settings1

Settings2

Settings3

Settings4

For Filter, you have to add a video resizer filter to get the desired resolution so that your mobile is able to play it. In case of my K770i and many other mobile phones, the resolution is 320×240 Pixel, called QVGA (a quarter of VGA resolution). Other typical resolution would be 176×220 for instance for the Sony Ericsson K530i.

So hit Filter, chose a resizer (for instance Mplayer resize) and hit the green “+” at the bottom of the selection list. A small window will popup to select the desired resolution, in my case, as mentioned, 320×240.

Video Filter Resize to 320x240

Next thing is the audio Section. Select “FAAC” Codec for the Audio.

Audio Filter FAAC

hit “Configure” and select for instance 96kb/s, which is more than plenty enough for the audio quality.

Finally, you have to set the format, a container, which the file will reside in, in our case, mp4.

Set Format to MP4

Finally, just hit “File->Save->Save Video” and give the file your chosen name, using the ending .mp4. Avidemux will start converting now and will result in a converted video of 320×240, with MPEG4 video and FAAC audio codec, which should work pretty well in your Sony Ericsson K770i, after you have uploaded it to your mobile phone, which is another story 😉

Advertisements
Categories: Handy/Mobile, Ubuntu
  1. July 20, 2009 at 8:53 am

    Thanks for your guide! I’ve been looking for guide to convert my video to be played on my K770i too.
    Keep up posting nice guides! ^^

  2. Peter Si
    September 7, 2009 at 1:56 pm

    I converted a flash video to a format that my E51 Nokia phone could play by using the Firefox Extension Video DownloadHelper. It was very easy. I used the libx264 and libfaac codecs. Just take a video with your phone and then look at the properties of the codecs to see what to use, also get the frame rate (8 frames in my case). I then dropped the video onto my phone and Real Player opened and played it.

  3. Joe Black
    October 7, 2009 at 6:19 am

    Thanks for the tutorial. Working on converting avi to mp4 for blackberry.

  4. mani2604
    February 13, 2012 at 6:29 am

    hey thanx… i cudnt get handbrake to work on my ubuntu machine… Mobile Media Converter is too low on customizing the output settings!! WinFF-> well it is complicated

    Avidemux is simple & serves the purpose

  5. May 14, 2012 at 3:27 pm

    Vielen Dank!

    Do you know what settings I should use for an iPhone 4? Specifically I want to upload the videos to a website and be able to see them on the phone.

  1. June 8, 2008 at 10:28 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: