-
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
Extract a frame from video #5076
Comments
Is the idea to play video in real time, processing each frame on the CPU (rather than the GPU with GLES)? This isn't a use case we support currently in ExoPlayer so it's not really in the scope of this issue tracker. I expect copying and processing the decoded frames is going to be slow and inefficient. You might be able to get away with it if the video is low resolution/frame rate and the device is fast! With |
Thanks a lot for your reply @andrewlewis . If I understand this correctly, you are saying my two options are (assuming I am not using vp9) I am sorry if my question is little all over the place and not well formed. |
Yeah, I think option (b) is preferable if it works for the kind of processing you want to do. There are certainly apps that use this approach (decoding to an off-screen SurfaceTexture and applying a GLES pixel shader to the decoder output). |
Hello,
I am trying to do some video frame level manipulation of DASH/HLS video. I have tried this on entire video files offline where I get the frames using
ffmpeg
. Now, I want to try this online (frame rate) with ExoPlayer. I have searched extensively on how I could accomplish this. All options seem to direct towards creating a custom renderer with Open GL, apply a OpenGL shader/filter on the frame.But, for my application, I would like to have the raw frame, manipulate it beyond what shaders might allow and re-insert the modified frame for display. Is it even possible with ExoPlayer? Can we override the
processOutputBuffer
function inMediaCodecVideoRenderer
to achieve this? Would this be performance suicide?I would appreciate any help as I am trying to wrap my head around the android rendering pipeline. Thanks.
The text was updated successfully, but these errors were encountered: