<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<div>
<div>
<p>Hi,<br>
<br>
I am trying to perform h264 video encoding on a GPU using the ffmpeg's vaapi library.</p>
</div>
<p>I have been following this this example from ffmpeg Github repo: <a href="https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/vaapi_encode.c">
https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/vaapi_encode.c</a><br>
<br>
I installed ffmpeg with –enable-vaapi, but whenever I try to run av_hwdevice_ctx_create, it returns -12 error which maps to an out of memory message. I am also unable to successfully run avcodec_find_encoder(AV_CODEC_ID_H264), that just returns NULL.<br>
<br>
I created a stack overflow post with more details about it: <br>
https://stackoverflow.com/questions/66462326/ffmpeg-av-hwdevice-ctx-create-returns-enomem</p>
</div>
<p class="MsoNormal">What am I possibly be missing here?<br>
<br>
Thanks!</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
---------------------------------------------- <br>
<br>
This e-mail and any attachments may contain information that is confidential to Ross Video.
<br>
<br>
If you are not the intended recipient, please notify me immediately by replying to this message. Please also delete all copies. Thank you.
</body>
</html>