I'm trying to find out how to call a
FFmpeg filter (
freezedetect) from within FFmpeg's source code. I see the filter's file is under
libavfilter/vf_freezedetect.c, but I don't know how to use that filter inside the source code. How can I do that? And what I need to pass to the function?
My FFmpeg command's high-level API is this:
ffmpeg -i freeze.mp4 -vf "freezedetect=n=-60dB:d=2" -map 0:v:0 -f null -
And what I would need to get the resulting outputs directly after calling a function given its input arguments:
lavfi.freezedetect.freeze_start: 5.005 lavfi.freezedetect.freeze_duration: 2.03537 lavfi.freezedetect.freeze_end: 7.04037 lavfi.freezedetect.freeze_start: 13.0464 lavfi.freezedetect.freeze_duration: 3.03637 lavfi.freezedetect.freeze_end: 16.0827