
I used the fps filter first because in this case, assuming your input frame rate is higher than 20 fps, it will be slightly more efficient and faster than scaling first because frames will be dropped before the scale filter.If you want all of the frames as is then omit the fps filter.

If your input has less than 20 fps, then ffmpeg will duplicate frames to convert to 20 fps.

You can chain linear filters together with commas: ffmpeg -i 240_video.mp4 -vf "fps=20,scale=1920:1080" 240_scaled/out%d.png
