Android : Need To Record Audio - Video Recording Files In 3gp / Mp4 Format
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
Aug 2, 2010
I want to record audio in MP3 format in my android application. I know I can read PCM audio using the audioRecord class. Is there a java library compatible with android that will encode PCM to MP3? Is it possible to use the Lame mp3 encoder library?
View 1 Replies
View Related
Dec 20, 2009
How to record audio into ogg format?
View 1 Replies
View Related
May 14, 2009
Now i want to record audio in WAV format. What should i do now because android only supports *.3gp or *.AMR type?
View 6 Replies
View Related
Oct 9, 2009
My application cannot handle the JNIE overhead, as I need to make 2 JNIE calls to the native C/C++ code for every 20msec. So I am trying to use the native media libraries and the realted C/C++ files provided by Android in the folder "//external/srec/audio/test" of the donut build. Ex. AudioHardwareRecord, AudioInRecord etc.. I am implementing all the calls in the native layer.
I am using the sampling rate as 8000 and want to read 160 samples (320 bytes) at a time.
I used the following values to create the AudioRecord..
CODE:..........
It says "success" after creating this interface but I am getting the error "Bad Value" if I am doing the InitCheck.
And it is crashing once I start reading the samples or if I try to retrieve the configured sampling rate.
Has anybody tried to access this native code?
View 4 Replies
View Related
May 8, 2010
Is there a way to determine the audio format of an audio file in Android? On normal java I do it like this:
File file= new File(...);
AudioInputStream stream = AudioSystem.getAudioInputStream(file);
AudioFormat format= stream.getFormat();
View 2 Replies
View Related
Jun 15, 2010
In the camcorder application, I have chosen to record the video's in MP4. However, when you then side load them to the PC or what-not they appear as 3GPP or something. Is 3GPP a version of MP4 or is the camcorder telling fibs? If it's not, how do I record in plain old MP4?
View 4 Replies
View Related
Aug 12, 2010
I have not taken a lot of video with my Droid (I have Flip for that), and what I do take, I just watch on the phone. But, I may eventually want to play this on my computer or on my TV using a streaming media device. My current device plays a LOT of formats, but I have not tried any of my Droid videos. What format does the Droid capture video in? Is it the 3gp I have heard about? If so, I think that is one format I can't play where I want it. I heard that my wife's Incredible actually records in mp4, but then converts to 3gp, but there is something you can install which prevents that conversion and keeps it in mp4. Is there something like that for the Droid?
View 2 Replies
View Related
Aug 21, 2010
I tried a few different google searches on the subject and most of the results were about playing different video format, not recording. I'm wondering if there is a way to change the factory default video recording format to something like generic avi or mpeg formats?
View 5 Replies
View Related
Jan 22, 2010
Does such a thing exist please folks - want to rip some audio for an mp3 ringtone from a comedy video clip
View 4 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
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
View Related
Jan 17, 2010
I have searched the whole group but wasn't able to find a answer for my problem.I want to record audio from the microphone, apply some audio signal processing and than save the processed audio data in a compressed format.I figured out, how to record audio uncompressed but now I wonder if I can use some api functions to store this data in a supported compressed format.
View 4 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
Aug 11, 2010
i'm big into freestyling. i have over 1500 instrumentals on my phone.i can't figure out how to play them and record myself (either audio or video) at the same time.i figure i'm either gonna have to download a new music player that won't close or a video/audio recorder that won't close the "Music" player that came with my evo.and before anyone goes tryin to be smart, i realize that even if i was able to accomplish such an action the quality would probably be really low due to speaker and mic being so close.my intent is more of a "on the fly lyric composition" rather than a " put myself on youtube to show everyone how awesome i am"
View 2 Replies
View Related
Oct 19, 2010
We have one of the crappiest microphones on any phone. I tried to record some audio/video with my camera and the freakin audio SUCKS! what gives? is there anything HTC/Sprint/we can do about this?
View 8 Replies
View Related
Jun 16, 2009
I have the following native source code that is supposed to display video. It plays 3gp file ok and I can hear the audio, but the video is not shown.
CODE:..............
View 4 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
Jun 24, 2010
The HTC web site claims support for .mp4 and .wmv playback but I have had no luck. I have used various programs from HandBrake to Sony and I can get audio with no video (mp4). I can get audio with still image video (wmv). The DI seems very picky as to which videos it will actually play back. Is there a recommended way to convert my videos / DVS into a format the DI can play?
View 1 Replies
View Related
Apr 24, 2009
Can anybody advice what is the recommended directory to store files generated by your application: audio files, video files or some images.
If the phone contains SD card, it is clear that files should be saved there, but if there is no any external storage. where would you recommend to save to?
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
Jan 28, 2009
i want to knw what r the Audio and Video format r supported by Android by Default is thier any plug-ins needs to be add in to SDK .
View 3 Replies
View Related
Jun 11, 2010
I have an audio file in .3gp format on my Android device which I wish to upload to YouTube. I know that YouTube is a video upload site and that I need to convert this sound file to video. I just want an image to display all the time the audio is playing. Google tells me there are number of tools that can help me. But I want to do this via java code from my Android device.
View 7 Replies
View Related
Nov 23, 2010
Ok so I see a lot of people saying they are having problems with video playback when importing from their SD Card but Im having the opposite problem.
I just switched over from the Metro PCS Samsung Code which is a Windows 6 phone to EVO and I put my SD Card in my EVO. All my music files play and the mp4 video files play but the audio from the mp4 video files dont. Does anyone have advice on how to fix this?
View 9 Replies
View Related
Jun 2, 2009
Could you please let me know how to do the audio record in android emulator and play the same recorded audio. Could you please help me in proceeding in development.I tried with MediaPlayer API's also.Its not working.
View 5 Replies
View Related
Dec 2, 2013
I've to develop a software which can copy all audio and Video files from Android device to System
What to cover first, either linux kernel or android system interface.
Do I need to learn linux kernel programming or android system interface only
This backup could be possible from one of the medium via USB cable or WiFi or other form of connectivity.
View 1 Replies
View Related
Mar 29, 2010
Still waiting for my Desire to arrive, but I read on coolsmartphone that people were having difficulty with the BBC iplayer. I was under the impression that the Desire handeled flash. does anyone have any comments? Can you listed / watch the embedded audio/video files on the BBC wedsites?
View 17 Replies
View Related
Aug 9, 2010
Would someone post an example of how to stream audio/video files using rtsp in android........
View 1 Replies
View Related
Oct 7, 2010
Is it possible to do a line-in recording with a droid?
headphone jacks can accept corded headsets with microphones with 3 "contact points" on the plug so you can plug in the corded headset to listen to audio, plus speak through the in-line microphone for calls. So it would seem possible but I can't find anything that says if it can or not
and witch app can record in mp3?
View 2 Replies
View Related
Oct 26, 2009
Do you have an app that records videos to mp4 format?
View 2 Replies
View Related