<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false"><div><p class="ydpd6078bd1_1qeIAgB0cPwnLhDF9XSiJM" style="margin: 0px; padding: 0px 0px 0.25em; border: 0px; font-stretch: inherit; font-size: 14px; line-height: inherit; font-family: "Noto Sans", Arial, sans-serif; vertical-align: baseline; color: rgb(28, 28, 28);">I am using the desktop duplication API from Windows to capture the desktop and then I want to stream it using ffmpeg libraries.</p><p class="ydpd6078bd1_1qeIAgB0cPwnLhDF9XSiJM" style="margin: 0px; padding: 0.8em 0px 0.25em; border: 0px; font-stretch: inherit; font-size: 14px; line-height: inherit; font-family: "Noto Sans", Arial, sans-serif; vertical-align: baseline; color: rgb(28, 28, 28);">The thing is that the desktop duplication API return smaller rectangles with the parts of the screen that has changed. I there some way to pass these partial updates to ffmpeg directly to encode them to a video? They just tell fmpeg what parts of the image have changed from the previous one.</p><p class="ydpd6078bd1_1qeIAgB0cPwnLhDF9XSiJM" style="margin: 0px; padding: 0.8em 0px 0px; border: 0px; font-stretch: inherit; font-size: 14px; line-height: inherit; font-family: "Noto Sans", Arial, sans-serif; vertical-align: baseline; color: rgb(28, 28, 28);">I know that ffmpeg, the application can capture the desktop using the desktop duplication API, but I don't know if it's also taking into account this special feature of desktop duplication to extract the changed parts of the desktop.</p></div><br></div></div></body></html>