Putting all the videos in the argument line won't convert them individually.
You would do that to append videos (ie cat'ing files together) or have more than one video stream.
There are a large number of presets for libx264 in the /usr/share/ffmpeg/ directory. You want to include
options to control the size, aspect & quality of your output. The generic options will give you a very
low bitrate small sized video as a result.
Experiment with the options until you get the result you want for your device. Then you can create a script that uses those options in ~/bin/
and if you have several videos to convert, you can call the script in a loop.
Here is the ~/bin/vid2sansap2 script I use to transcode videos for my Sansa P2 player:
if [ -f "$videoin" ]; then
mencoder -vf scale=480:272 -ofps 29.97 -ffourcc XVID \
-oac mp3lame -lameopts cbr:br=128 \
-ovc xvid \
-xvidencopts max_bframes=0:quant_type=mpeg:bitrate=1024 \
-af resample=44100 \
It uses mencoder instead of ffmpeg. For 4x3 aspect ratio video I use "-vf scale=360:270" instead.
It's easy to include the script in a loop to transcode multiple videos.