iOS Question How do I apply a CIFilter to Video Playing in Real-Time?

Johnny5

Member
Licensed User
How do I apply a "CIFilter" to Video Playing in Real-Time?
Found examples, but most are in Swift.
I guess it would been in Objective C.
Thanks for help!!!!!

Newbie at Best!
Johnny5
 

JordiCP

Expert
Licensed User
Longtime User
May be missing something, but I see 2 different issues here

  1. Apply a CIFilter to a single UIImage : HERE and HERE there seems to be good material, which should be 'easily' portable to inline OBJC
  2. Get access to each decoded frame from a video player before it is shown: If this is the scenario, we must take into account that a Player performs several tasks, such as reading, buffering, decoding and 'drawing' each frame on screen (besides probably providing a user control interface). If you want to 'add' the CIFilter, it means that either:
    • The source of the player can be customized, in order to apply step 1 before the decoded frame is drawn, or perhaps
    • The player already allows for it by providing a callback on each decoded frame, or even a configurable parameter which will be the CIFilter to apply

Could you ellaborate more on the exact scenario you'd like to use it, if it is with a specific Player, ....?
 
Upvote 0

Johnny5

Member
Licensed User
Thanks for replying JordiCp!!!

Looking to apply "CIFilter" eg:" MonoChromeFilter" to the Native iOS video player "VideoPlayer1 as VideoPlayer",
if is possible.

Thanks
Johnny5
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…