[Libav-user] Adding alpha channel to h264 encoder
Davood Falahati
falahati.davood at gmail.com
Fri Sep 15 19:44:19 EEST 2017
Dear Michael,
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.
best,
______________________________________________________
Tel: +98 (913) 126-0265
On Tue, Sep 12, 2017 at 8:24 PM, Michael IV <explomaster at gmail.com> wrote:
> As far as I know h264 doesn't support alpha. But VP8 does.
>
> On Sep 12, 2017 2:06 PM, "Davood Falahati" <falahati.davood at gmail.com>
> wrote:
>
>> Dear community,
>>
>> 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.
>>
>> Now, I want to add an alpha channel to my resulting video. Can you help
>> me with that?
>>
>> - 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.
>>
>> Best
>> Davood Falahati
>> ______________________________________________________
>>
>>
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20170915/65ec85e0/attachment.html>
More information about the Libav-user
mailing list