Skip to content

Instantly share code, notes, and snippets.

@cmj
Created September 28, 2022 14:15
Show Gist options
  • Save cmj/fc3665b25910a4a24f9999d23c73618e to your computer and use it in GitHub Desktop.
Save cmj/fc3665b25910a4a24f9999d23c73618e to your computer and use it in GitHub Desktop.
Drop every other frame with ffmpeg
#!/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