I currently have something working with TranscoderStreamSourceVideo.grabFrame and dynamically generated overlays, kinda like a censorship. However, it seems because the grabFrame and overlay process are out-of-band of the decode/encode process that the overlay is a little laggy where the censorship cannot keep up with the subject being censored.
Is there a way to instead insert this censorship-generating and frame overlay process like a man-in-the-middle between the decoding and encoding?
Example: Incoming stream -> Wowza -> Transcoder -> Decode -> Censorship drawn on frame (BufferedImage) -> Encode -> Client
This way every frame is guaranteed to have the censor in the right position (of course assuming that the placement is correct).