Android :: Tying To Develop An App For Audio Video Recording On Phone
Dec 21, 2009
I am trying to develop an app which streams live audio/video. I have the mediarecorder to record both audio, video frames , and it does so. But the thing is it records a chunk of audio and then records a chunk of video frames and then records a chunk of audio frames to the file. How do I determine where my audio frames start and where the video frames start?. Also is there any way to figure out the Video frame length ?. Iam really stuck at this point and any help will be greatly appreciated. This is how I initialize the mediarecorder in my app, Code...
View 2 Replies
Jul 19, 2010
I need to record audio and video files in 3gp/mp4 format at the same file and same time.
When i run my application file is created with videofile.3gp but video does not record in sd card on the emulator.please let me clear one thing does video records on the emulator? if i run this code on android supported device do these error clear.
Please help me. I am new to this topic.please find the code and errors below.
package com.video;
* @copy Rights
* audio.java
* sample code for Eminosoft Developerworks Article
* Android development Team
* www.eminosoft.cm
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import android.app.Activity;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.media.MediaPlayer;
import android.media.MediaRecorder;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
import android.provider.Settings;
import android.util.Log;
import android.view.View;
import android.widget.Button;
public class video extends Activity {
public MediaRecorder mrec = null;
private Button startRecording = null;
private Button stopRecording = null;
private static final String TAG = "SoundRecordingDemo";
File audiofile;
File video;
private MediaPlayer mMediaPlayer;}
View 2 Replies
View Related
Sep 20, 2010
I have no problems with the video recording on my Evo it looks amazing but I go to a ton of concerts and such and I love recording them with my Evo but it just sounds Awful, I was wondering if there was any setting to make or change to make the aduio recording sound much better?
View 5 Replies
View Related
Oct 1, 2013
i've installed super jelly bean its awsome but video recording volume is very very low.
View 2 Replies
View Related
Sep 3, 2010
The audio/video works perfectly if I watch the recording on my phone, but when I email the video to my gmail account and save it to my computer, it opens in Media Player and there's no sound. Does anyone know how to fix this?
View 1 Replies
View Related
Apr 13, 2010
From my understanding the Desire was originally supposed to have HD video recording, but this was ditched. Is it possible that a future firmware upgrade could allow HD recording, or the phone physically incapable of recording in HD?
View 7 Replies
View Related
Aug 14, 2010
My phone constantly restarts after trying out the video recording. I've tried removing the battery and rebooting it again but it still keeps on restarting. Can someone advise me? Btw..my phone is not rooted.
View 2 Replies
View Related
Jul 23, 2010
Does the Droid X have autofocus while recording video? If not, is this a software thing or is it hardware? Kinda sucks not being able to autofocus while recording.
View 2 Replies
View Related
Aug 24, 2010
I have Skyraider 2.5.2, and my whenever I try to record video, my phone reboots. Any suggestions?
EDIT: I was told I need to update my radio. So for 2.15, I need to do unprovoked Forever. How do you do any of the other 2.xx radio updates. I remember something about unrooting your phone or something, but I can't find it anymore.
View 4 Replies
View Related
Apr 16, 2009
One known limitation of SDK 1.1 was that audio can be recorded only to a File and not to a network stream. Is this still an issue with 1.5 SDK?
View 4 Replies
View Related
Jul 18, 2010
I have a Samsung Moment with Android 2.1 on it and lately I cannot stream music or video in any app that I try. The YouTube app says "Sorry, this video cannot be played." for every single video, and if I try to use something like DroidLive (for shoutcast and such) it has a connection error every time. Grooveshark has an "Unknown MediaPlayer error." I tried a few other random apps off of the market to try to rule things out and none of them would play. Music that is stored on my SD card plays just fine.
It doesn't only not work sometimes, it doesn't work 100% of the time now. Happens when I have 3G and even if I'm connected to Wifi. I did a factory reset last night thinking that maybe an app had messed with a setting somewhere and it still doesn't work. I have no clue what else I could possibly try.
EDIT: As requested by the stickied thread:
1.) Model Number - SPH-M900
2.) Firmware Version - 2.1-update1
3.) Baseband Version - S:M900.8.0S.DD03
4.) Kernel Version - 2.6.29
5.) Build Number - ECLAIRDD03
And the hardware version is M900.8.0
View 2 Replies
View Related
Feb 24, 2009
I'd like to create an audio recording in Android. (Actually, I just want access to the mic without recording it, but it seems that's not supported so I'll have to create a recording and tail the file). I'm having a very hard time getting started. Mostly I'm just hoping that someone from Google reads this and will update the documentation because the example won't compile - it looks like it's from some previous version of the SDK because there's an error in every other line. I made my best guess as to what the usage should be, but I keep getting a number of different exceptions. One question I had is whether I can just specify an arbitrary path to the MediaRecorder to start recording or whether I have to create an entry in the content database. The JavaDoc for MediaRecorder.setOutputFile isn't clear on what it's expecting.
View 19 Replies
View Related
Oct 16, 2009
I have a Java application where in I am trying to read Audio samples from the mic into a buffer and then write the samples back to speaker from a buffer for playing. I have used AudioRecord and AudioTrack interfaces. Below are my configurations for the Record and Track object creation. AudioTrack(0, 8000, 2, 2, playBufSize, 1); AudioRecord(1, 8000, 2, 2, recBufSize); Using AudioRecord interface I am able to read the samples from mic continiously (8000 sampling rate and 640 samples per read). In the similar way I am also able to write some pcm samples to the speaker from a buffer and play it continuously using the AudioTrack interface (without record). But when I try to do both record and play simultaneously I am able to only record audio from mic but I am not able to play any samples to speaker. I am getting this error " ------- attemp playback while recording, cheat it! ----- " in the log cat.
I have given the following permissions "android.permission.RECORD_AUDIO" and "android.permission.MODIFY_AUDIO_SETTINGS" in the Manifest file. I didn't find any special permission to play the audio. Is there anything else that I need to enable?
View 3 Replies
View Related
Apr 9, 2009
I am developing a recorder application It works fine with Microphone. I want to record from Bluetooth headset. I set it like
my_Aud_Mgr.setMicrophoneMute(true);
//AudioManager my_Aud_Mgr;
my_Aud_Mgr.setBluetoothScoOn(true);
But it cant record from Bluetooth device. How to record from Bluetooth device.
View 2 Replies
View Related
Sep 7, 2009
I will describe briefly my trouble with audio recording.
So, I am doing audio recording using MediaRecorder, but unfortunately when I playback the recorded audio, I have media with a very low volume. I don't here anything (almost anything).
Is there any possibility to setup recording volume?
View 4 Replies
View Related
Nov 9, 2009
Im trying to record audio directly from the system. Using the standard API, you can only record from the MIC or phonecalls, ala: MediaRecorder.Some ways I've tried is to read from /dev/audio and /dev/eac from my app, but I think the sandbox of the app is preventing this.Im thinking about using the NDK, but Im not sure if that would overcome the sandbox aspect ? Ideally, there is some solution outthere to access the audio sub- system directly. Whether it be directly to alsa, to the AudioFlinger, to /dev/eac
View 16 Replies
View Related
Jan 6, 2010
I'm trying to write an App that continuously record audio in memory (in a circular buffer).
Could anyone point me towards a piece of code (perhaps in the kernel) that shows how to best to this?
View 3 Replies
View Related
Jul 7, 2013
I just finished Final fantasy 4 (android), and I wanted to have the remastered soundtracks from it. But on the internet the remastered version is not available yet, I could only find the old soundtracks.
I tried screencast recorder, z screen recorder etc(to record video+audio then extract audio), but they all record audio from the microphone, so that didn't work out. is there a way to extract the audio from the game somehow, or some on screen audio recorder for android devices?
View 4 Replies
View Related
Mar 8, 2010
Is it only possible for one object to access the microphone at a time? That is, could I simultaneously use an AudioRecord to do some audio processing and use a MediaRecorder to record the incoming audio?
View 2 Replies
View Related
Oct 16, 2010
Hey, I have a problem with android programing when I try to record and then play the file that was just recored. I can both record and play the sound but the quality stinks. Its not just bad is really hard to listen to and sound abit like its a computer generated voice. I use the andriod SDK-emulator. The code that sets up the recording looks like this;
MediaRecorder recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(path);
recorder.prepare();
recorder.start();
And the code playing the file later looks like this;
MediaPlayer mp = new MediaPlayer(); mp.reset();
mp.setDataSource(path); mp.prepare(); mp.start();
I don't know what part that makes the audio file sound really bad or if its just the emulator that makes it bad and that it would work on a real phone.
View 2 Replies
View Related
Jul 6, 2009
AudioRecord can record audio data in pcm format in realtime, but there is no audio-encoder who can encode pcm data to amr format. may be third-party java code can do this, but the performance may be very low.MediaRecorder just record audio data to disk. not realtime.It seems that this is a real miss-impossible?
View 2 Replies
View Related
Jan 16, 2010
I'm writing an App that needs to continuously record audio in memory and email the last 30 seconds of audio when required. Much of the mediarecorder API is designed to store linear audio in files. Could anybody point me towards a way to continuously record audio in memory, using a circular buffer using the SDK?
View 2 Replies
View Related
May 14, 2010
Voice recorder and all other 3rd party apps record audio like absolute garbage. I am very disappointed. Such an awesome camera and camcorder but it sounds like I am speaking through a damn kazoo. I am dying to know if it's firmware or just cheap hardware, not to sound bitter but the iphone has a SUPER high quality mic being that Incredible just came out I was very surprised at the low quality of the audio recording
View 12 Replies
View Related
Aug 5, 2009
this may have been asked and simply not answered but I will try anyway: Is there an architecture for delivering live video for the android platform? Apple has adopted the Segmented TS/M3U8 playlist approach and have submitted to the IETF. Microsoft seems to be adopting the Fragmented MP4 standard (ISO/IEC 14492-12 -... ) for the smooth streaming platform. What does Android plan on implementing? How would one develop an application today?
View 2 Replies
View Related
Jul 12, 2010
I want to develop an android application for video streaming if someone knows please guide me
View 2 Replies
View Related
Dec 5, 2009
I am a golf professional from Pennsylvania. I am looking for an app that I can:
-Record and import videos taken w/ the Droid
-Slowmotion Playback (forward and reverse)
-Frame by Frame Playback (forward and reverse)
-Save clips by video angle (down the line, face on, etc)
-Ability to draw lines/shapes on the screen w/ various drawing tools. If anyone has any interest, please let me know. I am not sure how to go about developing this type of stuff, so anyone who can provide some insight, it would be much appreciated.
View 1 Replies
View Related
May 12, 2013
I'm having a strange problem with my Xperia Arc (4.0.4) that is proving very difficult to track down. When playing music or videos, after a random amount of time (maybe 20 or 30 seconds) the phone will crash and restart. This happens regardless of the app I use - Play Music, Poweramp, MX Player and YouTube. I have restored my phone using CWM to a much earlier backup, but eventually (within a few hours) the problem returns.
My only other recourse would seem to be a full wipe and return to stock firmware, which would be a major PITA and obviously wouldn't support if this is a hardware issue or some conflict with an update
View 4 Replies
View Related
Mar 25, 2009
I am looking for video recording example, it suppose to be in api - sample but not available. I am wondering if 1.1 release still missing this feature?
If it does support then in which format and where is the example. Also I am trying to figure out MP3 encoding long ago but still no solution. I have recorded an audio ()which is in AMR by default, how can I convert it in MP3 (any external package I can use?)
View 6 Replies
View Related
Sep 3, 2010
The audio/video works perfectly if I watch the recording on my phone, but when I email the video to my gmail account and save it to my computer, it opens in Media Player and there's no sound. Does anyone know how to fix this? I have a Samsung Moment.
View 3 Replies
View Related
May 25, 2009
Record audio using the native AudioRecord interface? I'm trying to do this on my Neo Freerunner but all I get in logcat is:
I/AudioHardwareALSA( 787): Initialized ALSA CAPTURE device AndroidRecord_Microphone
D/AudioHardwareALSA( 787): Set CAPTURE PCM format to S16_LE (Signed 16 bit Little Endian)
D/AudioHardwareALSA( 787): Using 1 channel for CAPTURE.
D/AudioHardwareALSA( 787): Set CAPTURE sample rate to 8000 HZ
E/AudioFlinger( 787): Error reading audio input
W/AudioRecord( 947): obtainBuffer timed out (is the CPU pegged?) user=00000000, server=00000000
The android::AudioRecord::read() function returns the number of bytes I'm trying to read, but the resulting buffer is filled with zeroes.
View 1 Replies
View Related