android-mediarecorder

Android capturing slow motion video

半腔热情 提交于 2019-12-18 03:30:12
问题 How can i capture slow motion video in my app? I tried using mMediaRecorder.setVideoFrameRate(100); but app crashes if i set the value 20 or more with IllegalStateException . I have researched a lot.Normal video is between 24 and 30 fps.To see slow motion video we need to capture 100-120 fps but device does not allow that.But I see the default camera in my device has an option of Slow motion.Also few apps in play store allow to create slow motion videos.I also tried setting higher

Media Recorder To record calls is sometime unable to Record other side voice

走远了吗. 提交于 2019-12-18 03:21:05
问题 In my application there is a feature to record voice calls and it works perfectly well. But when tested on (Samsung s7, s8 ) it doesn’t work well. The application is able to record only callers voice not the voice from the other end. Below is my code to check please suggest a solution MediaRecd = new MediaRecorder(); MediaRecd.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL ); MediaRecd.setAudioChannels(ConstantVariables.audioChannels);//monoRecording MediaRecd.setAudioEncodingBitRate(64)

Get/modify frames while recording mp4 with MediaRecorder

喜你入骨 提交于 2019-12-17 18:54:52
问题 I am recording mp4 with the following code. But while I am recording, 1- is it possible get frames of video in real time in array Data or another format? 2- is it possible to modify frames? For example, to invert the colors and make it look negative. public class MainActivity extends Activity implements OnClickListener, SurfaceHolder.Callback { MediaRecorder recorder; SurfaceHolder holder; boolean recording = false; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate

How to add text on video recording?

落花浮王杯 提交于 2019-12-17 18:49:17
问题 I search lot but not find any solution. My question is how to add text to video while recording so that we can get same text when we see video. I want something like this when i see capture video. Currently i am getting time and video sepratly. So issue is how to combine it.Any kind of help will be appreciated.Thanks in advance.. 回答1: This is a pretty difficult problem to solve generally using android assuming that you are attempting to add the text to the actual video file, and not simply

Android Call Recording Incoming voice not getting recorded

末鹿安然 提交于 2019-12-17 17:34:23
问题 I'm working auto call recorder app, I'm able to record voice call on below android 6 using MediaRecorder.AudioSource.VOICE_CALL , From android 6 not able to record voice call using VOICE_CALL . I managed to record using MediaRecorder.AudioSource.MIC but here incoming voice not getting recorded and I want to record voice call in normal mode not in speaker on mode. Please help me on this. (I had tried on Xiomi Redmi 4a(android 6),not working). myRecorder.setAudioSource(MediaRecorder.AudioSource

how to get frames of video file in android

纵然是瞬间 提交于 2019-12-17 17:14:59
问题 I want to get the frames of a video file to show in a gallery view in android. and how to edit frames, for example Select frame sections use selected sections delete selected sections copy selected sections cut selected sections paste into the head paste into the tail 回答1: You can use the MediaMetadataRetriever class. It has getFrameAt() method wherein you can specify the time of the frame that you want to get. For details refer to MediaMetadataRetriever 回答2: Actually, MediaMetadataRetriever

how to get frames of video file in android

被刻印的时光 ゝ 提交于 2019-12-17 17:13:19
问题 I want to get the frames of a video file to show in a gallery view in android. and how to edit frames, for example Select frame sections use selected sections delete selected sections copy selected sections cut selected sections paste into the head paste into the tail 回答1: You can use the MediaMetadataRetriever class. It has getFrameAt() method wherein you can specify the time of the frame that you want to get. For details refer to MediaMetadataRetriever 回答2: Actually, MediaMetadataRetriever

MediaRecorder.stop() stop failed: -1007

二次信任 提交于 2019-12-17 15:47:32
问题 I am recording video with MediaRecorder. My code works fine on 2.3.3 but fails on 4.0.3. The issue is following: the code mediaRecorder.stop() throws the RuntimeExeption java.lang.RuntimeException: stop failed. at android.media.MediaRecorder.stop(Native Method) with LogCat message 04-05 15:10:51.815: E/MediaRecorder(15709): stop failed: -1007 UPDATE I've found, that MediaPlayer reports an error (via MediaPlayer.OnErrorListener) almost immediately after the start. Error code is 100 (media

Media Recorder with Google Vision API

那年仲夏 提交于 2019-12-17 10:48:13
问题 I am using the FaceTracker sample from the Android vision API. However, I am experiencing difficulty in recording videos while the overlays are drawn on them. One way is to store bitmaps as images and process them using FFmpeg or Xuggler to merge them as videos, but I am wondering if there is a better solution to this problem if we can record video at runtime as the preview is projected. Update 1: I updated the following class with media recorder, but the recording is still not working. It is

Android MediaRecorder - “start failed: -19”

我的未来我决定 提交于 2019-12-17 06:16:08
问题 I'm trying to create a video recorder on Android, and I've prepared my code which is supposed to be working - but I constantly get an error message start failed: -19 . Here's my code: public boolean startRecording() { try { camera.unlock(); mediaRecorder = new MediaRecorder(); mediaRecorder.setOnErrorListener(new MediaRecorder.OnErrorListener() { @Override public void onError(MediaRecorder mr, int what, int extra) { Log.i(TAG, "Error"); } }); mediaRecorder.setCamera(camera); mediaRecorder