Questions tagged [android-mediarecorder]

MediaRecorder is the Android class used for recording Audio and Video available since API Level 1.

Useful resources:

688 questions
41
votes
1 answer

Unable to do low-level decoding of video on Android 4.2 without using media extractor

I wanted to decode video frames without using an extractor. So I just tried a small sample, where I use media extractor but I don't do extractor.readsample() to copy the bitstream data into the input buffer instead I use FFmpeg parser, inside JNI,…
38
votes
2 answers

Transfer data through audio jack cable over two Android devices

I'm researching on transferring text data over male-to-male audio jack cable. I'm testing this on HTC one V and on PC, which supports male-to-male audio jack for data transfer as mentioned in this Wikipedia article. It says: The first, which places…
35
votes
1 answer

Media Recorder with Google Vision API

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…
34
votes
1 answer

Call recording - make it work on Nexus 5X (rooting or custom ROM possible)

I'm attempting to use AudioRecord with AudioSource.VOICE_DOWNLINK on Nexus 5X, Android 7.1 (my own build from AOSP). I'm already past the permissions stage - moved my APK to privileged apps, made an adjustment to AudioRecord in Android source to…
29
votes
6 answers

MediaRecorder.stop() stop failed: -1007

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…
Alex
  • 1,279
  • 3
  • 15
  • 33
25
votes
1 answer

Anyone Have MediaRecorder Working with ParcelFileDescriptor and createPipe()?

I am trying to work out an example of recording audio, with the data storage being handled by the app, not MediaRecorder. Use cases include storing the recording on internal storage or encrypting the recording. In principle, this should work using a…
CommonsWare
  • 910,778
  • 176
  • 2,215
  • 2,253
23
votes
6 answers

Android Call Recording Incoming voice not getting recorded

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…
22
votes
1 answer

Not able to record call using MediaRecorder

I've rooted Nexus phone with lollipop. I'm trying to record incoming & outgoing calls. My application extends DeviceAdminReceiver with policy of I'm able to create the file with size > 0bytes. But when I play it, it is blank. Please…
adam black
  • 597
  • 4
  • 11
16
votes
2 answers

MediaRecorder start failed: -38

i searched to check if this question is no dup , i see some has no answer and others did not help. this is my code : private void startRecording() { mRecorder = new MediaRecorder(); …
Robocide
  • 5,430
  • 4
  • 32
  • 37
16
votes
1 answer

Android Mediarecorder recorded video duration different from expected duration

I recorded a video using android Mediarecorder. (Main Problem: I need to know the exact startTime[System time] and endTime[System time] of the video and the [endTime - startTime] must match the duration of the actual…
xiaowoo
  • 2,128
  • 6
  • 31
  • 44
16
votes
2 answers

How to add text on video recording?

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…
15
votes
2 answers

How to record video of particular width and height on samsung device android?

Hello I am making an android application in which I am using custom camera for recording camera.I am having problem on samsung device.I can not set the profile of Media recorder to CamcorderProfile.get(cameraid, CamcorderProfile.QUALITY_HIGH) also…
Nitin
  • 1,948
  • 3
  • 22
  • 53
14
votes
1 answer

Stream android screen

I am trying to fallow Truiton ScreenCapture example, in order to record the device screen using MediaProjection When saving the recording localy it works mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); …
Ilya Gazman
  • 27,805
  • 19
  • 119
  • 190
14
votes
1 answer

Android Media Recorder not recording long videos on Google Glass

I have written an opensource camera for Google glass but some of the people who have used it have reported that the video recorded doesn't get saved properly for lengthy videos. I couldn't find info regarding any such limitation in the Android…
14
votes
2 answers

how to record audio file with better quality in android?

I am creating one application which play recorded file on Android to iphone and vice-versa. now I am using , audioRecorder = new MediaRecorder(); audioRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); …
PrvN
  • 2,225
  • 6
  • 27
  • 30
1
2 3
45 46