# Basic Space Exercises Timelapse

**URL:** <https://krita-artists.org/t/basic-space-exercises-timelapse/85968>\
**Category:** Animations\
**Created:** [March 3, 2024, 7:40am UTC](https://krita-artists.org/t/basic-space-exercises-timelapse/85968 "2024-03-03T07:40:06Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Maquinan](https://krita-artists.org/user_avatar/krita-artists.org/maquinan/32/101870_2.png) [@Maquinan](https://krita-artists.org/u/Maquinan)\
**Post date:** [March 3, 2024, 1:17pm UTC](https://krita-artists.org/t/basic-space-exercises-timelapse/85968/5 "2024-03-03T13:17:55Z")

</div>

### VERY IMPORTANT TO DO THIS FIRST: Make sure to change the recording directory on the Recorder docker BEFORE recording or else Krita will save the images to your root directory and you’ll have to use a file explorer cabable of viewing root folders to copy them to your home directory!

ffmpeg can be installed on termux pretty easily. It’s just

`pkg install ffmpeg`

Although I did run into a dependency error when I first tried it, that was also easily fixed with

`pkg upgrade -y`

At first, I used an app called TimeLapse I installed from F-Droid to turn the images into an mp4, and then converted to webm with ffmpeg.

`ffmpeg -i example.mp4 example.webm`

But after looking around in the documentation on [the ffmpeg website](https://www.ffmpeg.org/ffmpeg.html#Examples-1) I found in the examples how to convert a set of images to a video file.

So basically all I do is cd to the directory and then type the command

`ffmpeg -framerate [X] -i %07d.png -s [width]x[height] example.webm`  
The first -framerate sets how many fps the images will be displayed in.  
-i tells ffmpeg that the next filepath is the input.  
“%07d” basically tells the program to look for a 7-digit string of numbers, which is what we need as Krita saves the frames that way, and it will start at the lowest number (unless that number is greater than 4, in which case you have to add the argument “-start\_number x-1”, for example “-start\_number 150-1”. Just remember that arguments go BEFORE the -i for **i** nput). If the filenames are formatted as example-0000.png for instance, you would type “example-%04d.png” as the filenames are prefixed with “example” and then have a series of four digits after them.  
-s sets **W** idth x **H** eight (for example, -s 1920x1080), the reason it took so long to render the first time was because I didn’t reduce the resolution at all.  
And the “example.webm” is the name if the output that you want.

So how I rendered this one here

was by going to the directory of the recorded snapshots of the timelapse I wanted to render and typing

`ffmpeg -framerate 10 -start_number 208-1 -i %07d.png -s 877x1240 thumbsup.webm`

The reason I had to add the -start\_number was because the timelapse I recorded was recorded on the same canvas as the previous, which meant I had to move the relevant files to a new directory.

Of course if you’re not concerned with the format or the specifics, then the aforementioned TimeLapse will do the job much easier than fiddling with ffmpeg on termux.

---

_[View the full topic](https://krita-artists.org/t/basic-space-exercises-timelapse/85968)._
