I might be re-asking a question that was already in: Render Bitmap frames to Surface for encoding
I need to essentially do the same thing but it's not clear to me whether the main question was solved or not, which is how to render the generated texture on to a Surface. I've looked through the grafika project but it seems to assume that a SurfaceTexture is available, from which it gets the transform matrix for drawing. I've also looked at EncodeAndMuxTest but I cannot figure out how to run it with a bitmap input.