Android :: Decode MP3 Audio Data To PCM Audio Format In Android

Dec 9, 2009

I am streaming an MP3 audio and instead making this MP3 audio to play, I want it to be converted to PCM format and pass this PCM audio to AudioTrack(as it takes PCM data as input.) instead of passing my MP3 stream to MediaPlayer. Can anyone please help me to convert the MP3 to PCM stream?

Android :: Decode MP3 audio data to PCM audio format in android


Android :: Determining Audio Format Of Audio Files

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

General :: Audio Codec - Decode / Decrypt FLAC Correctly?

Nov 6, 2011

I have a couple of videos, that I would like to strip the audio from, and was planning to use FLAC, and/or similar lossless codec; but before I do this, what codecs can Andriod decrypt? According to Android Central, it can decode FLAC, but only in Android 4.0 and higher, and I'm currently on Android 2.3.4 on a HTC Amaze 4G...

Is there any software I could get, in order for it to decode/decrypt FLAC correctly?

I don't mind using any other lossless audio codec, as long as Android 2.3.4 supports it...

View 5 Replies View Related

Android :: App To Rip Audio From Video Into Mp3 Format?

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

Android :: Streaming Audio AAC Format

Jun 22, 2010

I have developed a streaming app for Android. My app is streaming AAC audio.The app works fine on 1.5, 1.6, and 2.1. I tested it on Froyo, the android 2.2 and it does not work there.I have try everthing - Streaming directly from server url - Download incrementaly the content, store in a temp file, start reading. - Download incrementaly the content, store in a ContentProvider and start reading.No luck, I always got errors : 06-23 02:47:02.257: ERROR/MediaPlayer(266): Unable to to create media player 06-23 02:47:02.257: INFO/System.out(266): setDataSourceFD failed.: status=0x80000000 Does Froyo support AAC? Anyone happens to stream AAC?

View 4 Replies View Related

Android :: Improper Audio Format While Using AudioRecord API / What To Do?

Oct 12, 2010

I am doing recording in following way and storing byte array in a binary file. But the binary file I am getting is not in any format. what can be the problem? code...

View 3 Replies View Related

Android : Mp3 Encoder - Record Audio In Mp3 Format

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

General :: WMP / MTP / Android Audio Format Detection

Mar 5, 2014

According to the MS website, Windows Media Player queries an MTP device to see what formats it supports. My Razr Maxx HD supports ogg and m4a. When attempting to sync WMP does not sync those files stating they might not be supported on the device. Being that I've had so much trouble in the past even getting any of the Android devices to be properly detected as an MTP device I'm worried this is a driver issue.I should be able to get WMP to at least convert them.

this is the device mis-reporting the formats, Windows not querying them properly, or an actual WMP issue? Would like to be able to get sync working without any conversions. Maybe there is a way to hardcode formats within the mtp inf file?

View 1 Replies View Related

Android :: Native MediaPlayer Plays Audio But Not Video - 3gp Format

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

Android :: Want To Record Audio In WAV Format / Phone Supports *.3gp - *.AMR Type

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

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 View Related

Android :: How To Record Audio From Mic In Raw Pcm Format Into A Buffer Using Native Libraries Directly

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

Media :: Record Audio Into Ogg Format?

Dec 20, 2009

How to record audio into ogg format?

View 1 Replies View Related

Motorola :: Android Player To Recognize Audio Tags On Lossless Audio Files?

May 23, 2010

Does anyone know if there is a way for either meridian or the regular android player to recognize audio tags on lossless audio files?

View 1 Replies View Related

Android :: Analog To IOS Core Audio / Audio File Stream Services?

Sep 22, 2010

Is there an Android equivalent to the iOS Core Audio / Audio File Stream Services? I need to be able to read audio bytes from a network and feed them to the audio system under my control, so I can do my own timeouts / reconnects / range requests / etc. without interrupting the audio playback (since the system audio thread would be playing audio already enqueued). It seems that MediaPlayer doesn't give me this level of control. Is there a lower-level framework that does, either in the SDK or NDK?

View 2 Replies View Related

HTC Incredible :: No Video Only Audio (MP4 File Format)

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

Android :: Combine Only One Audio File From Two Audio Files

Oct 2, 2010

I want combine two audio files. (A audio file + B audio file = AB audio file)So, my search result is:

1. useing an AudioTrack.

2. decode PCM from audio file.

3. combine PCM.

This is currect? It there another way?

View 1 Replies View Related

Android :: How Can I Apply An Audio Effect To Recorded Audio?

