This command converts an input.mp4 file to an output.avi file.

After hours of trial and error with flags like -i , -codec:v , and -crf , the conversion finishes. The video is crisp and the audio is clear.

ffmpeg -ss 00:00:30 -i "Young.Sheldon.S07E07.mkv" -t 3 -vf "fps=10,scale=480:-1" "sheldon_smart.gif"