<html xmlns:v="urn:schemas-microsoft-com:vml" 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=us-ascii"><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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"\0421\0442\0430\043D\0434\0430\0440\0442\043D\044B\0439 HTML \0417\043D\0430\043A";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.HTML
        {mso-style-name:"\0421\0442\0430\043D\0434\0430\0440\0442\043D\044B\0439 HTML \0417\043D\0430\043A";
        mso-style-priority:99;
        mso-style-link:"\0421\0442\0430\043D\0434\0430\0440\0442\043D\044B\0439 HTML";
        font-family:"Courier New";
        mso-fareast-language:RU;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=RU link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal style='margin-bottom:12.0pt;line-height:12.95pt;background:white;vertical-align:baseline'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:RU'>Hello<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;line-height:12.95pt;background:white;vertical-align:baseline'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:RU'>I need to programmatically draw an image over the video frame when encoding video via libavcodec. (which is part of ffmpeg). As I understand I need to use libavfilter tools to do this.<o:p></o:p></span></p><p class=MsoNormal style='line-height:12.95pt;background:white;vertical-align:baseline'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:RU'>I can access </span><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:RU'>AVFilter</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:RU'> via </span><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:RU'>avfilter_get_by_name("blend")</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:RU'>. Also I can access filter graph via</span><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:RU'>avfilter_graph_create_filter(&filterCtx, filter, "blender", NULL, NULL, fgr)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:RU'>. But I can not understand what should I do next.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;line-height:12.95pt;background:white;vertical-align:baseline'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:RU'>I have two AV frames, for example:<o:p></o:p></span></p><p class=MsoNormal style='line-height:12.95pt;background:#EEEEEE;vertical-align:baseline'><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:RU'>AVFrame* bottomFrame;<o:p></o:p></span></p><p class=MsoNormal style='line-height:12.95pt;background:#EEEEEE;vertical-align:baseline'><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:RU'>AVFrame* topFrame;<o:p></o:p></span></p><p class=MsoNormal style='line-height:12.95pt;background:white;vertical-align:baseline'><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:RU'>How can I put </span><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:RU'>topFrame</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:RU'> over the </span><span lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:RU'>bottomFrame</span><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:RU'> using libav API?<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;line-height:12.95pt;background:white;vertical-align:baseline'><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:RU'>Thank you<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>