From Lorenzo.Peluso at rcslab.it Sat Nov 3 08:36:15 2018 From: Lorenzo.Peluso at rcslab.it (Lorenzo Peluso) Date: Sat, 3 Nov 2018 08:36:15 +0000 Subject: [Vorbis] Encode raw audio samples using Vorbis JAVA Message-ID: <11500f17e1254bb290a5f12e512c1a7f@rcslab.it> Hello, I'm trying to encode a raw audio file (16kHz or 22050Hz, stereo) in an ogg file by using vorbis-java library. I always obtain an error when calling: encoder.vorbis_encode_init_vbr( vorbisInfo, 2, 22050, 1); The error is: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at org.xiph.libvorbis.vorbisenc.get_setup_template(vorbisenc.java:321) at org.xiph.libvorbis.vorbisenc.vorbis_encode_setup_vbr(vorbisenc.java:65) at org.xiph.libvorbis.vorbisenc.vorbis_encode_init_vbr(vorbisenc.java:82) at Vorbis.encode(Vorbis.java:390) at Vorbis.main(Vorbis.java:510) As I understand the library doesn't work for frequency minor then 40000. Is it correct? Is there another way to use that library to encode to other frequency? Thank you in advance. BR, Lorenzo. Il contenuto di questa e-mail e degli eventuali allegati è rivolto unicamente alla persona o all'organizzazione cui è indirizzato e può contenere informazioni la cui riservatezza è tutelata. Se avete ricevuto questa e-mail per errore, siete pregati di non copiarla, di non inviarla ad altre persone e di non usare il suo contenuto o gli eventuali allegati in alcun modo. Vi preghiamo di informare il mittente e di cancellarla dal vostro sistema. This email and any attachments may be confidential and the subject of legal professional privilege. Any disclosure, use, storage or copying of this email without the consent of the sender is strictly prohibited. Please notify the sender immediately if you are not the intended recipient and then delete the email from your inbox and do not disclose the contents to another person, use, copy or store the information in any medium. -------------- next part -------------- An HTML attachment was scrubbed... URL: