Zend certified PHP/Magento developer

Cut gif with FFmpeg while retaining quality?

I’m attempting to cut a gif using -ss and -t in FFmpeg but it’s drastically decreasing the quality in comparison to the original gif.

I’m using this command:

ffmpeg -y `
-i "S:VideosSaved ClipsPSWMad WoolooMad Wooloo EL.gif" `
-ss 1.65 -t 1.65 `
"S:VideosSaved ClipsPSWMad WoolooMad Wooloo Short.gif"

I’ve tried using -c copy but I get an error saying Error writing trailer, I also see that there is a gif muxer -c:v gif but I can’t seem to find any options for it.

Is what I’m attempting to do possible, cutting a gif without losing quality?