There is an input format option for ffmpeg - x11grab, which allows you to capture the specified area and output it to a file / stream. I am trying to do the same programmatically, but I have not found any basic tutorials / links for the ffmpeg API.
I wonder how you can open the x11 area with avformat_input_file or something like that. Or should I do this with XCopyArea / etc?
(Any programming language will satisfy)
zw0rk source
share