1
$\begingroup$

When trying to export a video in the following manner

anim = ListAnimate[Table[Graphics[Rectangle[]], {j, 10}]]

Export["anim.mp4", anim, "FrameRate" -> 60, 
 ImageResolution -> 800, Antialiasing -> True]

where anim is just an example. The code is inspired by this answer, I get the following error message

enter image description here

"FrameRate" is working fine, but I also tried to add the " " to ImageResolution and Antialiasing, with no success. Any idea why, and how to solve this?

I'm using Mathematica 12.1 on Windows 10.

$\endgroup$
  • $\begingroup$ Why do you use ListAnimate instead of just exporting the Table as .mp4? $\endgroup$ – CA Trevillian Jun 16 at 0:40
  • $\begingroup$ I didn't know you could do that. How exactly? $\endgroup$ – sam wolfe Jun 17 at 10:19
3
$\begingroup$

The allowed options for Export to mp4 are

enter image description here

But your command is

Export["anim.mp4", anim, "FrameRate" -> 60, 
 ImageResolution -> 800, Antialiasing -> True]

Therefore 2 of the options you used do not apply to mp4. These are ImageResolution and Antialiasing. That is why you get the errors.

If you remove these options then it works.

V 12.1 on windows,

reference https://reference.wolfram.com/language/ref/format/MP4.html

| improve this answer | |
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.