Stopmotion is a free application for creating stop-motion animation movies. It’s very easy to use and has an intuitive interface. Unfortunately, there’s a problem with exporting your video once you’ve pieced it together in the GUI.
There’s another way and it’s very easy.
If you’ve created a Stopmotion project, saved it, and tried to export it to no avail, navigate to the save directory and locate the project file, a tar folder ending with the extension .sto. Something like [your_project].sto. Open this and the next folder [your_project]. Here you’ll find an ‘images’ folder, ’sound’ folder, and .dat file. In the ‘images’ folder, you will see that Stopmotion will have given each of your files a name such as 000001.jpg and so on. Copy the ‘images’ folder to another location. From the command line, navigate to this new location. Then run the following command:
ffmpeg -r 27 -b 1800 -i %06d.jpeg -s 640x480 test.mp4
Where:
* -r controls frame rate; (here 27)
* -i is the input file name; here I’m saying “take all jpgs whose name is 6 digits, in sequence”
* -b is the bitrate. 1800 is pretty low quality but results in a manageable file
* -s is necessary if your photos are landscape; ffmpeg assumes they’re portrait by default
Bingo! This will create a video ‘test.mp4′ in your current directory.
This is assuming that all of your images are the same size (in the example above, 640×480). If not, you will need to resize them. You can batch resize all of the images in a directory using mogrify. This tool is included in the ImageMagick library, so you’ll have to install that.
sudo apt-get install imagemagick
Then navigate to the directory of files you want to resize and enter:
mogrify -resize 640 *.jpg
Of for both dimensions:
mogrify -resize 640×480! *.jpg
You can also eschew use of the Stopmotion app entirely and animate your files with only KRename and the command line.
Install KRename using apt-get or the Software Center. It will install in your accessories. Throw all of your images into a folder. Open KRename and Add your images. Select the Destination tab and ensure the “Rename input files” radio button is selected. Check the “Overwrite existing files” box if you wish to do so. Under the Filename tab, select the Advanced tab. In the Template field erase the “$” and enter “###” or “####”. In the next field, also delete the “$” and enter an extension, such as “jpg”. The click Finish.
Run the ffmpeg code above and voila!
Source links:
http://flavor8.com/index.php/2008/10/11/how-to-stop-motion-in-ubuntu/
http://www.smokinglinux.com/tutorials/howto-batch-image-resize-on-linux
http://www.smokinglinux.com/tutorials/howto-batch-image-resize-on-linux