Giter Club home page Giter Club logo

Comments (4)

ujizin avatar ujizin commented on May 25, 2024 2

Hey @leonardorpaixao, I've seen this Issue that looks to be very similar.

I also tested some apps from camera-samples & Camerax-demo and causes the same crash.

So knowing that the crash is caused by cameraX and not by Camposer, I'll release a new version with minSdk 21 ASAP.

ps: I'm looking forward to using the cameraX new version 1.3.0 as soon as releasing stable, which updates the internal video capture features... it may be the possible fix for it.

Happy new year! πŸŽ†

from camposer.

leonardorpaixao avatar leonardorpaixao commented on May 25, 2024 2

What a good news! Thank you so much!

Happy new year @ujizin !! ✨

from camposer.

ujizin avatar ujizin commented on May 25, 2024 1

I got an error when I start recording video with SDK 21/22

FATAL EXCEPTION: CameraX-video encoding thread
  Process: com.ujizin.sample, PID: 13274
  java.lang.IllegalStateException
	at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
	at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:1033)
	at androidx.camera.core.VideoCapture.videoEncode(VideoCapture.java:881)
	at androidx.camera.core.VideoCapture.lambda$startRecording$4$androidx-camera-core-VideoCapture(VideoCapture.java:511)
	at androidx.camera.core.VideoCapture$$ExternalSyntheticLambda4.run(D8$$SyntheticClass)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:135)
	at android.os.HandlerThread.run(HandlerThread.java:61)

Devices:

  • Pixel 6 Pro API 22 (AVD)
  • Pixel 6 API 21 (AVD)

I haven't seen this on the Google issue tracker πŸ€”, I'm working on figuring out that.

The other features look good to me. If you want to reproduce the bug, just start recording a video in the sample project.

from camposer.

ujizin avatar ujizin commented on May 25, 2024

Hey @leonardorpaixao, first, thank you for the contribution πŸ˜„

We've talked about changing the minSdk to 21 in this discussion.

Please feel free to change for minSdk 21 if you want in this PR, however, I won't launch a new release for now because I want to enforce that everything is ok with these news SDKs.

For now, if you want to use the library with sdk 22 I'd recommend to override the sdk in your android manifest.

<uses-sdk tools:overrideLibrary="com.ujizin.camposer"/>

from camposer.

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.