Why convert AVIFS to MP4?
Converting .avifs to .mp4 makes an animation playable in every video player and social platform, and MP4's H.264/H.265 compression is far more efficient than GIF for longer or high-resolution clips.
How to convert AVIFS to MP4
FFmpeg OPEN-SOURCE
Run ffmpeg -i in.avifs -c:v libx264 -pix_fmt yuv420p -movflags +faststart out.mp4. The yuv420p flag keeps the file compatible with all players.
HandBrake FREE
Open HandBrake, load the .avifs as the source, pick the Fast 1080p30 preset with an MP4 container and click Start Encode. Requires a recent build that can read AVIF sequences.
FFmpeg (HEVC) OPEN-SOURCE
For smaller files run ffmpeg -i in.avifs -c:v libx265 -pix_fmt yuv420p out.mp4 to encode H.265/HEVC instead of H.264.
About these formats
An .avifs file is an animated image built from a sequence of AVIF frames, wrapped in the same ISOBMFF container that MP4 and HEIF use. The Alliance for Open Media created it as the animated…
Open .AVIFS details →An MP4 file is a video container (MPEG-4 Part 14, standardized 2003) that holds video, audio, subtitles, and chapters in one file. It plays on every phone, computer, browser, and smart TV…
Open .MP4 details →Quality & what to watch
- MP4 video has no alpha channel, so transparent AVIF regions are flattened onto a solid (usually black) background.
- Re-encoding is lossy: fine detail and sharp edges soften slightly versus the AVIF source.
- Decoding animated AVIF is still patchy in some FFmpeg/HandBrake builds; if it fails, decode frames with libavif's
avifdecfirst, then encode the PNG sequence to MP4.
Frequently asked questions
Why does my MP4 lose transparency?
Which is better, H.264 or H.265?
Why won't HandBrake open my .avifs?
How do I keep the original frame rate?
-r 30 only if you want to force a specific rate.