Linux stop motion

I was testing out a camera my wife had bought that is designed to take stop motion pictures. She wants to take pictures of her garden growing (if we get ever get warm weather).

Because I will have to do it again at some point in the future I thought I would document the steps I used.

The software that comes with the camera does not work with LinuxWine. So I started looking at how I could do this.

The pictures were in the format WSCT0000.JPG where 0000 was number counting up in my case from my pictures started from the number 0635.  WSCT is a name that is from the camera manufacturer.
1) I needed to rename the files to a common name,  to rename the files by going to the directory then going to the terminal and typing rename WSCT “”  *.JPG
This basically removes the WSCT prefix.

2) The next thing I realized was that the pictures were very large so I reduced them down to 800×600 using the Imagemagick command mogrify I typed the following.
mogrify -resize 800×600 *.JPG
This command overwrites the existing files, so make sure you have the originals.

3) Next was to join them all together using ffmpeg command this is where I had issues it did not like having zero as a prefix (0635.JPG) son I ran the command rename again to remove the prefix zero and add a letter p so my file names were now starting p635.JPG. This is because the next command would not run unless it had a prefix before the number (before %d).

4) Finally I completed the joining by running the following command
ffmpeg -f image2 -start_number 0635 -i p%d.JPG output1.mp4
This time, because I had changed the prefix, it worked.

5) Joining the pictures together, obviously there is no sound, so I used Kdenlive to transcode an audio file that I found in the Google free music collection.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s