CrazyOrr / FFmpegRecorder

An Android video recorder using JavaCV and FFmpeg.
201 stars 48 forks source link

Lib so not installed to apk #20

Closed kazixma closed 7 years ago

kazixma commented 7 years ago

The first of all , I try to install your project to my device then I can run it. When I try to install javacv by gradle dependencies , I can not use because UnsatisfiedLinkError exception. I try to monitor by Naive Lib Monitor . Lib so have inside in my apk but it didn't install to my apk. Thank

CrazyOrr commented 7 years ago

You can try this.

kazixma commented 7 years ago

@CrazyOrr ok thank. When I use your project to record video , it's low quality of video , video is not smooth same of preview. Ps. I choose preview 640480 and result video 480480. Thank

CrazyOrr commented 7 years ago

For video quality: You can try to adjust this option of the FFmpegFrameRecorder: mFrameRecorder.setVideoOption("crf", "28"); See the doc for explaination.

For video size: The size you specified is only "preferred" size, it's up to the device to match for it. You can debug this part to figure out what happened to the size:

Camera.Parameters parameters = mCamera.getParameters();
List<Camera.Size> previewSizes = parameters.getSupportedPreviewSizes();
Camera.Size previewSize = CameraHelper.getOptimalSize(previewSizes,
        PREFERRED_PREVIEW_WIDTH, PREFERRED_PREVIEW_HEIGHT);
kazixma commented 7 years ago

OK Thank and How to add autofocus to textureview preview video recorder ? Sorry for I ask too much TT

CrazyOrr commented 7 years ago

You can use Android Camera API's autoFocus feature. P.S. Usually only back-facing camera supports auto-focus feature.