Setting framerate per frame

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Setting framerate per frame

Michiel Sikma
Hi all,

I'm working on a script that converts user made animations into gif files.
Currently I'm doing the following, which works: https://gist.github.
com/msikma/8e3fd1ea363216ae2a781503fbb2179a

However, it's not entirely what I want. These animations have user defined
frame durations. So for example, an animation might have 4 frames, with the
first three being 40ms long (25 fps), and the last one being 150ms long
(6.667 fps).

I can't figure out if it's possible to rewrite my script in such a way that
I can indicate the exact times. I also eventually want to generate webm
files, so I'm hoping whatever the answer is can be reused for that end as
well.
Would be really grateful for any help you can give.

Thanks,
Michiel
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Setting framerate per frame

Carl Eugen Hoyos-2
2018-03-04 21:51 GMT+01:00, Michiel Sikma <[hidden email]>:

> I'm working on a script that converts user made animations into gif files.
> Currently I'm doing the following, which works: https://gist.github.
> com/msikma/8e3fd1ea363216ae2a781503fbb2179a
>
> However, it's not entirely what I want. These animations have user defined
> frame durations. So for example, an animation might have 4 frames, with the
> first three being 40ms long (25 fps), and the last one being 150ms long
> (6.667 fps).

Either duplicate the input images or use the concat demuxer (which
supports frame duration) instead of the image2 demuxer for the input
images.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".