This article introduces the compilation and use of ffmpeg in ANDROID/NDK environment, FFmpeg comes with H264, AAC, MP3 decoder, but there is no (or no good) corresponding encoder. The corresponding encoder requires the use of a third-party library. The recommended third party libraries is x264 (H264 encoding), FDK_AAC (AAC encoding), lame (MP3 encoding).In order, the third-party library should be compiled f
This article introduces a small open-source project: AAC format analyzer. The full name of AAC is Advanced Audio Coding, which is a widely used Audio encoding format on the Internet and the best Audio encoding format at present. A large part of existing videos on the Internet use AAC for audio encoding. Developed Using MFC of VC 2010. Faad2, an open source decode
In the previous article, we used ffmpeg to separate the audio and video data from a multimedia container, but it is possible that the data could not be decoded correctly. Why is it? Because the decoder needs to be configured before decoding the data, it is typical of the current popular HD coded "Golden Partner" combination H264 + AAC . This article will describe the key decoding configuration parameters of H264 and
Tags: Android blog http sp file 2014 on problem log=============== Problem description ====================I am confused. Once I read it, I was able to write AAC to someone who was bound to use AAC. Now I find that I can't record it... Not supported ..How to play AAC files on Android.============= Solution 1 ======================
Reference the reply from u
1. FDK-AAC
Http://sourceforge.net/projects/opencore-amr/files/fdk-aac/
The corresponding msvs version is available on GitHub:
Https://github.com/nu774/fdkaac
"Small record: The FFMPEG compiled by Intel compiler is added with support for FDK-AAc. The link is the fdkaac static library generated by vs2010, which is generated for execution.ProgramThe validity r
iOS audio AAC video H264 coded push flow best practicesProjects are personal research and experimentation, there may be many bad or wrong places please forgive.1 Overview of features* Realization of audio and video data collection* Realize the encoding of audio and video data, video encoding into H264, audio encoding into AAC* To achieve the release of audio and video data, the encoded audio and video trans
you have time to video, you can use a timer (reduce power consumption) to open a thread.
H264 and AMR-NB are transplanted from opencore, the mobile phone with baseline enough. If you want to support AAC, you can use the AAC decoder of Helix or opencore AAC decoder.
The latency caused by JNI decoding and re-transmission to the display on the Java layer is intoler
Use FAAD decoding AAC audio for PCM data flow can refer to the following articleHttp://blog.csdn.net/gavinr/article/details/6959198#reply/** * FAADDEC.C * use Faad Library to decode AAC, only can decode frame with ADTS head */#include Previously encoded with FAAC a PCM data (source data is 16000 sample rate, single channel, 16-bit sampling), the parameters set by encoding is also 16000 sample rate, single c
These months have been doing the iphone audio and video things, because the individual is lazy, so has not tidied up, now idle egg pain, and later the project to be shelved, here to record what I do the iphone mobile push the stream of things.Projects are personal research and experimentation, there may be many bad or wrong places please forgive.1 Overview of features* Realization of audio and video data collection* Realize the encoding of audio and video data, video encoding into H264, audio en
One, Adts format:
The full name of Adts is the audio Data Transport Stream. is the transport stream format for AAC audio.
The AAC audio format is defined in MPEG-2 (ISO-13318-7 2003). AAC was later adopted in the MPEG-4 standard.
1. Adts_sequence ()
{
while (nextbits () = = Syncword) {Adts_frame ();}
}
2. Adts_frame ()
{Adts_fixed_header ();Adts_variable_header (
One, Adts format:
The full name of Adts is the audio Data Transport Stream. is the transport stream format for AAC audio.
The AAC audio format is defined in MPEG-2 (ISO-13318-7 2003). AAC was later adopted in the MPEG-4 standard. [@more @]
1. Adts_sequence ()
{
while (nextbits () = = Syncword) {Adts_frame ();}
}
2. Adts_frame ()
{Adts_fixed_header ();Adts_variabl
stream based (mpegvideo, mpegaudio) and this is the only method to use them because you cannot know the compressed data size before analysing it. BUT some other codecs (msmpeg4, mpeg4) are inherently frame based, so you must call them with all the data for one frame exactly. You must also initialize 'width' and 'height' before initializing them. */ /* NOTE2: some codecs allow the raw parameters (frame size, sample rate
About FAACFAAC is a MPEG-4 and MPEG-2 AAC encoder, characterized by: portability, fast, support LC/MAIN/LTP, through dream support DRM, code small relative to the ffmpeg of the AAC transcoding, FAAC is really very little, And you can directly add code to the project to compile, you can also use the static library, and no huge dynamic library of the trouble.Download installation
Compile the static l
============ Problem Description ============How do I play the AAC audio that the network transmits over in Android? Each package has a ADTS head.============ Solution 1============If it is an application, set MediaPlayer Setdatasource directly to the URI of the network audio, and then Prepareasync (), prepare after the completion of the call to start is not OK?The framework layer is also to use Aacdecoder decoding playback, either with software decod
During this period of time, the work needs are converted from FLV stream to standard h264 and aac on rtmp. The server is an open-source project crtmpserver, client flex writing, video encoding h264, and audio encoding AAC, some protocol-related items are recorded as follows.
1. Analyze FLV data
Let's take a FLV file to analyze the FLV data format.
FLV standard document http://www.cnblogs.com/chef/a
A small program uses faad to decode AAC audio and can only decode the frames encapsulated by ADTs. Compiled programs can be downloaded from here: http://download.csdn.net/detail/gavinr/3782154
/*** Faaddec. C * use faad library to decode AAC, only can decode frame with ADTs head */# include
[] pbaacbuffer;}Int wavtoaac (const char * wavdata, int wavdatalen, char * aacdata ){/*** Convert WAV audio data of the length of wavdatalen into AAC and write aacdata* If AAC data is successfully returned, the value-1 is returned if an error occurs.*/If (hencoder = NULL ){Return-1;}Int32 ninputsamples = 0;Int32 readpcmbytesum = 0;Int32 writeaacbytesum = 0;Int32 naacencret = 0;Int32 J = 0;Int32 K = 0;While
This time, the work of the need, on the rtmp to do the FLV stream to the standard H264, AAC conversion, the server is open source project Crtmpserver, client flex writing, Video coding H264, Audio coding AAC, now some of the agreements related to the following things record.
I. Analysis of FLV data
Let's take an FLV file to briefly analyze the format of the FLV data
FLV standard document Download address h
Project and Source Address: Https://github.com/EasyDarwin/EasyAACEncoder
Easyaacencoder is easydarwin Open Source Media Services team to organize, develop an audio transcoding to AAC tool Library, currently supports G711A/G711U/G726/PCM and other audio format transcoding, cross-platform, support windows /linux/arm. Invoke Example
testeasyaacencoder: AAC transcoding via EASYAACENCODERAPI to g711a/g711u/g726;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.