aac

FFmpeg check audio channels for silence

会有一股神秘感。 提交于 2019-12-05 02:27:56
问题 I have two .mp4 files, both having 8 (7.1) audio channels. But in fact, I've been told that one has a stereo audio channel + 2 SAP (secondary audio on channels 7-8), and the other one has 6 (5.1) audio channels + 2 SAP (on channels 7-8). So basically the later one has some [real] audio channels such as Center channel where that doesn't exist in the former stereo one (although it has those channels, but apparently they are silent/mute). I've been trying to see some differentiating metadata to

FFmpeg check channels of a 7.1 audio for silence

余生长醉 提交于 2019-12-04 22:06:10
This is a follow-up question from my previous question asked here , where I needed to look for silence within a specific audio track. Here is the ffmpeg life-saver solution where helps to get some metadata: ffmpeg -i file -map 0:a:1 -af astats -f null - But I have other type of input .mp4 files where they have one single track of 8 (i.e. 7.1) audio channels. Apparently these files are transcoded from an original file (somehow the 4 track stereos are squished into these files). Now similar to my previous, I need to know if the original file was 2-channel stereo or 5.1 (6) channel. How to know

How to record using AVAudioRecorder without the .caf container?

只愿长相守 提交于 2019-12-04 12:39:36
问题 I am using a AVAudioRecorder instance to record with the setting for AVFormatIDKey set to kAudioFormatMPEG4AAC . It records the audio in AAC format but a .caf audio container packages the audio file. (I can see the caff header in the recorder file). How do I record so that the caff container is not there but in pure m4a format so that I can use the files across platforms. 回答1: Found the answer. There is a weird way the AVAudioRecorder works. The format in which the AVAudioRecorder will save

How to record raw AAC audio files in Android using MediaRecorder? AAC_ADTS doesn't work

让人想犯罪 __ 提交于 2019-12-04 09:21:33
I'm using the Android MediaRecorder to record AAC encoded audio files. Setting the output format to MPEG-4 worked pretty well. But as my audio player supports neither MPEG-4 nor 3GP I tried to get raw AAC files by using the output format AAC_ADTS , which is supported by Android since API level 16. mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.AAC_ADTS); mRecorder.setOutputFile(mFileName); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); Here is where I got stuck. The MediaRecorder created

Unexpected status line: ICY 200 OK for URL openStream() method?

核能气质少年 提交于 2019-12-04 06:35:44
According to changes for kitakt 4.4 there were some problems with playing shoutcast streams (those returning "ICY" instead of "HTTP/1.x" response). So solution for kitkat was to reregister "icy" protocol prefix in JVM once before we opened a stream by this: try { java.net.URL.setURLStreamHandlerFactory( new java.net.URLStreamHandlerFactory(){ public java.net.URLStreamHandler createURLStreamHandler( String protocol ) { Log.d( LOG, "Asking for stream handler for protocol: '" + protocol + "'" ); if ("icy".equals( protocol )) return new com.spoledge.aacdecoder.IcyURLStreamHandler(); return null; }

how can I use html5 <audio> tag to play aac file?

拥有回忆 提交于 2019-12-04 01:03:44
问题 <audio controls> <source src="xxx.aac" type="audio/aac"> </audio> I can get it to work in safari but doesn't work in chrome and firefox. any solution? 回答1: Only Safari and IE support .aac. Here is what each browser supports: Internet Explorer 9.0+: .mp3, .aac Chrome: .ogg, .mp3, .wav, .aac* Firefox: .ogg, .wav Safari: .mp3, .aac, .wav Opera: .ogg, .wav * Chrome seems to support .aac but it isn't included in the list of officially supported file extensions. I suggest using both .ogg and .mp3

Converting audio on android to mp3 or AAC

大憨熊 提交于 2019-12-03 16:47:14
I am recording audio from mic and save it to .mp4 - it is AMR format. How to convert this audio to mp3 or AAC? I saw this post and I did not understand it - I am new in android. Is there some easy library for android that can work with mp3? I googled whole day and not found nothing. Maybe some good man can explain and give full example in this post and hundreds of people will be grateful! Thank you. Nathan Tornquist You could do that with http://www.javazoom.net/mp3spi/mp3spi.html probably. I am not sure where you were looking for help, but there are tons of articles on StackOverflow about

Conversion from mp3 to aac/mp4 container (FFmpeg/c++)

此生再无相见时 提交于 2019-12-03 16:19:35
I have made a small application to extract audio from an mp4 file, or simply convert an existing audio file to AAC/mp4 format (both raw AAC, or inside mp4 container). I have run this application with existing mp4 files as input, and it properly extracts audio, and encodes to mp4 (audio only:AAC), or even directly in AAC format (i.e. test.aac also works). But when I tried running it on mp3 files, output clip plays faster than it should be (a clip of 1:12 seconds plays back till 1:05 seconds only). Edit: I have made improvements in code - now, it no longer plays back faster, but is still only

How can I append to a recorded MPEG4 AAC file?

北战南征 提交于 2019-12-03 07:54:47
问题 I'm recording audio on an iPhone, using an AVAudioRecorder with the following settings: NSMutableDictionary *recordSettings = [[NSDictionary alloc] initWithObjectsAndKeys: [NSNumber numberWithInt: kAudioFormatMPEG4AAC], AVFormatIDKey, [NSNumber numberWithFloat:44100.0], AVSampleRateKey, [NSNumber numberWithInt:1], AVNumberOfChannelsKey, [NSNumber numberWithInt:12800], AVEncoderBitRateKey, [NSNumber numberWithInt:16], AVLinearPCMBitDepthKey, [NSNumber numberWithInt: AVAudioQualityHigh],

PCM to AAC conversion using mediacodec

☆樱花仙子☆ 提交于 2019-12-03 05:43:59
问题 I am using a media codec class in Android (Jelly Bean) to encode PCM format to AAC. The file was encoded but no music player is able to play that file. I was not able to find any working code or proper documentation on the net. This is my code: public void doConvert() { new AsyncTask<Void, Void, Void>() { @Override protected Void doInBackground(Void... params) { try { int codecCount = MediaCodecList.getCodecCount(); for ( int i=0; i < codecCount; i++) { MediaCodecInfo info = MediaCodecList