Skip to content

Instantly share code, notes, and snippets.

@herpiko
Last active March 17, 2019 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save herpiko/cc5ebd769536e7573dd06bcc97c024a9 to your computer and use it in GitHub Desktop.
Save herpiko/cc5ebd769536e7573dd06bcc97c024a9 to your computer and use it in GitHub Desktop.
Scene detection
sudo apt-get install libavfilter-dev libavfilter-extra libavfilter-extra6

Cut

ffmpeg -i 2019-03-06_0700.avi -ss 00:04:20 -t 00:04:40 -async 1 2019-03-06_0700-cut.avi

Detect

ffmpeg -i cut.avi -vf "select='gt(scene,0.02)',showinfo" -vsync 0 frames/%05d.jpg -f null /dev/null
@herpiko
Copy link
Author

herpiko commented Mar 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment