Tuesday, February 17, 2009

Converting videos for use in C5320

Huawei C5320 does not come with any video converting software. So for those who own it and most other mobiles you can convert the video using ffmpeg. Windows and Linux versions are available. For those who use Linux, I have provided a script for converting your videos. I have only checked conversion from avi (divx/xvid) to 3gp (resolution is qcif i.e. 176x144). For wmv files (atleast the ones I have), there are some audio/video sync issues. The script takes the video file as its argument. The following is the script:


FILENAME=`echo $1|cut -d "." -f 1`



ffmpeg -i $1 -s $SIZE -vcodec h263 -acodec aac -ac $CHANNELS -ar $SAMPFREQ -r $FPS -ab $ABITRATE -y $FILENAME.3gp

exit 0

No comments: