« AMI Small Array Movie | Main | Moon and plane over Birmingham »

Convert 3gp to a better format

By default my phone camera takes video in 3gp format - which isn't the best for sharing around... so here is how to convert it using ffmpeg on linux:

Firstly you might need to install ffmpeg and some libraries:

sudo apt-get install ffmpeg libavcodec-extra-52

You can just do:

ffmpeg -r 1 -i VIDEO0032.3gp -f avi -r 24 -vcodec libxvid -acodec libmp3lame movie.avi

but this gives some crapy quality - a better way is:

ffmpeg -r 1 -i VIDEO0034.3gp -f mp4 -acodec libmp3lame -ar 44100 -ab 128 -vcodec mpeg4 -maxrate 2000 -b 1500 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -r 30000/1001 outfile2.mp4

TrackBack

TrackBack URL for this entry:
http://krioma.net/cgi-bin/MT-3.38/mt-tb.cgi/605

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on January 2, 2012 11:21 AM.

The previous post in this blog was AMI Small Array Movie.

The next post in this blog is Moon and plane over Birmingham.

Many more can be found on the main index page or by looking through the archives.

Get Firefox! Valid XHTML 1.0! Valid CSS! RSS Feed BlogUniverse - listed Powered by Apache Creative Commons License ringsofsaturnrock's Most Interesting Photos on Flickriver

Powered by
Movable Type 3.38