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

Add support for MJPG format #7312

Open
radheyjat opened this issue Apr 29, 2020 · 1 comment
Open

Add support for MJPG format #7312

radheyjat opened this issue Apr 29, 2020 · 1 comment

Comments

@radheyjat
Copy link

radheyjat commented Apr 29, 2020

Add support for .mjpg streams

original issue request This is usecase come from i am trying to show Camera LiveView and some camera url is extention with .mjpg or some camera url with rtsp. So need to Give support both cameras rtsp issue already opend but i need to support .mjpg url also
@christosts christosts self-assigned this Apr 30, 2020
@christosts christosts changed the title Add MJPG Support Add support for MJPG format Apr 30, 2020
@dburckh
Copy link

dburckh commented Jan 18, 2022

I need something similar for AVI support. A common format for older cameras is MJPEG/PCM. My AviExtractor can already packetize the JPEGs. I'm thinking the Renderer this isn't too bad on the Surface. (Pun intended) Just use BitmapFactory to decode the JPEG to Bitmap, create a Canvas from the Surface and draw it.

So, where this gets messy is integrating with Exo. I'm thinking it would be a sibling to MediaCodecVideoRenderer. Maybe BitmapFactoryVideoRenderer? So where I would need help is how to control the Renderer swapping and how the plumbing from the TrackOutput to the Renderer work. Any help would be appreciated!

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

4 participants