How to convert Canon .mts video files to other formats in Ubuntu

My Canon Handycam (Camcorder) makes high quality HD videos in .MTS file format. Though the quality of this file is of very high, still there is no good software to play this in Linux (so Ubuntu) without compromising the quality. VLC and Totem media players in Ubuntu 10.04 are able to play with a lot of jerks and poor quality. So I thought of converting these video to known .mp4 or .mpeg formats which will be of decent quality and reduced size of file. I did it with ffmpeg & WinFF tool in Ubuntu 10.04. Here is how to do it in GUI way and also command line.

Using WinFF GUI tool

Step-1: Install the WinFF application from console (Applications -> Accessories -> Terminal).

$ apt-get install winff

Step-2: Run the WinFF from Applications -> Sound & Video -> WinFF

WinFF application screenshot

Step-3: Click Add button to add your .MTS video files to the list of files to be converted.

Step-4: In Output Details tab, select your video format in Convert To … listbox.

Step-5: Select the device which you target through Device Preset.

Step-6: Select where you want to save your converted files in Output folder text box using browse button.

Now it will show a terminal for you to monitor the progress. Just sit and relax for some time (depends on your file size), you are done!

This way you can convert .mts file to format suitable for youtube by selecting Web in Convert To …

How to do it in command line?

Ensure the ffmpeg tool is installed ($ sudo apt-get install ffmpeg) and then run the following command to covert .mts to .mpeg (DVD quality)

ffmpeg -i “Input.mts” -f dvd -target ntsc-dvd -r 29.97 -s 720×480 -aspect 16:9 -b 8000kb -g 12 -mbd rd -trellis -mv0 -cmp 0 -subcmp 2 “output.mpg”

I got the above parameters from WinFF. Feel free to experiment with it.
Hope these tips will be useful to you, enjoy happy holiday memories!

Share this post



Leave a Reply

Your email address will not be published. Required fields are marked *