Last active
December 31, 2015 08:49
-
-
Save keyz182/7962484 to your computer and use it in GitHub Desktop.
Make a timelaspe video at 15x speed from a normal video.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir frames | |
ffmpeg -i in.flv -f image2 -vf fps=fps=2 frames/%05d.png | |
ffmpeg -f image2 -i frames/%05d.png -i timelapse.mp3 -map 0 -map 1 -acodec copy -shortest -vcodec libx264 -r 30 out.mp4 | |
rm frames/* | |
rmdir frames |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment