Initializing... drag & drop files here
Supports: GIF
MPEG-2 is the DVD-and-broadcast-era video codec — standardised in the mid-1990s as ITU-T H.262 / ISO/IEC 13818-2 and still the format DVD authoring tools, set-top boxes, capture cards and older editing suites ask for. This page takes an animated GIF, encodes every frame as MPEG-2 video, and writes the result with a .mpeg2 extension. Pick it when something downstream specifically expects MPEG-2; for the web, phones or messaging, GIF to MP4 is smaller and plays everywhere.
| Property | Value |
|---|---|
| Video standard | MPEG-2 Part 2, ISO/IEC 13818-2, published jointly as ITU-T H.262 |
| Standardised | Mid-1990s; the codec behind DVD-Video, DVB and ATSC broadcast |
| Codec offered on this page | MPEG-2 only — the .mpeg sibling also offers MPEG-1 |
| Container written | MPEG program stream — the same byte layout a .mpg file carries |
| Filename written | .mpeg2 (rename to .mpg or .mpeg if a player refuses the extension) |
| Colour | 8-bit YUV, 4:2:0 chroma in the Main profile used for DVD |
| Frame types | I, P and B frames — real inter-frame prediction, unlike GIF |
| Rate control | Bitrate-based; MPEG-2 has no CRF / constant-quality mode |
| Audio in the output | None — a GIF has no audio stream to carry |
| Native browser playback | None |
| Best for | DVD authoring, set-top boxes, broadcast and capture gear, legacy editors |
| Property | Value |
|---|---|
| Format | GIF87a (1987) and GIF89a (1989), the animation-capable revision |
| Colour | Up to 256 per frame, chosen from a 24-bit palette |
| Transparency | 1-bit, fully on or fully off |
| Compression | LZW — lossless per frame, but with no prediction between frames |
| Animation | Per-frame delay values plus a loop count stored in the file |
| Audio | Not supported at all |
| Why people convert it | Size, colour banding, and tools that will not accept an image as video |
Modern codecs take a CRF (constant rate factor) and hit a quality target regardless of the source. MPEG-2 has no such mode, so our encoder falls back to bitrate: it reads the bitrate of the GIF you uploaded and scales it by the preset.
| Preset | Target bitrate, relative to the source GIF |
|---|---|
| Highest | 1.5x |
| Very High (default) | ~1.32x |
| High | ~1.14x |
| Medium | 0.9x |
| Low | ~0.72x |
| Very Low | ~0.54x |
| Lowest | 0.3x |
Two consequences worth knowing. First, the multiplier is applied to the GIF's own bitrate, which is usually inflated — GIF stores whole frames — so even "Lowest" can produce a healthy MPEG-2 stream. Second, our encoder enforces a resolution-derived minimum bitrate (never below 2 Mbps) because MPEG-2 disintegrates into blocking when it is starved; if your preset asks for less than that floor, the floor wins.
It keeps its motion. Every frame of the GIF is decoded and encoded in order as real MPEG-2 video, so a looping GIF becomes a clip of the same length. The per-frame "Image Duration" control you see on still-image-to-video tools is deliberately hidden for GIF sources, because the GIF already carries its own frame delays and we use those directly.
.mpeg2 and .mpeg here?The video inside is the same MPEG-2 stream in the same MPEG program-stream container; the visible difference is the extension we write. The functional difference is the codec list: this page is fixed to MPEG-2, while the .mpeg page also lets you drop to MPEG-1 for Video CD and very old hardware. Use this page when a program insists on a .mpeg2 filename.
.mpeg2 file — is it broken?Almost certainly not. .mpeg2 is not a widely registered extension, so some players decide they do not know the format before they ever look inside. The bytes are a standard MPEG program stream, so renaming the file to .mpg or .mpeg usually makes it open immediately. Players that sniff content rather than filenames, such as VLC and mpv, open it either way.
Because MPEG-2 has no constant-quality mode to drive. The File Compression panel shows Quality Preset, Constant Quality and Constraint Quality for every video target, but when the codec cannot take a CRF our encoder converts the request to a bitrate — and for the two CRF-based modes it falls back to the resolution-derived minimum bitrate rather than to something derived from the slider. On this page, use the Quality Preset if you want the output size to move.
No. A GIF has no audio stream, so there is nothing to carry across and the output is silent by nature rather than muted. Add narration or music afterwards in a video editor.
MPEG-2 predates H.264 by about a decade. It has inter-frame prediction — a huge win over GIF, which stores whole frames — but far weaker motion compensation and transforms than modern codecs, so it needs several times the bitrate for comparable quality. That inefficiency is the price of decoding on hardware built in the 1990s. If size is what matters, use GIF to MP4.
It can look cleaner, but it cannot contain more. The GIF is already capped at 256 colours per frame at whatever resolution and timing it was saved with. MPEG-2's 8-bit YUV colour removes the palette banding, so gradients often look smoother — but no preset invents detail the GIF never captured, and upscaling only enlarges existing pixels.
Not directly. DVD-Video is a strict profile: 720x480 at 29.97 fps for NTSC or 720x576 at 25 fps for PAL, within the disc's bitrate ceiling, muxed into VOB files with an IFO structure. Authoring software does that conformance step for you and will happily accept a general MPEG-2 file as input — which is exactly what this page produces.
.mpeg2 file play in a browser or on a phone?Not natively. No mainstream browser plays MPEG-2 program streams in a <video> tag, and phones generally need a third-party player such as VLC. MPEG-2's strength is old hardware, not modern software. For browser or phone playback, convert the GIF straight to MP4.
Yes, MPEG-2 to MP4 re-encodes it to H.264. Keep in mind that re-encoding an already-lossy stream cannot recover what the first pass discarded, so if you still have the original GIF, converting that directly to MP4 gives a cleaner result than a GIF to MPEG-2 to MP4 round trip.