<div dir="auto">As far as I know h264 doesn't support alpha.  But  VP8 does. </div><div class="gmail_extra"><br><div class="gmail_quote">On Sep 12, 2017 2:06 PM, "Davood Falahati" <<a href="mailto:falahati.davood@gmail.com">falahati.davood@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear community,<div><br></div><div>I have a opevCV Mat frame, call it mask. I decode frames into AVFrame, convert AVFrame to openCV Mat and encode them into AVPacket again.</div><div><br></div><div>Now, I want to add an alpha channel to my resulting video. Can you help me with that?</div><div><br></div><div>- FYI, I tried to add alpha channel to openCV Mat and convert it to AVFrame. But it fades whole the video and it mars the color distribution.</div><div><br></div><div>Best</div><div>Davood Falahati</div><div><div><div class="m_-284146918710071586gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr">______________________________<wbr>________________________<div><br></div></div></div></div></div></div>
</div></div>
<br>______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
<br></blockquote></div></div>