FORUMS: list search recent posts

Re: detecting black frames in a video file

COW Forums : FFmpeg

VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Michael Rampe
Re: detecting black frames in a video file
on Jan 26, 2014 at 11:49:46 pm

1. Looks like it is one or the other according to the docs.

2. Scene detection can be a bit tricky but I did get a method working a while ago after some searching....
ffprobe -show_frames -f lavfi "movie=Input.mp4,select=gt(scene\,.1)" | grep "pkt_pts_time="
| sed 's/.*pkt_pts_time=([0-9.]{8,})\|.*/\1/'

This gives me a list of times, like this:

214.347467
649.982667
657.289967
664.897567
664.964300
694.960933
722.088033
732.598533
733.432700
733.933200
739.472067
740.339600
754.954200
769.935833
799.899100
829.962467
1192.191000
1193.358833


Basically using the "select" filter with the FFprobe app: http://www.ffmpeg.org/ffmpeg-filters.html#select_002c-aselect
...with some unix fanciness to get a clean text output. The grep/sed pipes wont work under windows...

FFprobe is a separate binary to FFmpeg but you should be able to get a static build from the same place you got the other one.

Michael


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]