android / camera-samples

Multiple samples showing the best practices in camera APIs on Android.
Apache License 2.0
5.01k stars 2.34k forks source link

CameraX VideoCapture Api error code 8 #483

Open mihirmodiofficial opened 2 years ago

mihirmodiofficial commented 2 years ago

Hello there, Everytime i get error code 8 from VideoRecordEvent Please help me out whats the issue

temcguir commented 2 years ago

This error code usually occurs when a recording was stopped quickly after it was started. In that case, there aren't enough video frames produced to have a recording that can be played back.

Is it possible that you're stopping the recording quickly after starting, or is it possible that the Recording object returned by PendingRecording.start() is not being stored? This would allow it to be garbage collected quickly and that could stop the recording.

It would also be helpful if you can post more information about the device you are using and the version of CameraX.