<div dir="auto"><div><br><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">пт, 25 окт. 2024 г., 22:48 Andrew Randrianasulu <<a href="mailto:randrianasulu@gmail.com">randrianasulu@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">We branching!<div dir="auto"><br></div><div dir="auto">I looked at gpu-screen-recorder</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Because I have now hw encoder in my RX550 I Aalso tested this program:</div><div dir="auto"><br></div><div dir="auto">it goes up to 52-55 fps for 1440*900 (8bpc) screen.</div><div dir="auto"><br></div><div dir="auto">just a bit shy of 60 fps ;)</div><div dir="auto"><br></div><div dir="auto">May be there is way to speed it up a bit, or live with 30 fps screen recording as before (just with much smaller filesize at expense of some fuzzy color edges)</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div dir="auto"><a href="https://git.dec05eba.com/gpu-screen-recorder/tree/src/encoder/video/vaapi.c" rel="noreferrer noreferrer" target="_blank">https://git.dec05eba.com/gpu-screen-recorder/tree/src/encoder/video/vaapi.c</a><br></div><div dir="auto"><br></div><div dir="auto">it sets</div><div dir="auto"><br></div><div dir="auto"><pre><code>AVHWFramesContext *hw_frame_context = (AVHWFramesContext*)frame_context->data;
    hw_frame_context->width = video_codec_context->width;
    hw_frame_context->height = video_codec_context->height;
    hw_frame_context->sw_format = self->params.color_depth == GSR_COLOR_DEPTH_10_BITS ? AV_PIX_FMT_P010LE : AV_PIX_FMT_NV12;
    hw_frame_context->format = video_codec_context->pix_fmt;
    hw_frame_context->device_ctx = (AVHWDeviceContext*)self->device_ctx->data;</code></pre><pre><code><br></code></pre><pre><code><br></code></pre><pre><code>so may be we need to set </code>AV_PIX_FMT_P010LE and not just P010?</pre><pre><br></pre><pre><br></pre></div></div>
</blockquote></div></div></div>