Upload animated GIF to YouTube via FFMPEG

ffmpeg -i my.gif -vcodec huffyuv my.avi

Losslessly converts your GIF to AVI for high-quality YouTube upload.

YouTube Lossless codec uploads

Currently, lossless HuffYUV works for YouTube uploads. HuffYUV is a primitive lossless compression algorithm, but you don’t want YouTube to doubly-lossy encode a lossy input video.

YouTube does not currently accept the lossless codecs:

  • ProRes: Video codec isn’t recognized by YouTube
  • FFV1: Video is often heavily clipped horizontally, half the video panel is missing