ffmpeg -ss 30 -t 5 -i rock.mp4 -vf fps=10,scale=450:-1 rock.gif

# The -ss command option skips the first 30 seconds of the video file and the -t command option records the next 5 seconds to be converted to a GIF file.