Convert Android 3GP videos

I could playback the video on my ubuntu lucid lynx installation just fine but wanted to change the orientation of a movie I made with my Android phone.

Unfortunately the audio stream of the movie was not recognized. Seems the codec name is "samr", from Nokia apparently, (?) and ffmpeg issues this error message:
unsupported codec (id=73728) for input stream #0.1

The only way I could do this was build my own ffmpeg (via this guide)

Make sure the libopencore-amrnb-dev libopencore-amrwb-dev packages are installed and enable the ffmpeg configuration accordingly.

After having a workable ffmpeg installation you can f.e. do this in your terminal window:

ffmpeg -threads 2 -i androidvid.3gp -f avi -r 29.97 -vcodec libxvid -vtag XVID -maxrate 1800k -b 1500k -qmin 3 -qmax 5 -bufsize 4096 -mbd 2 -bf 2 -trellis -aic -cmp 2 -subcmp 2 -g 300 -vf "transpose=0" -acodec libmp3lame -ar 48000 -ab 128k -ac 2 androidvid.avi

transpose=0 will rotate all frames 90°

Comments

I have a nokia C3, does this

I have a nokia C3, does this could work on that one?

Regards
Legioforum :)

Yes, 3GP seems to be an

Yes, 3GP seems to be an industry standard so it very well could be.