本文介绍了如何检测AAC音频配置文件,并确保Android的兼容性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有搞清楚如何检测是否AAC音频源与Android兼容的问题。支持的媒体格式说'AAC LC / LTP时,为3GP,MPEG4或ADTS原料AAC交付。它出现在LC意味着低复杂度和LTP的意思是长期prediction但是,我最大的挫折就是确定什么AAC配置文件/模块支持Android系统。当我运行投入的ffmpeg,我看到它的AAC,但对AAC没有扩展的信息。一个例子来源是任何人有任何想法

I am having problems figuring out how to detect if an AAC audio source is compatible with Android. The supported media formats page for android says 'AAC LC/LTP' when delivered as 3GP, MPEG4 or ADTS raw AAC. It appears the LC means 'Low Complexity" and LTP means "Long Term Prediction" but, my biggest frustration is determining what AAC profiles/modules are supported on Android. When I run the input into ffmpeg, i see its AAC, but no extended information about the AAC. An example source is http://6693.live.streamtheworld.com:80/WTMJAMAAC_SC . Anyone have any ideas?

推荐答案

您可以得到扩展的媒体信息:

You can get extended media information programmatically using the MediaInfo library available here:http://mediainfo.sourceforge.net/en/Download

在DLL或其他媒体下载包括用C例如code,C#等。
如果你不想写任何code,同样的网站有MediaInfo,使用该库来显示信息的应用程序下载。

The "DLL" or other media downloads include example code in C, C#, etc.If you do not want to write any code, the same website has downloads for "MediaInfo", a program that uses the library to display information.

您的Andr​​oid支持的媒体格式的链接表示:标准比特率的任意组合单声道/立体声含量高达160 kbps的采样率从8到48kHz 的。请注意下面的示例显示了所有的那些:通道(S),总比特率和采样率

Your Android supported media formats link says: "Mono/Stereo content in any combination of standard bit rates up to 160 kbps and sampling rates from 8 to 48kHz". Notice the sample below shows all of those: Channel(s), Overall bit rate, and sampling rate.

,可能有必要测试对于自己是否高达160 kbps的是指最多整体160 kbps的或的文件中的任何部分,包括那些带可变比特率(VBR)$ C $光盘,可超过160kbps的。
值得注意的是,我打我的单核Android手机具有256KBit VBR AAC 6声道音频上的电影,但显然我没有听到后方环绕声道。因为这些,我怀疑,在链接中提出的限制是允许的最小值由谷歌,但在实践中支持的音频格式更为广阔。

It may be necessary to test for yourself whether "up to 160 kbps" means "Up to 160 kbps overall" or "No part of the file, including those encoded with variable bit rates (VBR), may surpass 160kbps."It is noteworthy that I have played movies on my single-core Android phone which have 256KBit VBR AAC 6-channel audio, though obviously I did not hear the rear surround channels. Because of those, I suspect that the limitations proposed in the link are minimums allowed by Google, but that the audio formats supported in practice are much more broad.

下面是一个实际的AAC文件为例(使用MediaInfo程序):

Here is an example from an actual AAC file (using the MediaInfo program):

Format                           : ADTS
Format/Info                      : Audio Data Transport Stream
File size                        : 176 KiB
Duration                         : 30s 707ms
Overall bit rate                 : 46.8 Kbps

Audio
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format version                   : Version 4
Format profile                   : LC
Format settings, SBR             : Yes
Format settings, PS              : Yes
Muxing mode                      : ADTS
Duration                         : 30s 707ms
Bit rate mode                    : Constant
Bit rate                         : 46.8 Kbps
Channel(s)                       : 2 channels
Sampling rate                    : 44.1 KHz
Stream size                      : 176 KiB (100%)

我在C#写了一个包装库MediaInfo。它是没有必要使用MediaInfo,但使得它的使用更容易,更.NET友好的。它可以在这里找到:

这篇关于如何检测AAC音频配置文件,并确保Android的兼容性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 05:29