Code Monkey home page Code Monkey logo

Comments (5)

pvasa avatar pvasa commented on July 22, 2024

@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.

bipinvaylu avatar bipinvaylu commented on July 22, 2024

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.

pvasa avatar pvasa commented on July 22, 2024

@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.

pvasa avatar pvasa commented on July 22, 2024

@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.

krghv85 avatar krghv85 commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.