Convert MJPEG to JPG
Turn MJPEG videos into JPEG. The first frame, or the one frame_at seconds in at 25 frames per second, as one high quality JPEG at the stream's own size.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop MJPEG files on the dialor turn it to pick what to do
One still picture from a video stream.Pick a moment in an MJPEG stream and get it as a JPG.
What you get
One JPG made from a single frame of the stream. It is saved as a high quality JPEG at the stream's own size, so the width and height match the video.
By default the first frame is used. Set Frame at (s) to take the frame at that second instead, counted at 25 frames per second.
Choosing the frame
Streams often open on black. If your picture comes out dark, set Frame at (s) to a later moment. The value can be anything from 0 to 86400.
Changing the size
Set Width (px) or Height (px) to give the exact size of one side. The other side follows the aspect ratio. If you set both, the picture can be stretched.
Set Max width (px) or Max height (px) to shrink a large frame while keeping its shape. Frames already smaller than the limit stay as they are, so nothing is enlarged. To change the size of a JPG later, see resize JPG.
When it fails
If the file cannot be parsed, the conversion stops with
input_corrupted.
MJPEG and JPG.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
Motion JPEG
A stream of JPEG frames, what many webcams and IP cameras send.
- Extensions
- .mjpeg .mjpg
- MIME type
- video
/x -motion -jpeg - Kind
- Video
JPEG
Lossy photo compression that every device and browser opens. Small files, no transparency.
- Extensions
- .jpg .jpeg .jfif .jpe
- MIME type
- image
/jpeg - Kind
- Images
In your code.The same MJPEG to JPG conversion through the API, for your app or your agent.
$ cv convert clip.mjpeg clip.jpg$ cv convert clip.mjpeg clip.jpgQuestions.What people ask about MJPEG to JPG.
Convert it to JPG. The first frame is used unless you set Frame at (s) to pick another second.
Streams often open on black, and the first frame is used by default. Set Frame at (s) to a later second.
Yes. The JPG has the stream's own width and height unless you set Width (px), Height (px), Max width (px) or Max height (px).
No. The conversion gives one file with one frame.