android-video-record

Adding images to video with help of this MediaCodec Api

岁酱吖の 提交于 2020-05-17 08:33:25
问题 I am trying to add waterMark to the video by using this library but i couldn't the get the desired result as shown in the library https://github.com/MasayukiSuda/Mp4Composer-android . can anyone point out or help me how to solve it thanks what i tried mp4Composer = new Mp4Composer(videoItem.getPath(), videoPath) // .rotation(Rotation.ROTATION_270) .size(720, 720) .fillMode(FillMode.PRESERVE_ASPECT_FIT) .filter(new GlWatermarkFilter(BitmapFactory.decodeResource(context.getResources(),R

How to fix video & audio out of sync issue on android Video Recording using Camera api 2?

北城余情 提交于 2020-04-16 05:49:44
问题 I am implementing video recording application using Camera2 api. I've used Google samples for video recording. However, there's an audio, video out of sync issue on some devices, such as Samsung J5, J6. I have changed MediaRecorder.AudioEncoder, MediaRecorder.VideoEncoder, VideoEncodingBitrate , but it could not help me. How to handle audio, video sync issue? 回答1: I've found a solution from this article. It mightn't be the best solution but it works. To solve the out of sync issue,

Video recording and onPreviewFrame callback at the same time

落花浮王杯 提交于 2020-01-10 04:34:10
问题 I'm trying to record video using MediaRecorder and get raw frames (byte arrays) from onPreviewFrame callback method Seems it's not that easy, mb it's not even possible, I don't know... But I found some answers (for similar questions) and people say that you should reconnect camera instance ( Camera.reconnect() ) after calling MediaRecorder.start() and set preview callback again I tried something like this but it doesn't work (recording works but onPreviewFrame is never called) I also tried to

Unable to copy file to destination

假装没事ソ 提交于 2019-12-25 18:58:10
问题 I'm trying to record a video of the emulator. But I'm getting this error. Unable to copy file to destination: C:\Users\Ali The Greatest.android\avd\Nexus_5X_API_29_x86.avd\tmp.webm Are there anyone that had this error before? Or do you know how to change the default destination? 回答1: If you are using an AVD, make sure "Use host GPU" is disabled . To take a video recording of your app: Start your app as described in Run your App in Debug Mode. Click Android to open the Android DDMS tool window

Video recording and onPreviewFrame callback at the same time

自古美人都是妖i 提交于 2019-11-29 12:00:06
I'm trying to record video using MediaRecorder and get raw frames (byte arrays) from onPreviewFrame callback method Seems it's not that easy, mb it's not even possible, I don't know... But I found some answers (for similar questions) and people say that you should reconnect camera instance ( Camera.reconnect() ) after calling MediaRecorder.start() and set preview callback again I tried something like this but it doesn't work (recording works but onPreviewFrame is never called) I also tried to call Camera's stopPreview and startPreview methods after MediaRecorder.start() but seems we should not