<div dir="ltr">If you pass the entire frame to the codec, it will figure out the changed regions itself, so you don't need to worry about compression ratio.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 3, 2022 at 4:45 PM Alecsandru Neculai Andrei via Libav-user <<a href="mailto:libav-user@ffmpeg.org">libav-user@ffmpeg.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px"><div dir="ltr"><div><p 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 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 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></div>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".<br>
</blockquote></div>