Convert MPG to PNG
Turn MPG videos into PNG. The first frame, or the one frame_at seconds in, as one PNG with square pixels, so a 16:9 DVD frame is 1024 by 576.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop MPG files on the dialor turn it to pick what to do
One frame from your video as a PNG.The first frame, or the one you pick, saved as a single image.
What you get
One PNG made from a single frame of the MPG video. By default it is the first frame. Set Frame at (s) to take the frame from a later second instead, anywhere from 0 to 86400.
The pixels are square, so a 16:9 DVD frame comes out at 1024 by 576.
What it leaves behind
Interlaced fields are not merged. Where something moves, the frame shows comb lines.
Only one frame is kept. The rest of the video, including its sound, is not in the PNG.
Setting the size
Set Width (px) or Height (px) to give the exact size of the picture. If you give only one, the other follows the aspect ratio. If you give both, the picture can be stretched.
Set Max width (px) or Max height (px) to shrink a large frame while keeping its shape. Anything already smaller stays as it is, so nothing is enlarged.
When it stops
If the file cannot be parsed, the conversion stops with
input_corrupted.
MPG and PNG.What each format is, and the options this conversion takes.
- 01 · frame_at
Frame at (s)
The second of the video the picture is taken from. The first frame is used when it is left out.
0 to 86400 - 02 · height
Height (px)
The exact height of the result in pixels. The width follows the aspect ratio unless it is also given, in which case the picture can be stretched.
1 to 20000 - 03 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
1 to 20000 - 04 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
1 to 20000 - 05 · width
Width (px)
The exact width of the result in pixels. The height follows the aspect ratio unless it is also given, in which case the picture can be stretched.
1 to 20000
The formats
MPEG Video
MPEG-1 and MPEG-2 video, the formats of VCDs and DVDs.
- Extensions
- .mpg .mpeg .vob
- MIME type
- video
/mpeg - Kind
- Video
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
In your code.The same MPG to PNG conversion through the API, for your app or your agent.
$ cv convert clip.mpg clip.png$ cv convert clip.mpg clip.pngQuestions.What people ask about MPG to PNG.
The first frame, unless you set Frame at (s). Then it uses the frame at that second.
No. The result is one PNG from one frame.
Interlaced fields are not merged, so parts of the picture that move show comb lines.
A 16:9 DVD frame is 1024 by 576. Set Width (px), Height (px), Max width (px) or Max height (px) to change it.