[opus] how to Build .opus file

Jean-Marc Valin jmvalin at jmvalin.ca
Mon Oct 28 10:55:59 PDT 2013


On 10/28/2013 01:37 PM, Antonio Juan wrote:
> The problem is that for using this package I need to use all the libs
> like ogg, even Speex?, 

You do not need Speex. You do need libogg because .opus files *are* Ogg
files.

> no, and also where i can find an easy example
> like opus_demo.c to create the .opus file

There's an easy example called opusenc in the opus-tools package :-)

	Jean-Marc


> Greetings
> 
> Toni
> 
> 
> 2013/10/28 Jean-Marc Valin <jmvalin at jmvalin.ca <mailto:jmvalin at jmvalin.ca>>
> 
>     Hi Toni,
> 
>     The package you want is opus-tools. You can get it from the download
>     section. For file distribution, always use opusenc (or equivalent),
>     never opus_demo.
> 
>     Cheers,
> 
>             Jean-Marc
> 
> 
>     On 10/28/2013 11:34 AM, Antonio Juan wrote:
>     > Hi all!
>     >
>     > Using the code in opus_demo.c I write a c program for encode and
>     decode
>     > the audio from one microphone, I can encode and decode raw audio into
>     > .opus file, but really is not an opus file because i need to add the
>     > "OpusHead" and the "OpusTags". In order that any opus player can play
>     > that file.
>     >
>     > So I only need in my c program how to add this streams to my file
>     an how
>     > to create the complete opus file
>     >
>     > I do not find any information about creating the header and how to
>     store
>     > the opus packets that i encode and decode
>     >
>     > Grettings
>     >
>     > Toni
>     >
>     >
>     >
>     >
>     >
>     >
>     > _______________________________________________
>     > opus mailing list
>     > opus at xiph.org <mailto:opus at xiph.org>
>     > http://lists.xiph.org/mailman/listinfo/opus
>     >
> 
> 
> 
> 
> _______________________________________________
> opus mailing list
> opus at xiph.org
> http://lists.xiph.org/mailman/listinfo/opus
> 



More information about the opus mailing list