Convert Y4M to AVIF
Turn Y4M videos into AVIF. A looping animated AVIF at 15 frames per second, at most 640 pixels wide and quality 60 unless asked otherwise.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop Y4M files on the dialor turn it to pick what to do
A looping animation from raw video.Y4M frames become one animated AVIF at 15 frames per second.
What you get
One animated AVIF that loops. By default it runs at 15 frames per second, is at most 640 pixels wide, and uses quality 60.
Y4M holds raw uncompressed frames. The AVIF is lossy, so it does not keep every detail of the source.
Size and frame rate
Set Max width or Max height to shrink the picture. The shape is kept, and anything already smaller stays as it is, so nothing is enlarged. Max width is 640 unless you change it.
Set Frame rate to change how many frames each second holds. Fewer frames make a smaller file and choppier motion. 10 to 15 is common for animated pictures, and 24 to 30 looks natural.
Quality and trimming
Quality runs from 1 to 100 and is 60 by default. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
Set Start at to cut seconds from the beginning. 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.
Y4M and AVIF.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.
1 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.
1 to 20000 default 640 - 03 · quality
Quality
How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
1 to 100 default 60 - 04 · 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 - 05 · trim_start
Start at (s)
Cuts this many seconds from the beginning. Decimals such as 1.5 work.
0 to 86400 - 06 · video.fps
Frame rate (fps)
Frames per second. Fewer frames make a smaller file and choppier motion. 24 to 30 looks natural, and 10 to 15 is common for animated pictures.
1 to 60 default 15
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
AVIF
AV1-based images with better compression than WebP and support for HDR and alpha.
- Extensions
- .avif
- MIME type
- image
/avif - Kind
- Images
In your code.The same Y4M to AVIF conversion through the API, for your app or your agent.
$ cv convert clip.y4m clip.avif$ cv convert clip.y4m clip.avifQuestions.What people ask about Y4M to AVIF.
Yes. The result is a looping animated AVIF in one file.
15 frames per second unless you set Frame rate. You can pick any value from 1 to 60.
Yes. Set Start at and Stop at to the seconds you want. Stop at counts from the start of the original.
No. Max width and Max height only shrink pictures. Anything smaller than the limit stays as it is.