I’ve been searching for a quick encode line to get reasonable quality playback on my Blackberry Playbook as I still have it knocking about and it’s handy for long journeys. Best line I’ve found so far is:
ffmpeg -i $inputfile -profile:v baseline -filter:v scale=1024:-2 -pix_fmt yuv420p -b:v 1800k -bufsize 20M -acodec aac -strict experimental -ar 44100 -ab 192k -threads 0 $OutputVideo.mkv
It seems to playback and look very good without being ridiculous on the size front. It also has the correct screen dimensions and pads as required.