Skip to content

Instantly share code, notes, and snippets.

View AyanKumarBhunia's full-sized avatar
🏠
Working from home

Ayan Kumar Bhunia AyanKumarBhunia

🏠
Working from home
  • Sony PlayStation, London.
  • United Kingdom
  • 14:37 (UTC +01:00)
View GitHub Profile
@lmlsna
lmlsna / count-frames.sh
Last active February 19, 2024 09:33
Return the number of frames in a video file using ffprobe (ffmpeg)
#!/bin/bash
# Print the number of video frames in $1
ffprobe -count_frames -v error -select_streams v:0 -show_entries stream=nb_read_frames -of default=nokey=1:noprint_wrappers=1 ${1}