Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I slow down .avi files when creating them from Mathematica?

I have created a list of plots that I want to run as a movie.

list11 = {pic0, pic001, pic01, pic02, pic05, pic1, pic2, pic5, pic10};

First I created an animation which I slowed down to 1 frame per second using the following code:

ListAnimate[list11, AnimationRate -> 1]

I now wanted to export this to an avi file so I tried the following:

Export["periodic.avi", ListAnimate[list11, 1]]

However the result of this was a movie that played too fast (I think it was playing at the default total duration of 5 seconds rather than the 9 that I wanted)

I then tried to export the list directly:

 Export["periodic2.avi", list11]

This however went even faster again (the whole thing was finished in about 1 second)

Looking in the help files it said that there was an advanced export option called "framerate", so I tried:

 Export["periodic2.avi", list11,"framerate"->1]

But this just gave me the exact same output as the previous .avi file (it seemed that the framrate option was completely ignored because I tried different values instead of 1 but the output was always the same speed).

Can anyone enlighten me on how I can control the animation speed of the .avi file?

like image 402
Sperick Avatar asked Nov 25 '25 09:11

Sperick


1 Answers

Mathematica is case sensitive."framerate" should be written as "FrameRate".

enter image description here

like image 142
Sjoerd C. de Vries Avatar answered Nov 27 '25 04:11

Sjoerd C. de Vries



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!