Detect motion in a cropped area, but capture entire frames?

Questions involving a Windows version of FFmpeg.
Post Reply
epc002
Posts: 1
Joined: Sat Apr 27, 2019 11:26 am

Detect motion in a cropped area, but capture entire frames?

Post by epc002 » Sat Apr 27, 2019 11:37 am

My goal is to detect motion in a small area of a set of video files, and copy the entire video frame to output files.

So far I've tried this:

Code: Select all

set SENS1=0.03
for %i in (*) do (ffmpeg -i %i -vf "crop=170:250:1880:280, select=gt(scene\,%SENS1%),setpts=N/(25*TB)" %i-Motion%SENS1%.avi
It correctly detects motion in the desired(cropped) area, but the output files consist of only that cropped area.

Any ideas on how to have the output files contain the uncropped entire frames?

Post Reply
'