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

[camera] Add byte streaming capability for the camera #55955

Open
ollyde opened this issue Apr 29, 2020 · 8 comments
Open

[camera] Add byte streaming capability for the camera #55955

ollyde opened this issue Apr 29, 2020 · 8 comments
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter p: camera The camera plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team

Comments

@ollyde
Copy link

ollyde commented Apr 29, 2020

startImageStream was added to Flutter camera but this isn't sufficient.

We really need startByteStream which also includes audio, and is much faster.

Many of us are trying to create live streams from our apps and at the moment it's impossible.

startVideoRecording locks the file, soon as for example FlutterFFmpeg tries to read the file for live RTMP streaming it stops the camera.

@iapicca iapicca added p: camera The camera plugin p: first party c: proposal A detailed proposal for a change to Flutter c: new feature Nothing broken; request for a new capability labels Apr 30, 2020
@ben-xD
Copy link

ben-xD commented Jul 18, 2020

Why is startImageStream insufficient? Is it just the audio that is missing? Why would it be faster?

Yes, startImageStream It was actually used at Flutter Live? https://youtu.be/OAEWySye0BQ?t=1463 but doesn't exist in the source code https://github.com/flutter/plugins/blob/master/packages/camera/lib/camera.dart

Perhaps it was just renamed to startCameraStream? It returns a CameraImage,

/// A single complete image buffer from the platform camera.
///
/// This class allows for direct application access to the pixel data of an
/// Image through one or more [Uint8List]. Each buffer is encapsulated in a
/// [Plane] that describes the layout of the pixel data in that plane. The
/// [CameraImage] is not directly usable as a UI resource.
///
/// Although not all image formats are planar on iOS, we treat 1-dimensional
/// images as single planar images.

source

@safdar99

This comment was marked as off-topic.

@ollyde
Copy link
Author

ollyde commented Dec 12, 2020

@safdar99 we had to create our own live stream libraries and camera library for devices.

@ConfidenceYobo
Copy link

@safdar99 we had to create our own live stream libraries and camera library for devices.

do you have a sample?

@stuartmorgan stuartmorgan added the P3 Issues that are less important to the Flutter project label May 6, 2021
@bwijayap
Copy link

@safdar99 we had to create our own live stream libraries and camera library for devices.

do you have a sample?

@ollyde
Copy link
Author

ollyde commented May 18, 2021

@safdar99 we had to create our own live stream libraries and camera library for devices.

do you have a sample?

I can’t give that code out unfortunately. But there’s some great packages you can base from like flutter rmtp

@mike-mathieu
Copy link

Any updates on this? Or if anyone has any leads on how to implement I'd be happy to try and help out here.

@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
@Hixie Hixie removed the plugin label Jul 6, 2023
@flutter-triage-bot flutter-triage-bot bot added team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team labels Jul 8, 2023
@talksik
Copy link

talksik commented Jul 19, 2023

gstreamer? but then how would gstreamer talk to skia to draw textures?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter p: camera The camera plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team
Projects
None yet
Development

No branches or pull requests