<div dir="ltr">I agree, it would be faster. I'm afraid I don't know enough about the codec API to help you further...</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 4, 2022 at 9:54 AM 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></div>
<div dir="ltr">I was thinking that it would be faster if I send just the modified parts to the encoder.</div><div><br></div>
</div><div id="m_1472970144910868828yahoo_quoted_8533205983">
<div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)">
<div>
Pe vineri, 4 noiembrie 2022, 09:02:59 EET, Ben Harper <<a href="mailto:rogojin@gmail.com" target="_blank">rogojin@gmail.com</a>> a scris:
</div>
<div><br></div>
<div><br></div>
<div><div id="m_1472970144910868828yiv0689173074"><div><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 clear="none"><div><div id="m_1472970144910868828yiv0689173074yqt42157"><div dir="ltr">On Thu, Nov 3, 2022 at 4:45 PM Alecsandru Neculai Andrei via Libav-user <<a rel="nofollow noopener noreferrer" shape="rect" href="mailto:libav-user@ffmpeg.org" target="_blank">libav-user@ffmpeg.org</a>> wrote:<br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family: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: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: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: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 clear="none"></div></div></div>_______________________________________________<br clear="none">
Libav-user mailing list<br clear="none">
<a rel="nofollow noopener noreferrer" shape="rect" href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br clear="none">
<a rel="nofollow noopener noreferrer" shape="rect" href="https://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br clear="none">
<br clear="none">
To unsubscribe, visit link above, or email<br clear="none">
<a rel="nofollow noopener noreferrer" shape="rect" href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".<br clear="none">
</blockquote></div></div>
</div></div><div id="m_1472970144910868828yqt29503">_______________________________________________<br clear="none">Libav-user mailing list<br clear="none"><a shape="rect" href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br clear="none"><a shape="rect" href="https://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br clear="none"><br clear="none">To unsubscribe, visit link above, or email<br clear="none"><a shape="rect" href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".<br clear="none"></div></div>
</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>