Skip to content
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

How to process each video frame when using Exoplayer play a RTSP stream? #1455

Closed
gscholer opened this issue Jun 13, 2024 · 3 comments
Closed

Comments

@gscholer
Copy link

Here is a similar question google/ExoPlayer#7167, I am using exoplayer to pull and decode a RTSP stream, it can display the video now, but I want apply a deep learning model to detect something appeared on each frame.

From the answer of andrewlewis, I think using a ImageReader is the easiest solution, but I am new to android development and couldn't find any examples trying my best. I hope someone can help me, and other solution to this problem can also be accepted.

@droid-girl
Copy link
Contributor

Hi @gscholer ,
This issue seems to be similar to #1422. Are you also looking at using TFLite?
Another suggestion is to check out MediaPipe integration with Transformer in the demo app to get an idea how to integrate with MediaPipe library.
If you want to use MediaPipe with ExoPlayer, you can:

  • create your custom effect using MediaPipe (check out transformer demo for more info)
  • use .setVideoEffects in ExoPlayer to set your custom MediaPipe effect

For TFLite, I will add more details on integration shortly to #1422.

@gscholer
Copy link
Author

Hi @droid-girl, Thanks for your reply. I am looking forward your TFLite integration.

@droid-girl
Copy link
Contributor

More info is now added to #1422. Closing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants