mediarecorder

Android - What is mediarecorder's maximum maxfilesize?

做~自己de王妃 提交于 2019-12-12 18:44:10
问题 Android - What is the maximum file size that setMaxFileSize can be set to in respect to Androids mediarecorder? I know it's somewhere between 4147483650 and 5147483650. Why is there a limit in the first place? I'm recording on to a SDCARD, detecting the size of the cards space before we run. "ERROR/AuthorDriver(31): setParameter(max-filesize = 7270309850) failed with result -5" "ERROR/AuthorDriver(31): Ln 903 handleSetParameters("max-filesize=7270309850") error" "ERROR/AndroidRuntime(409):

Android MediaRecorder is not generating a streamable AAC-LC audio using AudioEncoder.AAC

十年热恋 提交于 2019-12-12 14:08:25
问题 I am using a Nexus 7 with Android version 4.2+. So according to the Android Supported Media Formats all listed encoders and container formats are supported. Now I want to record an audio using the AAC-LC encoder and the MPEG-4 container format (file type). In the generated file, when I open it in an HEX-Editor, I see that the file is an ISO Base Media file having the isom File Type Box (Section 4.3) with the following compatible brands: isom and 3gp4 . The remaining of the file is mostly an

How to use MediaRecorder to capture video on Android?

ぐ巨炮叔叔 提交于 2019-12-12 12:26:31
问题 I would like to create a short video clip using the MediaRecorder , but I don't know how to use it. In my manifest file I added these permissions before the application-end-tag: <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.RECORD_VIDEO" /> </application> And I create a MediaRecorder with this code when the user press a button: private void startRecording() { mRecorder = new MediaRecorder(); mRecorder

Trim or cut audio recorded with mediarecorder JS

有些话、适合烂在心里 提交于 2019-12-12 08:14:43
问题 Requested Knowledge How to shorten (from the front) an array of audio blobs and still have playable audio. Goal I am ultimately trying to record a continuous 45 second loop of audio using the JS MediaRecorder API. The user will be able to push a button and the last 45s of audio will be saved. I can record, playback, and download a single recording just fine. Issue When I have an array called chunks of say 1000 blobs from the MediaRecorder and use chunks.slice(500, 1000) the resulting blob

Supported video sizes MediaRecorder API android

限于喜欢 提交于 2019-12-12 03:24:25
问题 I'm trying to record the contents of the screen using mediarecorder and mediaprojection api. When I'm trying to change the video to HD on my device the recording fails but it works fine with 640 x 480 resolution. So my question is how could I get the supported video resolutions on a particular device? Cheers Jon 回答1: If your only interest is in API 21+, you can use the getVideoCapabilities() method. The CamcorderProfile class has been around since API 8, but isn't quite as useful. If all else

Creating a single instance through a singleton of a main activity to record the device screen

只愿长相守 提交于 2019-12-12 01:26:31
问题 I'm facing a problem where I can not find a solution right now. I want to record the device screen. When I click on the app icon, it should not open any apps, just a Notification with a single "Start / Rec" button to start recording. When clicking on this button, the device screen recording should start, the Notificatio should still remain there. In place of the "Start / Rec" button, a "Stop" button and the "message / title" of the notification the seconds that have passed since the moment in

IllegalStateException with MediaRecorder.start() : null

别说谁变了你拦得住时间么 提交于 2019-12-11 21:50:36
问题 I'm trying to create a simple video recorder and here's my code in order that I'm calling it: protected boolean prepareForVideoRecording() { try { mCamera.unlock(); mMediaRecorder = new MediaRecorder(); mMediaRecorder.setCamera(mCamera); mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); mMediaRecorder.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH)); mMediaRecorder.setOutputFile

Decibel Meter using Media Recorder

喜夏-厌秋 提交于 2019-12-11 17:57:11
问题 I was referring to a code that I found previously and tried it myself. It works perfectly however the decibel measured from the code is extremely high even in a quiet room. The value ranged from 0 to 30000. I was expecting the decibel be around 30 ~ 40 when I am in a quiet room. Can someone please tell me what's wrong with the code? Maybe the algorithm in the code is wrong because "soundDB()" is not used. The decibel shown is the app is from "getAmplitudeEMA()" instead. import android.app

Android MediaRecorder Exception when stopped

倖福魔咒の 提交于 2019-12-11 14:55:25
问题 I am creating an app that records phone calls, both incoming and outgoing. The recording should stop when call ends.But I get an Illegal State Exception .Th exception is at mediarecorder.stop() . "Stop called between invalid state 4" .I have no idea what that means.This is the first time I am using MediaRecorder. I have checked similar questions..but their answers did not help me.Your help would be appreciated.Thanks in advance..This question Error on MediaRecorder Stop : stop called in

Can not use MediaRecorder on Android Emulator. Is the storage location wrong?

扶醉桌前 提交于 2019-12-11 13:54:52
问题 I'm trying to record sound using Android Emulator. I know that this question is popular over the internet, I checked many posts, it seems that only one person succeded: Can the Android emulator record and play back audio using pc hardware?. (it think he used File fTmFile; insteadof String fTmpFile; which i also tried). And following Philip's advice and the official site tutorial http://developer.android.com/guide/topics/media/audio-capture.html and also other resources, I'm still not able to