-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a demo showing how to process video frames using GL before presenting them #6920
Comments
As per my basic analysis,this is possible by listening public void onFrameAvailable(SurfaceTexture surfaceTexture) method while rendering the video to surface but i am also looking for best solution. Best regards, |
OK, thank you. Moacir Silva |
Is the idea to do some postprocessing on video frames output by the decoder before showing them to the user? If so, this can be done by adding a |
Indeed, that would be the idea. And it would be great to have the demo! Moacir |
Demonstrates rendering to a GLSurfaceView while applying a GL shader. Issue: #6920 PiperOrigin-RevId: 293551724
Demonstrates rendering to a GLSurfaceView while applying a GL shader. Issue: #6920 PiperOrigin-RevId: 293551724
There is now a demo app you can take a look at. Clone the project, open in Android Studio, and look at the |
That is great! Moacir |
Good afternoon,
What would be the recommended way to extract video frames from ExoPlayer during the playback of a network url, edit the frames (to apply YUV filtering, effects or watermarking) and provide the updated frames to the player? Is it intercepting MediaCodec.queueInputBuffer() the way to go? The related ByteBuffer seems to aggregate raw video frames, but how to iterate through these frames?
Can you provide a code snippet or point to an example?
Warm regards,
Moacir Silva
The text was updated successfully, but these errors were encountered: