Converting mpeg4 to divx for Philips PD9010 (ffmpeg)

#!/bin/bash

ffmpeg -i $1 -c:v mpeg4 -q:v 5 -tag:v DIVX -s 640x220 -c:a libmp3lame -q:a 5 -ac 2 -ar 44100 $2

ffmpeg -i input -qscale 2 -vtag DX50 out.avi