Re: [EXTERNAL] - the sample code for the screen capture to the hw acceleration encoder

Peter Harris <pharris-gGaKbNYk6w1Wk0Htik3J/[email protected]> Thu, 24 Sep 2020 16:45:22 +0000
Newsgroups gmane.comp.freedesktop.xcb
Message-ID <YQXPR0101MB12227670DD05204DD9010AACDF390@YQXPR0101MB1222.CANPRD01.PROD.OUTLOOK.COM>
On 2020-09-23 Wei-fu Chen wrote:
> Hi,
> 
> I am new to the XCB /XLIB and currently would like do the screen 
> recording by using Intel hardware acceleration encoder.
> 
> I did some search on Google but could not find the sample code or the 
> document about that.
> 
> I would appreciate that if someone may point me in the right direction.
> Thanks!

Sounds like you want VA-API: https://01.org/linuxmedia/vaapi

An example of capture and encode (using a wide variety of APIs, across a variety of platforms) is OBS: https://obsproject.com/

Peter Harris