Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Video Encoding > VP9 and AV1

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th June 2025, 13:16   #1  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 504
PNGs to a AVIF

How do I convert an image sequence of PNG files to an animated AVIF file?
jay123210599 is offline   Reply With Quote
Old 17th June 2025, 11:16   #2  |  Link
macappst
App Geek
 
macappst's Avatar
 
Join Date: May 2025
Location: Salt Lake City
Posts: 3
Here's a basic command that should do the trick:
Code:
ffmpeg -framerate 10 -i frame_%03d.png -c:v libaom-av1 -crf 30 -b:v 0 -pix_fmt yuv420p10le output.avif
A few notes:

Code:
-framerate 10
sets the animation speed (adjust as needed).

Make sure your PNGs are named like
Code:
frame_001.png
,
Code:
frame_002.png
, etc.

Code:
yuv420p10le
gives better quality/color for AVIF.

AVIF encoding is slow, just a heads up 😅
macappst is offline   Reply With Quote
Old 17th June 2025, 13:15   #3  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 504
Quote:
Originally Posted by macappst View Post
Here's a basic command that should do the trick:
Code:
ffmpeg -framerate 10 -i frame_%03d.png -c:v libaom-av1 -crf 30 -b:v 0 -pix_fmt yuv420p10le output.avif
A few notes:

Code:
-framerate 10
sets the animation speed (adjust as needed).

Make sure your PNGs are named like
Code:
frame_001.png
,
Code:
frame_002.png
, etc.

Code:
yuv420p10le
gives better quality/color for AVIF.

AVIF encoding is slow, just a heads up 😅
What's
Code:
-b:v 0
and
Code:
-pix_fmt yuv420p10le
for?
jay123210599 is offline   Reply With Quote
Old 17th June 2025, 15:34   #4  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Location: Between my two ears
Posts: 957
Try to learn to use google. Or bing. Or duckduckgo. Or whatever search engine.
Z2697 is offline   Reply With Quote
Old 17th June 2025, 18:14   #5  |  Link
GeoffreyA
Donor
 
Join Date: Jun 2024
Location: South Africa
Posts: 679
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.

Last edited by GeoffreyA; 17th June 2025 at 18:24.
GeoffreyA is offline   Reply With Quote
Old 17th June 2025, 19:21   #6  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Location: Between my two ears
Posts: 957
There's a shortage of threads in VP9&AV1 forum and we need the mighty Jay to fill the space.

Last edited by Z2697; 17th June 2025 at 19:23.
Z2697 is offline   Reply With Quote
Old 17th June 2025, 23:09   #7  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 504
Quote:
Originally Posted by GeoffreyA View Post
In earlier versions of FFmpeg's libaom wrapper, CRF was only enabled by -crf and -b:v 0.
How about for later versions?
jay123210599 is offline   Reply With Quote
Old 19th June 2025, 22:49   #8  |  Link
GeoffreyA
Donor
 
Join Date: Jun 2024
Location: South Africa
Posts: 679
Quote:
Originally Posted by jay123210599 View Post
How about for later versions?
Not needed any more. Can be verified with -loglevel debug or trace.
GeoffreyA is offline   Reply With Quote
Reply

Tags
avif, png

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:18.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.