Skip to content

Instantly share code, notes, and snippets.

@patrickgill
Created June 14, 2016 17:01
Show Gist options
  • Save patrickgill/1392c0b9e6d28e7a98a4b1ff017326eb to your computer and use it in GitHub Desktop.
Save patrickgill/1392c0b9e6d28e7a98a4b1ff017326eb to your computer and use it in GitHub Desktop.
count a video frames. requires ffprobe
#!/bin/bash
ffprobe -v error -count_frames -select_streams v:0 -show_entries stream=nb_read_frames -of default=nokey=1:noprint_wrappers=1 $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment