<div dir="ltr">Dear Michael,<div><br></div><div>Thanks for your reply. I changed the codec to qrtle and I found that there is an alpha channel added. My problem, however, exists. I translate opencv Mat with alpha plane to AVFrame. But in the resultin video I don't see the added alpha plane.</div><div><br></div><div>best,</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">______________________________________________________<div><br></div><div>Tel: +98 (913) 126-0265</div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Sep 12, 2017 at 8:24 PM, Michael IV <span dir="ltr"><<a href="mailto:explomaster@gmail.com" target="_blank">explomaster@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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"><div><div class="h5">On Sep 12, 2017 2:06 PM, "Davood Falahati" <<a href="mailto:falahati.davood@gmail.com" target="_blank">falahati.davood@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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_4140203587560487414m_-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></div></div>______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/list<wbr>info/libav-user</a><br>
<br></blockquote></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><br></div>