0

I have a .avi video clip which runs for 30 minutes with 30 fps. I want to know the total number of black frames in that clip instead of showing every black frame. Is it possible to do it using ffmpeg?

raaki
  • 1
  • 1
    You might need [FFmpeg blackDetect API](http://www.ffmpeg.org/ffmpeg-filters.html#blackdetect) – pwwpche Nov 15 '17 at 00:53
  • I tried ffmpeg -i sample.avi -vf "blackdetect=d=0.03:pix_th=0.00" -an -f null - 2>&1 2>result.txt – raaki Nov 15 '17 at 15:03
  • I need to plot either the number of black frames or the duration of black frames in the total length of the video file. – raaki Nov 15 '17 at 15:04

0 Answers0