I am using static ffmpeg version 2.5.2 for windows to capture the screen using screen capture recorder. Here I am using Directshow input device to capture the screen.
My ffmpeg command line:
ffmpeg -f dshow -i video="screen-capture-recorder" -f rawvideo -pix_fmt yuv420p -r 30 -t 10 screen-capture.yuv
using this command line, ffmpeg is able to capture the whole screen.
But when I tried adding size parameter (-video_size) to capture only certain portion of the screen, then ffmpeg shows:
could not set video options
video=screen-capture-recorder : Input/Output error
Is there any way to tell ffmpeg to capture some portion of the screen rather than capturing the whole screen in Windows?
Examples and samples for those who develop software with FFmpeg.
2 posts • Page 1 of 1