August 23, 2011

Batch Video Conversion to 3gp using ffmpeg

Filed under: Uncategorized — Tags: — yasi8h @ 6:46 am

Some notes for self reference.

Batch video conversion

Using some a simple loop (in bash)

for f in *.mp4; do ffmpeg -i “${f}” -b 4000k -s 4cif -vcodec h263 -acodec aac -y “${f}_4000.3gp”; done;

Converts all mp4 files in the current folder

Original file name: file_one.mp4

Converted file name: file_one.mp4_4000.3gp

Convert to 3gp

ffmpeg -i file_name -s 4cif -vcodec h263 -acodec aac -y converted.3gp

Convert to with a set bit-rate

When the set bit rate is 4000k (kilo bits)
ffmpeg -i file_name -b 4000k -s 4cif -vcodec h263 -acodec aac -y converted.3gp

Setting resolution

Use the -s flag to set the resoultion. For possible values refer:

Create a free website or blog at