5

is it possible to have semi-transparent video (created with blue-screen) playing on top of a UIView ? I was wondering that in case that's not doable with the MPMoviePlayerViewController it might be by using OpenGL ES and a video texture ?

Thank you in advance,

F.

nosuic
  • 1,350
  • 3
  • 18
  • 23

1 Answers1

2

It is possible using the ffmpeg library. Here is the link, where you can download a very good example link

Then you just have to set the alpha property to the UIImageView. But i'm not sure about performance, try :)

Max
  • 16,679
  • 4
  • 44
  • 57
  • Oh that's smart. Yes, I hope iPhone 4's processing power will be enough to cope with it. Thank you Max! – nosuic Feb 06 '11 at 15:58
  • I tried your solution, only when setting the alpha property the whole ImageView has transparency. nosuic's case is with a blue-screen, then a part of the view needs to have transparency (the blue part). Do you have any solution for this? – Ben Groot Feb 13 '11 at 21:32
  • 1
    You can substitute blue pixels with transparent ones in runtime and then apply that image to the image view. – Max Feb 14 '11 at 06:43
  • ffmpeg license with the iTunes store is a murky legal situation, look around for more info on this before jumping into something. – MoDJ Nov 25 '12 at 23:02