Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

VAAPI/QSV encode video with alpha channel

Wu2019
Beginner
659 Views

 

Hello,

I use VAAPI (ffmpeg+libva+media-driver) to encode a WebM video from a raw video with RGBA.

 

The final WebM video don't save alpha information (maybe means AlphaMode is closed).  I don't know whether it is the hardware that support encoding a alpha frame?Or maybe there are some limitations of the open source software library implementation? Did I miss anything crucial?

 

Many thanks in advance for your help
Wu

Labels (1)
0 Kudos
1 Solution
Mark_L_Intel1
Moderator
600 Views

Hi Ximing,

 

Sorry for the late response.

 

The best place to ask this question is FFmpeg forum because this forum is to support Intel media toolkit like Media SDK and oneVPL.

 

I did a quick to the VAAPI driver support FFmpeg QSV plugin, here is the support table. As you can see it should support Alpha channel if your codec is VP9. But FFmpeg might mask out the alpha channel, so you might need to solve this problem first. You can use software codec to encode and make sure the alpha is not masked and switch to qsv. If you still got question, please go to FFmpeg forum to post.

 

Mark Liu

 

View solution in original post

4 Replies
RahulU_Intel
Moderator
637 Views

Hi,


Thanks for posting in Intel forums. We are checking on this internally. We will get back to you soon.


Thanks and Regards

Rahul


Mark_L_Intel1
Moderator
601 Views

Hi Ximing,

 

Sorry for the late response.

 

The best place to ask this question is FFmpeg forum because this forum is to support Intel media toolkit like Media SDK and oneVPL.

 

I did a quick to the VAAPI driver support FFmpeg QSV plugin, here is the support table. As you can see it should support Alpha channel if your codec is VP9. But FFmpeg might mask out the alpha channel, so you might need to solve this problem first. You can use software codec to encode and make sure the alpha is not masked and switch to qsv. If you still got question, please go to FFmpeg forum to post.

 

Mark Liu

 

Wu2019
Beginner
590 Views

Hi Liu,

 

Thanks for your help!

 

I'm glad it's not because the hardware doesn't support it. And I will try to adjust my solution based on this.

 

This is very helpful to me. Thank you again for your reply!

 

Wu

Mark_L_Intel1
Moderator
574 Views

Yes, I can find the Alpha support at the media driver table but I can't find information in the Media SDK side. So I think FFmpeg QSV might help on this.


Mark


Reply