I am exporting an animation created using Manipulate
in the .avi
format. However the video runs very fast (I am putting it in Keynote). Its speed seems independent of how small I choose the step in Manipulate
. Is there a way to control how fast the .avi
will run or some other way to show the animation slower?
-
1$\begingroup$ If you post a working code snippet of what you are trying to export you will also probably get much better answers (see for example how this question was asked). $\endgroup$ – Ajasja May 14 '12 at 19:36
-
1$\begingroup$ In this related question, "Exporting Animations under Duration constraints to view on an iPad", some other export methods are discussed. $\endgroup$ – Jens May 15 '12 at 2:17
The trick is using a combination of "FrameRate"
, an option of Export
, and AutorunSequencing
, an option of Manipulate
. The former determines the number of frames/second of the movie whereas the latter determines how long a sweep of the control takes. With one control, that will be the length of the movie.
Export["output.avi",
Manipulate[
Plot[Sin[k x], {x, 0, 2 \[Pi]}],
{k, 1, 5},
AutorunSequencing -> {{1, 10}}
], "FrameRate" -> 2
]
-
1$\begingroup$ Actually the
FrameRate
will not control the speed of sliderbar's velocity.Just take frame form oringnal fast video. $\endgroup$ – yode Oct 15 '15 at 2:57 -
$\begingroup$ I don't think you read my post correctly. $\endgroup$ – Sjoerd C. de Vries Oct 15 '15 at 5:54
-
$\begingroup$ What happens when I need
FrameRate
to be 0.5? To have a picture for 2seconds for example? I did not work for me. $\endgroup$ – Chen Stats Yu Aug 31 '18 at 2:28
The option you need is "FrameRate"
. It's not even necessary to create a list of graphics objects first, as per Sjored's answer.
-
$\begingroup$ You can
Export
aManipulate
as movie without creating an array. TryExport["output.avi", Manipulate[Plot[Sin[k x], {x, 0, 2 \[Pi]}], {k, 1, 5}]]
$\endgroup$ – Sjoerd C. de Vries May 14 '12 at 19:44 -
$\begingroup$ @SjoerdC.deVries: but you can't control the speed of the movie that way afaik. $\endgroup$ – Heike May 14 '12 at 19:46
-
-
-
I've found that giving the option "AnimationDuration"-> (seconds) in the Export function gives better results generally.
-
1$\begingroup$ Please elaborate on your answer. For instance, in what sense does
"AnimationDuration"
give better results? $\endgroup$ – bbgodfrey Oct 14 '15 at 14:50 -
$\begingroup$ @bbgodfrey Rather than reducing the framerate, it gives a longer animation at the same framretae, making it smoother. $\endgroup$ – RationalAsh Oct 16 '15 at 8:38
-