# Animation Problem

**URL:** https://discourse.julialang.org/t/animation-problem/58419
**Category:** New to Julia
**Created:** [April 2, 2021, 6:49am UTC](https://discourse.julialang.org/t/animation-problem/58419 "2021-04-02T06:49:08Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Vos](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@Vos](https://discourse.julialang.org/u/Vos)
#### Post date: [April 2, 2021, 6:49am UTC](https://discourse.julialang.org/t/animation-problem/58419/1 "2021-04-02T06:49:08Z")

</div>

Hello to all,  
I hope you are well

I would like to create a little game in which there would be some animation. To do this I would like to use Luxor. On the Luxor website there is a sample code but the problem is that it doesn’t run when I put it in Pluto (see picture below).  
Could you please help me?

Have a nice day !

 ![Picture](https://global.discourse-cdn.com/julialang/original/3X/0/8/0804982d95c517cc1bee7b746a3d39d60242082e.png)

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [April 3, 2021, 9:58pm UTC](https://discourse.julialang.org/t/animation-problem/58419/2 "2021-04-03T21:58:17Z")

</div>

Just spotted this…

Your code works OK for me.

 ![Screenshot 2021-04-03 at 22.55.11](https://global.discourse-cdn.com/julialang/original/3X/8/b/8b5f18432baa9e87690bc4d7c2c5809916d099c5.png)

If you have Pluto errors, you can look in the terminal for some clues. But I think the way Pluto works can be surprising - I find I have to go back and evaluate other cells so that everything gets back in sync - it can be confusing sometimes …

---

<div class="post-metadata">

### Author: ![Vos](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@Vos](https://discourse.julialang.org/u/Vos)
#### Post date: [April 6, 2021, 3:01pm UTC](https://discourse.julialang.org/t/animation-problem/58419/3 "2021-04-06T15:01:34Z")

</div>

Thank you !

---

<div class="post-metadata">

### Author: ![Vos](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@Vos](https://discourse.julialang.org/u/Vos)
#### Post date: [April 6, 2021, 8:24pm UTC](https://discourse.julialang.org/t/animation-problem/58419/4 "2021-04-06T20:24:26Z")

</div>

But now I have “IOError: could not spawn…”  
And there is no clue in the terminal. Do you have any idea what’s wrong ?

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [April 6, 2021, 8:53pm UTC](https://discourse.julialang.org/t/animation-problem/58419/5 "2021-04-06T20:53:38Z")

</div>

What’s the full error message? Perhaps you don’t have `ffmpeg` on your machine…

---

<div class="post-metadata">

### Author: ![Vos](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@Vos](https://discourse.julialang.org/u/Vos)
#### Post date: [April 7, 2021, 10:12am UTC](https://discourse.julialang.org/t/animation-problem/58419/6 "2021-04-07T10:12:16Z")

</div>

Indeed, well done !  
The message begins like this: "`ffmpeg -loglevel panic -framerate 30 -f image2 -i "

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [April 7, 2021, 10:39am UTC](https://discourse.julialang.org/t/animation-problem/58419/7 "2021-04-07T10:39:24Z")

</div>

indeed, that’s the OS command that creates the animation from the individual PNG images.

---

<div class="post-metadata">

### Author: ![Vos](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@Vos](https://discourse.julialang.org/u/Vos)
#### Post date: [April 7, 2021, 10:59am UTC](https://discourse.julialang.org/t/animation-problem/58419/8 "2021-04-07T10:59:24Z")

</div>

Is there a special procedure to install it or is simply downloading it enough ?

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [April 7, 2021, 11:27am UTC](https://discourse.julialang.org/t/animation-problem/58419/9 "2021-04-07T11:27:19Z")

</div>

Unfortunately Luxor doesn’t use the FFMPEG Julia package†, so it’s something you do at OS level.

† It’s too old - needs a makeover 😀

---

<div class="post-metadata">

### Author: ![Vos](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@Vos](https://discourse.julialang.org/u/Vos)
#### Post date: [April 7, 2021, 12:09pm UTC](https://discourse.julialang.org/t/animation-problem/58419/10 "2021-04-07T12:09:13Z")

</div>

Oh yes, I agree😁  
I’m sorry to bother you with this, but how do I go about fixing this problem with the OS ?

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [April 7, 2021, 12:23pm UTC](https://discourse.julialang.org/t/animation-problem/58419/11 "2021-04-07T12:23:28Z")

</div>

Well, I’m not sure that I would describe it as a problem with the OS… What you want to do is to check the presence or absence of some other software (ffmpeg), and - if necessary - install said software. This depends very much on what your OS is, and your level of expertise.

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [April 7, 2021, 2:39pm UTC](https://discourse.julialang.org/t/animation-problem/58419/13 "2021-04-07T14:39:16Z")

</div>

I’ve just added the FFMPEG dependency to the current development version of Luxor.jl. If you access the new master version of the package it might work better for you. Perhaps you could take any problems to Github, so we can thrash out any further issues there…
