Convert Video to Stopmotion with ffmpeg

#!/bin/bash
mkdir ffmpeg_temp
	#-r sets frames per second
	#-vsync 2 means no duplicated images
	ffmpeg -i "$1" -r 1 -an -vsync 2 -f image2 ffmpeg_temp/%05d.png
	ffmpeg -i ffmpeg_temp/%05d.png "$1"_stopMotion.mp4
rm -rf ./ffmpeg_temp
Advertisements
This entry was posted in Bash, ffmpeg, Linux, simpleScripts. Bookmark the permalink.

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