can I add a mplayer command to make gif files from the already-converted flvs?

something like this

$ mplayer 12149359421642865625.flv -ss 00:00:01.000 -endpos 00:00:40.000 -vf scale=180:140,framestep=20 -vo gif89a:fps=2:output=out.gif -nosound