GithubHelp home page GithubHelp logo

soft-stech / opus_linux Goto Github PK

View Code? Open in Web Editor NEW

This project forked from louisyonge/opus_linux

0.0 1.0 0.0 2.33 MB

This is an Java library transplanted from official Opus codec. With this library, Opus format audio can be operated in an easy way, including encoding WAV files to Opus and decoding Opus to WAV.

Makefile 0.78% C 96.73% Perl 0.29% Assembly 0.70% C++ 0.72% CSS 0.52% HTML 0.08% Java 0.17%

opus_linux's Introduction

README

Welcome to the Opus demo for Linux server.

Summary

The is a demo on how to use Opus codec for Linux server. It can encode an opus file to a memory buffer and decode the buffer to an opus file.

Getting started

  • pre-requisites
  1. JDK v1.7 or higher
  2. Eclipse
  • Summary of set up:
  1. Get the source code.[Git] (https://bitbucket.org/louisyoung/opus_linux.git)
  2. Open it in Eclipse.
  3. Compile and run.

Usage

OpusTool tool = new OpusTool();
String fin = "xxx", fout = "xxx";
ByteBuffer buf = tool.decode(fin, null);
..dosomething(buf)... //modify the PCM data if you want to
tool.encode(buf, fout, null);    
tool.releaseByteBuffer(buf);//free memory

Hints

  1. top.oply.opuslib.OpusTool contains the basic codec functions.
  2. If Ubuntu 64 bit server, the native library libopusTool.so under the folder "libs" can be used directly.
  3. Compiling Native code is easy, just go to "\src\jni", and issue command "make". Then copy libopusTool.so to "libs".

Open Projects

  1. Opus (git://git.opus-codec.org/opus.git)

  2. Opus-tools (git://git.xiph.org/opus-tools.git)

  3. Opusfile (git://git.xiph.org/opusfile.git)

Enjoy

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.