Initializing... drag & drop files here
Supports: AVIF
AVIF is a modern still-image format — an AV1-encoded picture in the HEIF file structure — and MPEG-2 is the video codec that DVD-Video, ATSC and DVB were built on. Converting AVIF to .mpeg2 encodes your picture as MPEG-2 video inside an MPEG Program Stream and holds it on screen for a duration you choose. People search for the codec name rather than "MPG" for one reason: something downstream specified MPEG-2 exactly — a DVD-authoring package, a broadcast ingest spec, or a hardware player that predates H.264. This page explains what that file contains, which frame sizes legacy tools expect, and where the conversion trades fidelity for compatibility.
| Property | Value |
|---|---|
| Standard | ISO/IEC 13818; Parts 1 and 2 first published 1996 |
| Video part | ISO/IEC 13818-2, standardised jointly as ITU-T Rec. H.262 |
| Container written here | MPEG Program Stream — the same stream format as .mpg and .mpeg |
| Video codec offered | MPEG-2 only on this page (the .mpeg and .mpg targets also offer MPEG-1) |
| Audio the format expects | MPEG-1 Audio Layer II (MP2), the only audio codec listed for this target |
| Audio in this conversion | None — a still image has no sound, so the audio stage is skipped |
| Frame structure | Interframe: I, P and B pictures, unlike AVIF's single intra-coded image |
| Patent status | Last United States patent expired 23 February 2018; pool expired worldwide by 3 January 2024 outside Malaysia |
| Still used by | DVD-Video, SVCD, ATSC and DVB broadcast, broadcast archives |
| Modern replacement | H.264 in MP4 for compatibility, AV1 for efficiency |
.avif onto the page or click "+ Add Files". Add several at once and use Merge strategy — "Merge images" (the default) writes one stream from all of them, "Video per image" writes a separate file for each..mpeg2 file. No sign-up, no watermark.| Delivery format | Frame size | Frame rate | Codec |
|---|---|---|---|
| DVD-Video (NTSC) | 720 x 480 | 29.97 fps | MPEG-2 |
| DVD-Video (PAL) | 720 x 576 | 25 fps | MPEG-2 |
| SVCD (NTSC) | 480 x 480 | 29.97 fps | MPEG-2, up to 2.6 Mbit/s |
| SVCD (PAL) | 480 x 576 | 25 fps | MPEG-2, up to 2.6 Mbit/s |
| VideoCD | 352 x 240 or 352 x 288 | 29.97 / 25 fps | MPEG-1, under 1.5 Mbit/s |
| ATSC / DVB standard definition | 704 x 480 or 720 x 576 | 29.97 / 25 fps | MPEG-2 |
| ATSC high definition | 1280 x 720 or 1920 x 1080 | 24-60 fps | MPEG-2 |
None of the disc-era sizes appear in the fixed-resolution presets, which start at 640 x 480 and step up through modern display sizes. To hit one exactly, open Video resolution, choose "Width x Height", switch the units from Percent to Pixels, and type the numbers from the table.
The output is a program stream carrying a single MPEG-2 video track and nothing else. There is no audio track, because a still image has none to encode — the encoder skips the audio stage rather than writing silence. There is no transparency either: MPEG-2 video is opaque, so any alpha in the AVIF is composited onto the Background Color before encoding, and the same colour fills the bars when your chosen frame size does not match the picture's aspect ratio.
The one number that surprises people is frame count. Our pipeline encodes still-image input at one frame per second, so the default 5-second Duration writes a five-frame stream. The duration recorded in the container is correct and players show a normal five-second clip; there is simply nothing changing between frames, so writing more of them would only add size.
If the requirement was really just "an MPEG file", AVIF to MPG and AVIF to MPEG write the same program stream under the extensions some software insists on. If nothing downstream actually requires MPEG-2, AVIF to MP4 gives you a smaller, sharper clip that plays on current devices.
Only in name. All three targets write an MPEG Program Stream containing MPEG-2 video; the extension exists because different software validates different spellings. The one real difference on this page is the codec menu: .mpeg2 offers MPEG-2 alone, while AVIF to MPEG and AVIF to MPG also let you select MPEG-1.
No. A still .avif contains one picture, so the output holds that frame for the Duration you set and looks frozen. An AVIF that stores a timed image sequence is detected automatically, and those frames are carried across as real motion instead.
It gives you the correct codec and container, which is what an authoring package needs to import it without transcoding. For a disc that plays in a living-room player you also need a compliant frame size — 720 x 480 for NTSC or 720 x 576 for PAL, entered through "Width x Height" in Pixels — after which your authoring software handles the bitrate ceiling, the multiplex and the disc structure.
The program stream would normally multiplex MP2 audio next to the video, and MP2 is the only audio codec this target lists. A still image has no audio to encode, though, so the encoder skips the audio stage entirely and the file is silent by design. Add a soundtrack afterwards in a video editor if you need one.
Because you moved from one of the most efficient still-image codecs to one of the least efficient video codecs. AVIF compresses a picture with AV1 intra coding; MPEG-2 dates from the mid-1990s and needs several times the bitrate for comparable fidelity, and it writes that picture once per frame of the clip. Shortening the Duration and lowering the Quality Preset are the two effective levers.
No. MPEG-2 video has no alpha channel, so transparent and semi-transparent regions are composited onto the Background Color before encoding — white unless you pick another colour from the dropdown. If the alpha channel is the point of the file, keep it as an image with AVIF to PNG.
No, for practical purposes. The last United States patent in the MPEG-2 pool expired on 23 February 2018, and the remaining worldwide patents expired by 3 January 2024 with the exception of Malaysia. That is one reason MPEG-2 has stayed alive in archival and broadcast tooling long after newer codecs overtook it technically.
"Very High (Recommended)" is preselected and is the right starting point; move to "Highest" if the clip will be re-encoded again downstream, since MPEG-2 loses detail quickly across generations. If a delivery spec gives you a bitrate instead of a quality level, note that bitrate-entry modes don't appear for image sources here — use Constant Quality to pin the encoder's quality directly, and let the transcoder that renders your final delivery hold the spec's exact rate.
Your AVIF is uploaded over an encrypted connection, converted on our servers, and deleted automatically a few hours later. There is no sign-up, no watermark, and files are never shared or made public.