mediarecorder

Samsung Galaxy SIII mediaRecorder() issues. (Corrupt Video)

核能气质少年 提交于 2019-12-06 21:56:28
I have a problem with the Samsung Galaxy SIII. In the app we are creating, we use a mediaRecorder to record a video of the user using the front camera. I have looked thoroughly in the documentation and all over forums and I have seen a few similar posts for the SII or crashes in general, but those fixes unfortunately did not work for us. The process that the camera records is as follows --> There is a function (code will be provided) that checks each devices compatible camera resolutions, then we check to see if they meet our specifications (right now it is 480p or less) If there is one that

Maximum number of simultaneous MediaRecorder instances on android?

六月ゝ 毕业季﹏ 提交于 2019-12-06 15:34:10
问题 I created android app that records device screen (using MediaProjection) API and video from camera at the same time. I use MediaRecorder in both cases. I need a way to find out whether device is actually capable of recording two video streams simultaneously. I assume there is some limit on number of streams that can be encoded simultaneously on given devices but I cannot find any API on android platform to query for that information. Things I discovered so far: Documentation for MediaRecorder

Android M - MediaRecorder start failed

随声附和 提交于 2019-12-06 11:26:24
Samsung galaxy S6 edge 6.0.1 works fine, so maybe Android M is not the factor here. First off, the Android 6.0+ permissions are given, so that's not the case . Here it is : if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){ //нужно проверять пермишны if (ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED || ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED || ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.READ

How to pause/resume the video recording

久未见 提交于 2019-12-06 07:52:08
I want to implement pause/resume functionality while recording video. MediaRecorder is not having any method for pause/resume. Native camera application is having pause/resume feature. Is it possible to implement it? Please guide me. Any help or guidance will be well appreciated. Finally i find the answer :) i research about ffmpeg it seems more deeply and some more days digging around it but can't get proper resource for ffmepg and i try to use mp4parser lib and successfully completed my requirement. Code For Merging Multiple Video public class MergeVide extends AsyncTask<String, Integer,

MediaRecorder throw “java.lang.RuntimeException: start failed: -2147483648” when trying to record audio on LG G Watch

让人想犯罪 __ 提交于 2019-12-06 06:06:46
I am trying to record audio in my app on a LG G Watch. The following code throws RuntimeException with message "start failed: -2147483648" at the statement "recorder.start();". Wondering what I'm doing wrong here. I have tried a lot of different set of parameters, for example for AudioSource: recorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); //-and- recorder.setAudioSource(MediaRecorder.AudioSource.MIC); Also for OutputFormat I have tried recorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT); //-and- recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); //-and- recorder

Audio file captured by MediaRecorder is broken after it is sent to server using Retrofit 2

百般思念 提交于 2019-12-06 03:32:56
问题 My app records an audio clip and send the clip to the server using Retrofit2 after the recording is completed.The file is received in server,but the file is broken,what I mean by broken is that it cannot be played. I use the following URL(example url: mydomain.co/audio/myaudio.mp4 ) to play the audio clip,which I tried with another audio file using postman ,the audio file can be played successfully.Besides,even downloading the audio clip captured by android via Filezilla also has the same

Android MediaRecorder API keeps cropping the video bitrate

回眸只為那壹抹淺笑 提交于 2019-12-06 00:55:51
问题 I'm working with the MediaRecorder API for a while, I thought all problems are behind me but I guess I was wrong. I'm using the MediaRecorder API for recording video to a file. When I use the setProfile with high quality I get good quality but when I try to set the parameters manually (as in the code below) the quality is bad (since for some reason the bitrate is cropped). I want to get 720p with 1fps. I keep getting the following warning: WARN/AuthorDriver(268): Video encoding bit rate is

MediaRecorder - How to play chunk/blob of video while recording?

半腔热情 提交于 2019-12-05 06:19:36
I currently have a MediaStream which is being recorded using MediaRecorder . At the end of the recording after recorder.stop() , it produce a Blob and I am able to play that video back. My goal is to play not the entire video at the end, but play a chunk while recording . For the moment, a chunk is not playable while recording is not ended. How can i do that using javascript? The final objective is to send a chunk by websocket that is playable even if recording is in action. I am not able to bring new solutions. Can anyone help or at least explain me the things ? What I've tried was navigator

Accessing the output video while recording

半城伤御伤魂 提交于 2019-12-05 05:28:09
问题 In short, I'm looking for a way to get the byte stream from the camera while recording video. The aim is to continuously record while saving certain portions of the current recording without stopping the actual recording process to access the output file. Is this even possible, or will I need to actually stop the recording and save it for it be playable? I've seen projects and open source library's that allow live streaming from the camera to a server via a local socket and the

how to mute the “beep” by MediaRecorder.start()?

对着背影说爱祢 提交于 2019-12-05 03:38:06
I have tried all methods mentioned in the following links How to shut off the sound MediaRecorder plays when the state changes Need to shut off the sound MediaRecorder plays when the state changes but none of them work. Anyone knows how to achieve that ? Though I am too late to answer it. It may still help peoples who all are googling the same problem. Before starting media recorder add following two lines of code .. Its gonna mute phones sound.. //mute phone AudioManager audioManager = (AudioManager) context.getSystemService(AUDIO_SERVICE); audioManager.setRingerMode(AudioManager.RINGER_MODE