Hi Jean The problem is that for using this package I need to use all the libs like ogg, even Speex?, no, and also where i can find an easy example like opus_demo.c to create the .opus file Greetings Toni 2013/10/28 Jean-Marc Valin <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 > > http://lists.xiph.org/mailman/listinfo/opus > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20131028/64398ece/attachment.htm
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 fileThere'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 >
Thanks for your help, I will follow that, so in order to sum up I need: - libopus 1.0.3 compiled as static or shared library - libogg 1.3.1 compiled as static or shared library - opus-tools 0.1.7 and then follow the example in opus-tools opusenc.c to get things ready, because if I try to compile opus-tools, this ask for me for the speex library, and other things I think that that will we all. Thanks Toni 2013/10/28 Jean-Marc Valin <jmvalin at jmvalin.ca>> 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 > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20131028/2b15e39f/attachment.htm