chickadee » ffmpeg-video » video-length

video-length video-pathnameprocedure

Compute the length of a video in frames. Note that this is a very slow operation as it must inspect the entire video. Frame-level accuracy cannot be achieved by seeking. See the note at the beginning of this document about caching.