Comments (5)
@bipinvaylu Technically it is possible but it might require some api level changes might even have to deprecate some current apis. Can you provide some more description about your use case like what kind of formats you use and what is the exact use case that you are trying to implement. Preview frames and video can be very different in terms of size and quality.
from cameraview-ex.
Thanks @pvasa for a quick response, Yeah, Actually I am trying to achieve my use case since last few days. But unable to find any sustainable solution so far. Please find the proper use case details here: https://stackoverflow.com/questions/54091648/camera-2-api-to-preview-record-and-extract-the-preview-frame-to-firebase-face-d
Btw, If you can provide me some help/insight for the same. I can work out that way and if able achieve, I will push it here as well for others.
from cameraview-ex.
@bipinvaylu the way to achieve this would be to provide both mediaRecorder
surface and imageReader
surface to videoRequestBuilder
and camera?.createCaptureSession(..)
. So you will need to update startVideoRecording()
.
You can take a shot at it and let me know if you need any help, meanwhile I am implementing (updating) the CameraView.cameraMode
api to achieve exactly this functionality. With this update you will be able to enable multiple camera modes at the same time. For eg., SINGLE_CAPTURE and CONTINUOUS_FRAME
or VIDEO_CAPTURE and CONTINUOUS_FRAME
or even all 3 (possibly).
from cameraview-ex.
@bipinvaylu Release v3.0.1-beta now supports this feature.
Video capturing and frame processing can be achieved simultaneously by using below methods
- In xml
app:cameraMode="continuous_frame|video_capture"
- Or in code
camera.cameraMode = Modes.CameraMode.CONTINUOUS_FRAME or Modes.CameraMode.VIDEO_CAPTURE
from cameraview-ex.
Hi @pvasa
This feature still is not working, it giving exception(java.lang.ArithmeticException: divide by zero) 'Unable to start video recording'
Using - 3.5.5-alpha"
app:cameraMode="continuous_frame|video_capture"
I also log a issue for the same - #236
from cameraview-ex.
Related Issues (20)
- in android 6.0 not working HOT 2
- Camera.isVideoRecording always returns false HOT 2
- hi? HOT 2
- error: expected enum but got (raw string) single_capture. HOT 2
- Caused by kotlin.UninitializedPropertyAccessException HOT 2
- UnsupportedOperationException No supported camera found for facing 1 HOT 2
- CameraCaptureSession: Session 1: Failed to create capture session; configuration failed HOT 2
- Samsung J7 prime issue in video recording, video recording stops just after starting. HOT 2
- no preview on pixel and samsung moblie HOT 2
- manual focus HOT 2
- Method markState must be called on the main thread HOT 5
- Preview is stretched for every aspect ratio if I use full screen CameraView HOT 2
- Front Faceing HOT 2
- expected enum but got (raw string) single_capture. HOT 2
- in android 6.0 not working HOT 2
- Method markState must be called on the main thread HOT 2
- Camera not working on Android 12 HOT 2
- Error when building APK HOT 2
- Android 11 and 12 I'm facing some issue HOT 2
- Unable to start video recording. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cameraview-ex.