Giter Site home page Giter Site logo

mp3encoder's Introduction

《音视频权威指南》系列学习 —— Mp3Encoder

《第二章》音视频基础,转码 pcm 格式为 mp3

将书中 Eclipse 项目在 AS 中实现。可直接运行。 简化老师的 jni 分包,减少复杂度

环境

  • AndroidStudio : 3.4
  • NDK : AS 中下载
  • .pcm 格式测试文件可在 /resource 目录下获得,encode 后会生成一段小音乐的 .mp3 文件(我自己生成的已放置在 /resource 下)

权限

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />  
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

  1. 模拟器没跑起来,真机可行(猜测是 CPU 问题)
  2. 交叉编译出的 lame 是 x CPU版本,就需要指定 Application.mk 文件中 APP_ABI := armeabi-v7a (x CPU版本) ;否则,ndk-build 编译报错
  3. Application.mk 中 APP_PLATFORM := android-9 指定的是最低兼容版本。可同理 build.gradle 文件中 minSdkVersion

mp3encoder's People

Contributors

eddiezx avatar learningwu avatar

Watchers

James Cloos avatar  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.