I have a nice little Portable Media Player, YP-Q2 from Samsung. The main reason for choosing this was its built in support for Ogg Vorbis audio format. It has video support as well but with its own format – svi. It is basically avi container with mpeg4 video and mp3 audio (it supports wmv as well).
I found out the right combination of ffmpeg options by comparing a sample file created by EmoDio software that came with the device.
I created a script ffmpeg2svi with correct options to make the conversion easier. Here is the script
if [ $# -ne 2 ]
echo "Usage: ffmpeg2svi <input> <output.svi>"
ffmpeg -i "$1" -vcodec mpeg4 -acodec libmp3lame -f avi -s qvga -aspect 4:3 -sameq "$2"
Hopefully this works with other models from Samsung as well.