aac

Corrupted AAC files recorded from online stream

懵懂的女人 提交于 2020-01-06 07:31:13
问题 I'm recording audio from an AAC radio stream the simplest way I know: r = requests.get('http://someradio.net:someport/stream.aac', stream=True) self.new_filename() with open(self.filename, 'wb') as f: try: for block in r.iter_content(self.chunk_size): f.write(block) except KeyboardInterrupt: pass The resulting audio files are not properly encoded (as I guess) causing Adobe applications like Premiere Pro to treat them a funny way. For instance, they import them as mono while they should be

Corrupted AAC files recorded from online stream

有些话、适合烂在心里 提交于 2020-01-06 07:29:19
问题 I'm recording audio from an AAC radio stream the simplest way I know: r = requests.get('http://someradio.net:someport/stream.aac', stream=True) self.new_filename() with open(self.filename, 'wb') as f: try: for block in r.iter_content(self.chunk_size): f.write(block) except KeyboardInterrupt: pass The resulting audio files are not properly encoded (as I guess) causing Adobe applications like Premiere Pro to treat them a funny way. For instance, they import them as mono while they should be

Can non-standard sampling rates be used with AAC encoding?

≡放荡痞女 提交于 2020-01-05 09:14:43
问题 I am trying to up-sampling an M4a file from 41000 to another non-standard sampling rate let's say 5000. ffmpeg -i audio.wav -ar 5000 audio_.wav This worked fine with wav files whoever it didn't work with m4a. Any ideas why? If non-standard sampling rates don't work with AAC I need any documentation or reference for that. 回答1: The set of available sampling frequencies is limited by AAC ADIF (Audio Data Interchange Format) and ADTS (Audio Data Transport Stream). So other rates just can't be

FFmpeg native AAC decoder

99封情书 提交于 2020-01-05 03:16:10
问题 I'm working on a commercial C\C++ app on Windows that need to decode AAC. I have looked at this question AAC Codec Library (libFAAC alternative) From the answer, it seems that FFmpeg has a native LGPL AAC decoder. However, when I looked at FFmpeg home page, I found no information about this decoder or what AAC object type it supports (only information about encoder). I have been searching for this for 2 days but I found almost nothing. So my questions are: What type of object type does native

AAC Codec Library (libFAAC alternative)

三世轮回 提交于 2020-01-03 13:34:24
问题 I'm looking for an AAC encoder/decoder library that works on Linux and Windows (for a C\C++ app). This is for a commercial product, so libFAAC is not an option. I've looked at the one from Nero and MainConcept, but I'd prefer something with a LGPL license or the like that doesn't require license fees. 回答1: You may want to consider android's stagefright, though it will probably take some work to adapt to a general purpose library. It available is under the Apache 2.0 license https://android

AAC Codec Library (libFAAC alternative)

戏子无情 提交于 2020-01-03 13:34:15
问题 I'm looking for an AAC encoder/decoder library that works on Linux and Windows (for a C\C++ app). This is for a commercial product, so libFAAC is not an option. I've looked at the one from Nero and MainConcept, but I'd prefer something with a LGPL license or the like that doesn't require license fees. 回答1: You may want to consider android's stagefright, though it will probably take some work to adapt to a general purpose library. It available is under the Apache 2.0 license https://android

AAC Codec Library (libFAAC alternative)

强颜欢笑 提交于 2020-01-03 13:34:10
问题 I'm looking for an AAC encoder/decoder library that works on Linux and Windows (for a C\C++ app). This is for a commercial product, so libFAAC is not an option. I've looked at the one from Nero and MainConcept, but I'd prefer something with a LGPL license or the like that doesn't require license fees. 回答1: You may want to consider android's stagefright, though it will probably take some work to adapt to a general purpose library. It available is under the Apache 2.0 license https://android

Seeking in AAC streams on Android

旧巷老猫 提交于 2020-01-01 17:09:10
问题 I'm getting an AAC stream from a HTTP server and using that as the datasource for the MediaPlayer in Android. It plays perfectly fine, but when I try to execute mediaPlayer.seekTo(int position) I get the following errors about a million times: WARN/AACDecoder(13889): AAC decoder returned error -1, substituting silence WARN/AACDecoder(13889): AAC decoder returned error 10, substituting silence WARN/AACDecoder(13889): AAC decoder returned error 1, substituting silence This error happens on

Converting audio on android to mp3 or AAC

好久不见. 提交于 2020-01-01 05:46:05
问题 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. 回答1: You could do that with http://www.javazoom.net/mp3spi/mp3spi.html probably. I am not sure

AAC stream resampled incorrectly

折月煮酒 提交于 2019-12-25 03:05:32
问题 I do have a very particular problem, I wish I could find the answer to. I'm trying to read an AAC stream from an URL (online streaming radio e.g. live.noroc.tv:8000/radionoroc.aacp) with NAudio library and get IEEE 32 bit floating samples. Besides that I would like to resample the stream to a particular sample rate and channel count (rate 5512, mono). Below is the code which accomplishes that: int tenSecondsOfDownloadedAudio = 5512 * 10; float[] buffer = new float[tenSecondsOfDownloadedAudio]