Converting 3gp Video Under Ubuntu

I was given a pair of video recording sun glasses for Christmas which records pretty poor quality video onto some internal storage.  Worse, it records in a very difficult to work with 3gp wrapped mp4 implementation.  Here's how I convert those video files into something a little more workable, Mpeg4/AAC wrapped by an mp4.

First, you may need to install a codec to even be able to read these files: (Change Karmic to whatever version of Ubuntu you are using)
sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list;sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update; sudo apt-get install mplayer w32codecs non-free-codecs mplayer libavcodec-extra-52 amrwb amrnb  libopencore-amrwb0 libopencore-amrnb0 libamrnb3 libamrwb3

Here's a command to type to convert these files.  The following will convert starting at 2 minutes and ending after 5 minutes of time (7 minutes into the original):
ffmpeg -i Vid0004.3gp -acodec faac mp2 -ab 128kb -ar 22050 -vcodec mpeg4 -b 1200kb -mbd 2 -cmp 2 -subcmp 2 -ss 00:02:00 -t 00:5:00 output.mp4

No comments

Post a Comment