How to downscale video for your portable device

Sometimes I need to downscale video (like music) for portable device. After some research I ended up using mencoder within such script:

#!/bin/sh

OUTPUT_DIR="/home/milosz/converted"

mencoder ${1} -ovc xvid -xvidencopts bitrate=300 -vf scale=320:-3 -ofps 25 -oac lavc -lavcopts acodec=mp3:abitrate=64 -o ${OUTPUT_DIR}/${1##*/} 
Milosz Galazka's Picture

About Milosz Galazka

Milosz is a Linux Foundation Certified Engineer working for a successful Polish company as a system administrator and a long time supporter of Free Software Foundation and Debian operating system.

Gdansk, Poland https://sleeplessbeastie.eu