Hi all, I am just coming in the mailing list.... ;-) I'm working on an Ripper/Encoder for GNUstep. At first sight, libvorbisogg seems to be the library that I needed. The problem for me is documentation. So I have a few question about this library : - in order to init an encoding process, we need to provide channels. Well, what does is mean ? - in order to init an encoding process, we need to provide rate ... What is this rate in comparison with bitrate ? is it 48khz ? so I have to put 48 ? - I would like to get the real time rate of encoding : Is it possible with libvorbisogg ? And finally, is there any very simple example using libvorbisenc ? Many thanks for your help !!! Stéphane PERON Ps : This my second post of the message.. sorry you have already received it. <p>Ce message contient des informations confidentielles ou appartenant au Crédit Lyonnais et est établi à l'intention exclusive de ses destinataires. Toute divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, doit être préalablement autorisée. Tout message électronique est susceptible d'altération et son intégrité ne peut être assurée. Le Crédit Lyonnais décline toute responsabilité au titre de ce message s'il a été modifié ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur de l'erreur de distribution et de la destruction du message. This e-mail contains confidential information or information belonging to Crédit Lyonnais and is intended solely for the addressees. The unauthorised disclosure, use, dissemination or copying (either whole or partial) of this e-mail, or any information it contains, is prohibited. E-mails are susceptible to alteration and their integrity cannot be guaranteed. Crédit Lyonnais shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
At 11:50 AM 2/20/02 +0100, you wrote:>Hi all, > >I am just coming in the mailing list.... ;-) > >I'm working on an Ripper/Encoder for GNUstep. >At first sight, libvorbisogg seems to be the library that I needed.This is a bit confusing - there are two main libraries, libogg, and libvorbis. They're seperate and independent. I don't know what exactly you mean by 'libvorbisogg'.>The problem for me is documentation.Yes, the documentation is lacking - we have limited resources.>So I have a few question about this library : >- in order to init an encoding process, we need to provide channels. Well, >what does is mean ?The number of channels in your input audio - i.e. 1 for mono, 2 for stereo, etc.>- in order to init an encoding process, we need to provide rate ... What is >this rate in comparison with bitrate ? >is it 48khz ? so I have to put 48 ?Sampling rate. For CD audio, this is 44100. 48000 is another fairly common value. Whatever you're getting the audio from (a wav file, for example) will have this information. It's independent of bitrate, though obviously a higher sampling rate means more information, which means a higher bitrate. Values are in Hertz (Hz).> >- I would like to get the real time rate of encoding : Is it possible with >libvorbisogg ?libvorbis will just encode the data for you - if you want to find out how fast it is encoding, you have to track that information seperately (as oggenc does, for example).> >And finally, is there any very simple example using libvorbisenc ?In the source tree, look at vorbis/example/encoder_example.c - that's a simple and minimal example (though it doesn't show how to do managed bitrates, you needn't bother with that for a first version). <p>Michael <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Many thanks for you help Michael,>From the encoder_example.c source, I have added ogg support in myapplication. And it works very well .... But I have two questions : - You say that I can track information like in oggenc ... Well, I have read its sources but It is not very clear for me... When I study update_statistics_full ... It seems to be call for each file .....And it far from clear for me ... Sorry I am not a very good programmer ..... Would it be possible to have an easy example to track information like the encoding progression for one file ? - When I see the .ogg that are created, I note that for the same original wave file, they have not the same size ... Do am I wrong ? Many thanks again for your work and your help ... Stéphane PERON> >Hi all, > > > >I am just coming in the mailing list.... ;-) > > > >I'm working on an Ripper/Encoder for GNUstep. > >At first sight, libvorbisogg seems to be the library that I needed. > > This is a bit confusing - there are two main libraries, libogg, and > libvorbis. They're seperate and independent. I don't know what exactly > you mean by 'libvorbisogg'. > > >The problem for me is documentation. > > Yes, the documentation is lacking - we have limited resources. > > >So I have a few question about this library : > >- in order to init an encoding process, we need to provide channels. > Well, > >what does is mean ? > > The number of channels in your input audio - i.e. 1 for mono, 2 for > stereo, > etc. > > >- in order to init an encoding process, we need to provide rate ... What > is > >this rate in comparison with bitrate ? > >is it 48khz ? so I have to put 48 ? > > Sampling rate. For CD audio, this is 44100. 48000 is another fairly common > value. Whatever you're getting the audio from (a wav file, for example) > will have this information. It's independent of bitrate, though obviously > a higher sampling rate means more information, which means a higher > bitrate. Values are in Hertz (Hz). > > > > >- I would like to get the real time rate of encoding : Is it possible > with > >libvorbisogg ? > > libvorbis will just encode the data for you - if you want to find out > how fast it is encoding, you have to track that information seperately > (as oggenc does, for example). > > > > >And finally, is there any very simple example using libvorbisenc ? > > In the source tree, look at vorbis/example/encoder_example.c - that's > a simple and minimal example (though it doesn't show how to do > managed bitrates, you needn't bother with that for a first version). > > > Michael > > > --- >8 ---- > List archives: http://www.xiph.org/archives/ > Ogg project homepage: http://www.xiph.org/ogg/ > To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' > containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered.<p>Ce message contient des informations confidentielles ou appartenant au Crédit Lyonnais et est établi à l'intention exclusive de ses destinataires. Toute divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, doit être préalablement autorisée. Tout message électronique est susceptible d'altération et son intégrité ne peut être assurée. Le Crédit Lyonnais décline toute responsabilité au titre de ce message s'il a été modifié ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur de l'erreur de distribution et de la destruction du message. This e-mail contains confidential information or information belonging to Crédit Lyonnais and is intended solely for the addressees. The unauthorised disclosure, use, dissemination or copying (either whole or partial) of this e-mail, or any information it contains, is prohibited. E-mails are susceptible to alteration and their integrity cannot be guaranteed. Crédit Lyonnais shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> Brief description: > > When you open the input file, you need to find out how long it is (in > seconds, or in samples - either is easy). >Well .. I am sorry ... I don't know anything in vorbis ..... In the example, is corresponding to the variable i in the beginning of the code ? : for (i=0, founddata=0; i<30 && ! feof(stdin) && ! ferror(stdin); i++) { fread(readbuffer,1,2,stdin); if ( ! strncmp(readbuffer, "da", 2) ) { founddata = 1; fread(readbuffer,1,6,stdin); break; } } <p>> For figuring out how far through the file you are, then, you just need> to track how many samples you've encoded (where 'encoding' in this context > means submitting to libvorbis to encode). The percent done is then > samples_submitted/total_samples. >Ok .. Is "samples_submitted" correponding to variable i in the main loop ? : for (i=0, founddata=0; i<30 && ! feof(stdin) && ! ferror(stdin); i++) { fread(readbuffer,1,2,stdin); if ( ! strncmp(readbuffer, "da", 2) ) { founddata = 1; fread(readbuffer,1,6,stdin); break; } } Sorry for these questions of a beginner using vorbis libraries.... Many Thanks Stéphane PERON <p>Ce message contient des informations confidentielles ou appartenant au Crédit Lyonnais et est établi à l'intention exclusive de ses destinataires. Toute divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, doit être préalablement autorisée. Tout message électronique est susceptible d'altération et son intégrité ne peut être assurée. Le Crédit Lyonnais décline toute responsabilité au titre de ce message s'il a été modifié ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur de l'erreur de distribution et de la destruction du message. This e-mail contains confidential information or information belonging to Crédit Lyonnais and is intended solely for the addressees. The unauthorised disclosure, use, dissemination or copying (either whole or partial) of this e-mail, or any information it contains, is prohibited. E-mails are susceptible to alteration and their integrity cannot be guaranteed. Crédit Lyonnais shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Hi I am trying the vorbis_encode example on Mac 9.04 with CW7. When I made a little bit change to the example, it crashed. Here is what I did. int main() { int i; for (i = 0; i < 3; i++) vorbis_encoder_example(); return (0); } igned char readbuffer[READ*4+44]; void vorbis_encode_example() { /* paste the encoder_example's code here */ .................. } As you can see, the change is limited. When I execute the program, when i =0 everything is ok, however, when i =1 I got an unmapped memory exception on vorbis_info_clear(&vi); I tried this on different stationary like carbon and standard C. Same thing happened. And the source code for encoder_example is from RC3. I have no idea at all, could anyone give me a hand? <p>Regards Eric Liu _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.