-
Notifications
You must be signed in to change notification settings - Fork 28
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
Use a video format ? #4
Comments
Good idea, feel free to do it and send a PR :-) |
I am not a java/ObjC developer 👎 but here is the basics take raw cam stream and convert it to video stream using libav and keep it in memory lib av allows you to create frames and packets you can just make a buffer of say 10mb and keep on pushing frames to that buffer so that when the video is decoded you give the metadata followed by the fresh streamed data. :-) // basically thats what happens when u do Update on a second though you can probably then do something like streaming a scaled down version and when you take a photo use the devices full camera [ the java/ObjC code, would actually allow lower level access ] .. I will try to help my level best if you want to initiate that ( again i am very poor at java ) |
Well, that wouldn't probably work, as the However, I don't have a mac so I can't test it; but I'm pretty curious if you have profiled your actual approach to see where the time is being consumed. |
Instead of doing this why not convert the camera to a video ? and then stream it to a video element on the fly ? ( Thats what probably webrtc does and probably that would be much faster )
The text was updated successfully, but these errors were encountered: