$ ffmpeg -r 26 -i <file>%05d.png -plays 0 -pred 5 -f apng -vf "scale=320:320" -pix_fmt monob output.png
-r framerate
-i input (%05d = zero-padded digit)
-plays APNG loop mode
0 = infinite loop
1 = no loop
2-65535 = n loops
-pred PNG filter algorithm
0 = none - the scanline is transmitted unmodified
1 = sub - transmits the difference between each byte and the value of the corresponding byte of the prior pixel
2 = up - just like the Sub filter except that the pixel immediately above the current pixel, is used
3 = avg - uses the average of the two neighboring pixels (left and above) to predict the value of a pixel
4 = paeth - computes a simple linear function of the three neighboring pixels
5 = mixed - uses the best filter algorithm for each line (usually has better compression)
-f format
-vf video filter (comma-separated) - scale=widht:height
-pix_fmt pixel format / color depth
monob = 8-bit monochrome
Last active
July 24, 2023 17:40
-
-
Save mia-riezebos/86aeb2755f9369aa91985bce4883e0bf to your computer and use it in GitHub Desktop.
Discord Sticker ffmpeg APNG command
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment