iOS - How to play a video with transparency?

前端 未结 8 1372
情书的邮戳
情书的邮戳 2020-11-29 06:38

I recorded a video with a bluescreen. We have the software to convert that video to a transparent background. What\'s the best way to play this video overlaid on a custom

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 07:04

    The GPUImage would work, but it is not perfect because the iOS device is not the place to do your video processing. You should do all your on the desktop using a professional video tool that handles chromakey, then export a video with an alpha channel. Then import the video into your iOS application bundle as described at playing-movies-with-an-alpha-channel-on-the-ipad. There are a lot of quality and load time issues you can avoid by making sure your video is properly turned into an alpha channel video before it is loaded onto the iOS device.

提交回复
热议问题