Wednesday, May 07, 2008

flv to 3gp

Here's how to convert your flv files to 3gp so you can play them on your symbian phones.

ffmpeg -i file.flv -s 176x144 -vcodec h263 -r 28 -b 96k -ab 64 -acodec aac -ac 1 -ar 44100 file.3gp

And here's a batch converter bash script based on mypapit's FLV to 3gp batch converter script, I only changed the ffmpeg part since the output on the script's a wee bit choppy on video and very much crappy on audio playback.

#!/bin/bash
echo "fakap mp3-to-flv converter http://blog.fakap.net/mp3toflv/"
echo "Copyright (c) mypapit 2007"
echo ""
if (($# ==0))
then
    echo "Usage: flvto3gp [flv files] ..."
    exit
fi

while (($# !=0 ))
do
        ffmpeg -i $1 -s 176x144 -vcodec h263 -r 28 -b 96k -ab 64 -acodec aac -ac 1 -ar 44100 $1.3gp
    shift
done
echo "Finished fakaping with flv-to-3gp converter"
echo "\"fakap all those nonsense!\""
echo ""

Make sure that you have ffmpeg and restricted codecs installed.

Blogged with the Flock Browser