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 capture video from multiple cameras at the same time? #131

Closed
aytunch opened this issue May 7, 2022 · 4 comments · Fixed by #303
Closed

How to capture video from multiple cameras at the same time? #131

aytunch opened this issue May 7, 2022 · 4 comments · Fixed by #303
Labels
android Android related issue enhancement New feature or request iOS iOS related issue

Comments

@aytunch
Copy link

aytunch commented May 7, 2022

Proposal

Recently, I see many social apps which can capture and save video from both cameras at the same time.
I can show my surroundings using the back camera and in a small PIP layout, I can show myself.

What needs to be done to accomplish this without losing fps and resolution?

  • Can we record with both cameras at the same time and use ffmpeg to combine 2 videos?
  • Can we use image streams from both cameras at the same time to overlay them on each other?

Are there any blockers for this functionality in Flutter?

@g-apparence are you going to continue implementing this awesome package btw? Google's camera package lacks a lot of features.

EDIT: here iOS native implementations on Multi Camera Capture (Gautier shared the Android link in the below comment):
https://www.wwdcnotes.com/notes/wwdc19/249/

Screen Shot 2022-05-07 at 12 24 27

@g-apparence
Copy link
Collaborator

Thank you for this really nice idea.
Didn't know some apps do that nowadays.
Did you see that on Android devices ?

I don't think using ffmpeg is the best solution. Processing a live video seems a bit overengineering at first sight.
I think you can simply use multiple texture.
Thing is, I don't think this is doable on all devices. The new multi camera hardware seems to open many doors.
https://developer.android.com/training/camera2/multiple-camera-streams-simultaneously

I'm searching some times to work on this. I hope summer will let me some time.
I would love to investigate more on the cameraX implementation.
(having a baby and a startup ain't letting much times...)

@aytunch
Copy link
Author

aytunch commented May 9, 2022

I am glad that you find this use-case worthy
There are similar issues on the camera package but it seems like Flutter engineers won't be implementing it anytime soon.
flutter/flutter#51928 (comment)
Can't wait for this exciting feature. I think this kind of capabilities will bring Flutter one step ahead.
Also congratulations on the newborn :)

@istornz istornz added enhancement New feature or request android Android related issue iOS iOS related issue labels Jan 10, 2023
@istornz istornz mentioned this issue Apr 3, 2023
12 tasks
@istornz
Copy link
Contributor

istornz commented May 17, 2023

We released beta of multi camera feature with the v2.
You can test it right now 👍

@aytunch
Copy link
Author

aytunch commented May 17, 2023

Great news @istornz Is there an ETA on the Android implementation of this feature?
You people are Awesome :)

@aytunch aytunch closed this as completed May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Android related issue enhancement New feature or request iOS iOS related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants