Convert Y4M to MJPEG
Turn Y4M videos into MJPEG. A raw Motion JPEG stream at 25 frames per second, one JPEG picture per frame, without sound.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop Y4M files on the dialor turn it to pick what to do
Raw video as a Motion JPEG stream.Each frame becomes one JPEG picture, played at 25 frames per second.
What you get
A raw Motion JPEG stream in one file, with one JPEG picture for each frame. There is no sound in the output.
The stream stores no timing. Players assume 25 frames per second, so that is the rate the stream plays at.
Resize, rotate and trim
Set Max width or Max height to shrink large frames. The shape stays the same, and frames that are already smaller are never enlarged. Both accept values from 16 to 20000.
Set Rotate to turn the result clockwise by 90, 180 or 270 degrees.
Set Start at to cut seconds from the beginning, and decimals such as 1.5 work. Set Stop at to end at a second of the original. It counts from the start of the original, not from where trimming starts, so it must be later than Start at.
Speed
Set Speed to play the video faster or slower. A value of 2 is twice as fast and 0.5 is half as fast. The range is 0.25 to 4.
When it fails
A file that cannot be parsed stops the conversion with
input_corrupted.To go the other way, use MJPEG to Y4M.
Y4M and MJPEG.What each format is, and the options this conversion takes.
- 01 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
16 to 20000 - 02 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
16 to 20000 - 03 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270 - 04 · speed
Speed
Plays faster or slower. 2 is twice as fast and 0.5 half as fast. Voices keep their pitch.
0.25 to 4 - 05 · trim_end
Stop at (s)
Stops at this second of the original. It counts from the start of the original, not from where trimming starts, so it must be later than Start at.
0 to 86400 - 06 · trim_start
Start at (s)
Cuts this many seconds from the beginning. Decimals such as 1.5 work.
0 to 86400
The formats
YUV4MPEG
Raw uncompressed video frames with a small header, the exchange format of codec testing.
- Extensions
- .y4m
- MIME type
- video
/x -yuv4mpeg - Kind
- Video
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
In your code.The same Y4M to MJPEG conversion through the API, for your app or your agent.
$ cv convert clip.y4m clip.mjpeg$ cv convert clip.y4m clip.mjpegQuestions.What people ask about Y4M to MJPEG.
No. The output holds only the picture frames, one JPEG for each frame.
25 frames per second. The stream stores no timing, so players assume that rate.
Yes. Set Start at to cut the beginning and Stop at to end at a later second of the original.
The Y4M file could not be parsed.