Upload animated GIF to YouTube via FFmpeg

Losslessly converts animated GIF to AVI for high-quality YouTube upload:

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

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

Leave a Comment