Skip to content

Instantly share code, notes, and snippets.

@keyz182
Last active December 31, 2015 08:49
Show Gist options
  • Save keyz182/7962484 to your computer and use it in GitHub Desktop.
Save keyz182/7962484 to your computer and use it in GitHub Desktop.
Make a timelaspe video at 15x speed from a normal video.
#!/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