View Full Version : PNGs to a AVIF
jay123210599
16th June 2025, 13:16
How do I convert an image sequence of PNG files to an animated AVIF file?
macappst
17th June 2025, 11:16
Here's a basic command that should do the trick: ffmpeg -framerate 10 -i frame_%03d.png -c:v libaom-av1 -crf 30 -b:v 0 -pix_fmt yuv420p10le output.avif
A few notes:
-framerate 10 sets the animation speed (adjust as needed).
Make sure your PNGs are named like frame_001.png, frame_002.png, etc.
yuv420p10le gives better quality/color for AVIF.
AVIF encoding is slow, just a heads up 😅
jay123210599
17th June 2025, 13:15
Here's a basic command that should do the trick: ffmpeg -framerate 10 -i frame_%03d.png -c:v libaom-av1 -crf 30 -b:v 0 -pix_fmt yuv420p10le output.avif
A few notes:
-framerate 10 sets the animation speed (adjust as needed).
Make sure your PNGs are named like frame_001.png, frame_002.png, etc.
yuv420p10le gives better quality/color for AVIF.
AVIF encoding is slow, just a heads up 😅
What's -b:v 0 and -pix_fmt yuv420p10le for?
Z2697
17th June 2025, 15:34
Try to learn to use google. Or bing. Or duckduckgo. Or whatever search engine.
GeoffreyA
17th June 2025, 18:14
In earlier versions of FFmpeg's libaom wrapper, CRF was only enabled by -crf and -b:v 0.
-pix_fmt yuv420p10le sets the format to YV420 and the bit depth to 10 bit, recommended with AV1 because it improves efficiency and is supported on the standard profile. Indeed, all post-H.264 encoding is better off using 10-bit depth.
Z2697
17th June 2025, 19:21
There's a shortage of threads in VP9&AV1 forum and we need the mighty Jay to fill the space. :p
jay123210599
17th June 2025, 23:09
In earlier versions of FFmpeg's libaom wrapper, CRF was only enabled by -crf and -b:v 0.
How about for later versions?
GeoffreyA
19th June 2025, 22:49
How about for later versions?
Not needed any more. Can be verified with -loglevel debug or trace.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.