saki4510t / UVCCamera

library and sample to access to UVC web camera on non-rooted Android device
2.96k stars 1.19k forks source link

is it possible to push two streams(video) simultainously with different resolution(640x480 and 1920x1080)? #657

Open 1goresha opened 2 years ago

1goresha commented 2 years ago

i want to push simultainously one stream for udp transmitting and another for recording, and it would be great if it will be without preview.

1goresha commented 2 years ago

i want to push simultainously one stream for udp transmitting and another for recording, and it would be great if it will be without preview. anybody has ideas how to do it, please?

9ghtX commented 2 years ago

I've done this with two cameras. It's possible, just create a new instance of camera and view an image on different ImageView in layout

1goresha commented 2 years ago

I've done this with two cameras. It's possible, just create a new instance of camera and view an image on different ImageView in layout

thank you for reply, but i need to get bytes of encoded data(H264) from there, how can i do this?

9ghtX commented 2 years ago

I've done this with two cameras. It's possible, just create a new instance of camera and view an image on different ImageView in layout

thank you for reply, but i need to get bytes of encoded data(H264) from there, how can i do this?

Unfortunately, I don't know. I opened my own Issue post about this(https://github.com/saki4510t/UVCCamera/issues/658).