Skip to content

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.

Notifications You must be signed in to change notification settings

louisyonge/opus_linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published