Created
September 28, 2022 14:15
-
-
Save cmj/fc3665b25910a4a24f9999d23c73618e to your computer and use it in GitHub Desktop.
Drop every other frame with ffmpeg
This file contains 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 | |
# Drop every other frame in a 2 minute clip to meet | |
# imgur 1 minute maximum upload length requirements | |
ffmpeg -y -i $1 -vf select='not(mod(n\,2)),setpts=0.5*PTS' -r 30 sn-$(date '+%Y-%m-%d_%H:00-%S').mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment