GIF to Video
Convert an animated GIF into MP4 or WebM video, with optional audio and duration controls.
or drop animated GIF here (up to 60 MB)
Video Configuration
Customize output format, looping duration, and optional background audio.
MP4 with H.264 and yuv420p offers universal compatibility across phones, browsers, and video editors.
If the selected duration exceeds the original GIF, the animation loops seamlessly to fill the time.
Converting GIF to Video...
Processing animation frames and encoding video streams with FFmpeg.
Conversion Complete
Your video has been rendered and is ready for download.
Conversion Failed
Could not convert the GIF file.
GIF vs Video Encoding: Why Convert Animated Frames?
The Graphics Interchange Format (GIF) dates back to 1987 and was engineered as a lossless, 8-bit palette container with simple frame timing. It stores full or differential raster bitmaps for each frame with LZW compression. Because GIF lacks inter-frame motion vector prediction, high-resolution animations quickly balloon into massive multi-megabyte files while still limited to 256 colors per frame.
By converting GIF frames into an MP4 (H.264) or WebM (VP9) container, ScanPDF applies advanced temporal macroblock compression. Static backgrounds are encoded once, motion trajectories are predicted across frames, and file sizes are typically reduced by 80% to 95% while retaining native frame fluidity.
Encoding Comparison
256 indexed colors, LZW bitmap compression, silent playback only, heavy file footprint.
Full 24-bit color fidelity, motion vector inter-frame prediction, hardware accelerated decoding on iOS/Android, audio track synchronization.
Open royalty-free container optimized for modern web browsers, transparent alpha channels, and lightweight HTML5 embeds.
Multiplexing Mechanics
GIF Looping: When you select a target duration longer than the original GIF (such as 10s or 30s), FFmpeg's -stream_loop -1 flag continuously repeats the frame sequence until the exact requested timestamp is reached.
Audio Loop Alignment: If your uploaded audio track is shorter than the desired video duration, ScanPDF seamlessly loops the audio stream in parallel so the soundtrack remains uninterrupted.
Dimension Normalization: H.264 yuv420p video profiles require macroblock dimensions divisible by 2. ScanPDF automatically applies even-dimension scaling (trunc(iw/2)*2) to ensure output videos play without green borders or codec crashes.
How Looped Animations Combine With Audio Tracks
Animated GIFs natively contain zero audio channels. When publishing GIFs to platforms such as Instagram Reels, TikTok, YouTube Shorts, or WhatsApp Status, silent GIF uploads are often rejected or auto-converted with poor quality.
By uploading an accompanying soundtrack (MP3, WAV, AAC, M4A, OGG, or FLAC), ScanPDF multiplexes a dedicated audio stream alongside the re-encoded video stream, using standard AAC for MP4 and Opus for WebM. Both streams are synchronized to match the exact duration requested.