Code Monkey home page Code Monkey logo

asdlei99 / easyaudiodecoder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from easydarwin/easyaudiodecoder

0.0 0.0 0.0 50.03 MB

开源项目:简单、高效、稳定的开源音频解码库,能够将G.711A/PCMA、G.711U/PCMU、G726、AAC等音频格式转码到Linear PCM,再提供给流媒体播放器进行音频播放,EasyAudioDecoder支持跨平台,支持Android & iOS,目前已稳定应用于EasyPlayer、EasyClient等多个开源及商业项目!

Home Page: http://www.easydarwin.org/

License: Apache License 2.0

Java 0.03% Makefile 0.20% C 96.73% C++ 1.80% Objective-C 1.24%

easyaudiodecoder's Introduction

EasyAudioDecoder

EasyAudioDecoder 是EasyDarwin开源流媒体服务团队整理、开发的一款音频转码到Linear PCM的工具库,目前支持G.711A/PCMA、G.711U/PCMU、G726、AAC音频格式的转码,跨平台,支持Android & iOS,目前已稳定应用于EasyPlayer等项目;

Android AudioCodec库说明

  1. 该工程(Android目录下的工程)为Android的NDK工程。安装android ndk,cd到jni目录,执行ndk-build;
  2. ffmpeg静态库已经编译ok,其中.h、.a文件位于ffmpeg/armeabi-v7a目录下;
  3. 该工程实际上是对于ffmpeg库的封装,具体实现见AACDecode.cpp文件;
  4. 库工程仅编译了armeabi-v7a版本,如需其他abi版本,可自己编译ffmpeg,参考EasyPlayer Android音频解码库(第一部分,ffmpeg-android的编译,把对应abi的版本拷贝至ffmpeg目录下面,在Application.mk里增加改abi,再编译;
  5. 对应的java文件为AudioCodec.java

iOS EasyAudioDecoder库说明

  1. 该工程(iOS目录下的工程)为 xcode 的 framework 工程.双击 EasyAudioDecoder.xcodeproj 即可用 xcode 打开工程;
  2. ffmpeg 静态库已经编译 ok,在 iOS 目录下,同时支持真机和模似器;
  3. 该工程实际上是对于 ffmpeg 库的封装,具体实现见 FFAudioDecoder.m 文件;
  4. 使用该库的时候,引入头文件EasyAudioDecoder.h, API非常简单:EasyAudioDecodeCreate,EasyAudioDecode,EasyAudioDecodeClose分别表示创建解码器,解码,销毁解码器

调用示例

  • testEasyAudioDecoderr:通过EasyAudioDecoderAPI对G711A/G711U/G726/AAC进行转码;

  • ARM版本的EasyAudioDecoder库可自行编译

调用过程

获取更多信息

邮件:[email protected]

WEB:www.EasyDarwin.org

Copyright © EasyDarwin.org 2012-2019

EasyDarwin

easyaudiodecoder's People

Contributors

babosa avatar penggy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.