linkedin / LiTr

Lightweight hardware accelerated video/audio transcoder for Android.
BSD 2-Clause "Simplified" License
608 stars 85 forks source link

Support for transparent video #180

Open woniu163 opened 2 years ago

woniu163 commented 2 years ago

support for transparent video by libvpx, like webm

izzytwosheds commented 2 years ago

Technically we should already support this. VPx support is available on many devices via MediaCodec API which LiTr uses. The trick is to figure out correct MediaMuxerMediaTarget and MediaCodecDecoder parameters. I will try to take a quick look at this.

izzytwosheds commented 2 years ago

Can you describe your use case? Are you trying to transcode a WEBM with transparent video into MP4 with some effects? Or are you trying to create a WEBM with transparency?

woniu163 commented 2 years ago

Yes, we tried to combine a webm and a mp4 video into a new mp4 file, but it didn't work

izzytwosheds commented 2 years ago

Did you try to draw webm frames onto mp4 frames? And alpha channel didn't work, I presume?

woniu163 commented 2 years ago

yes,the alpha channel didn't work