Oct 17, 2010

I want to record a sample from the microphone, then I want to play the recorded file maximizing the volume and apply some audio effect, like modifing sample rate or addind an echo.Waht is the best way? is there an example?

View 1 Replies View Related

Android :: Audio Record And Play Recorded Audio

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

Android :: Video And Audio Format Supported By Android

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

Motorola Droid : How To Play Audio From Phone Through RR Audio System?

May 5, 2010

I connected my phone via USB to my RR sport to upload audio files to the RR hard drive. However, I keep getting connection error. Apparently my device is not being recognized as a storage. I did the unmount thinking. Also, I am wondering how I can play audio from my phone through the RR audio system.
RR is 2010.

View 2 Replies View Related

Android :: Processing Raw Audio Data

Apr 10, 2009

I want to develop an app that lets one intercept raw audio data sent for playback (possibly by a different app), and apply audio enhancements over this raw data.Does Cupcake allow such filtering of audio data? If so, which API should I use? I understand this may not be possible at an application level for security reasons.I'm trying to see if this is possible with native code linking to public or private API of Android.

View 3 Replies View Related

Android :: Play Remote Audio File In Android Audio Player

Nov 12, 2010

I am working on a application that would allow users to play remote files. My question is how do I open those remote files to be played in the default android player?but this does not give me control of what is happening!

View 2 Replies View Related

Samsung Galaxy S :: Audio Codecs /can't Hear Any Audio

Jun 28, 2010

I have a 720p video that I am trying to play on GS. The image is amazing by the way. But I can't hear any audio (works fine on my PC). Anything wrong with the audio codec used?

View 7 Replies View Related

Android :: Getting PCM Data From Built-in Audio Decoders

Jun 27, 2009

First of all, sorry for my bad english. I'm new into Android application development, just experimenting with the emulator and the SDK. I have searched with some keywords on the developer group, but i didn't find what i need. I'm searching for classes which with i can do simple audio DSP on locally stored audio files. e.g. i like to do crossfade/overlap on MP3 files, and an overall automatic gain control/ equalization on the realtime mix . As i see i can use the AudioTrack class to send raw PCM data to the audio hardware, so i could implement the DSP in java, but i don't see any way to use the internal decoders to grab decoded PCM frames from encoded audio files (like MP3, OGG, AAC). I thought about using Java decoder implementations like JLayer to do the decoding but that's a very CPU intensive approach which is not good for e.g. a media player application which runs in the background. Is there any classes for using the platforms builtin decoders, or should i "port" some available decoders with NDK to my application?

View 5 Replies View Related

Android :: How To Capture Audio Data From Mic Into A Buffer?

Sep 24, 2009

I am working on a packet switched network. I want to capture the audio data from mic into a buffer at a desired sample rate.How can I capture the audio data from mic into a buffer instead of a file? Also how can I control the audio capture rate as per the desired sample rate?

View 2 Replies View Related

Android :: Getting Amount Of Audio Data Buffered In Device

Apr 5, 2010

I am trying to write a streaming application.I have my own decoder and I am playing PCM audio using AudioTrack. At any point in time I want to know how much data is buffered with the device. I want to use this so that if the data with the device go below a level, I want to go into a buffering mode where I will buffer 2-3 seconds of data before continuing playback again. Can someone please tell me how to do this?

View 5 Replies View Related

Android : How To Get Data About All Audio Files In Device Using MediaAudio

May 4, 2010

I've been trying to understand how to get data about all the audio files in the device using MediaAudio but unfortunately the documentation is far from clear. Also, thereīs almost nothing about it on the forum right now and I couldnīt find good resources over the internet.

Iīve seen pretty quick and objective examples on how to access the main information from the containers but I couldnīt find in any place how I could get the names of the tracks (MediaStore.Audio.AudioColumns doesnīt have an specific constant for it) and the most important, how I could retrieve the path for the media (audio file in this case) Iīve found using the info on MusicStore.Audio.

am I missing something here? It seems it should be so easy but I canīt find the info! Also if I change any data on the container, will this data be also changed in the real file as well?

You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

View 4 Replies View Related

Android :: Record Audio Uncompressed / Want To Record Audio From Microphone

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

Android :: Playing Audio From Audio Track In Android

Feb 15, 2010

I want to play music from online mp3 link.I am reading the music data into a stream and trying to play it using audio track.But itz giving only noise.No music i could listen.here buffer is the audio data i am reading into.Same buffer I can play in MediaPlayer,,,But i could not play in audio track.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved