You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example shows how to take a couple of images and turn them into a slowly changing animated WebP. This is useful for a "digital pictureframe" style image.
What I find interesting FFmpeg for this example is the usage of two framrate (-r) flags. If the first flag is omitted, some images in the sequence will be skipped. And the second flag determines the speed the images are cycled.
https://ffmpegbyexample.com/examples/lnigitjg/slow_animated_webp_image_sequence_carousel/
This example shows how to take a couple of images and turn them into a slowly changing animated WebP. This is useful for a "digital pictureframe" style image.
What I find interesting FFmpeg for this example is the usage of two framrate (
-r
) flags. If the first flag is omitted, some images in the sequence will be skipped. And the second flag determines the speed the images are cycled.For WebP specific options and more information, see the relevant WebP documentation in the ffmpeg-codecs page.
-r 1
- interpret input image sequence framerate as 1 FPS. This must be equal or lower than the second-r
value.-i /path/to/sequence/%d.png
- path to image sequence where each image is name1.png
ton.png
. Note there are no leading zeros in file names.-vcodec libwebp
- set the video codec to generate WebP images-pix_fmt yuv420p
- set the pixel format (color space). YUV420 is the only supported one for lossy and RGB is the only supported one for lossless.-loop 0
- loop the animated WebP-r 1
- set output framerate to 1 FPS (i.e. change the image once per second)The text was updated successfully, but these errors were encountered: