search for: vorbisinfo

Displaying 13 results from an estimated 13 matches for "vorbisinfo".

Did you mean: vorbis_info
2002 Aug 03
1
vbr / cbr / abr API calls
Hi, Maybe this is documented somewhere, if so, please send me a link to the documentation. My question is: how to set up different (VBR, CBR, ABR) modes when calling the Ogg Vorbis API? Currently I do: CBR: ret = vorbis_encode_setup_managed( &vorbisInfo, getInChannel(), getOutSampleRate(), -1, getOutBitrate() * 1000, -1) || vorbis_encode_ctl(...
2006 Aug 31
0
OpenAl and Vorbis
...while(!audiobufReady){ //1)try to decode some data while(!audiobufReady){ float **pcm; //if there's pending, decoded audio, grab it if((size=vorbis_synthesis_pcmout(&vorbisDspState,&pcm))>0){ int count=audiobufFill/2; int maxsamples=(fragsize-audiobufFill)/vorbisInfo.channels/2;// /2 int i; for(i=0; i<size && i<maxsamples; i++){ for(int j=0;j<vorbisInfo.channels;j++){ int val=(int) (pcm[j][i]*32767.f); if(val>32767) val=32767; if(val<-32768) val=-32768; audiobuf[count++]=val; } } vorbis_sy...
2002 Aug 20
1
managed mode / max bitrate doesn't have effect
Hi, I'm experimenting with managed mode encoding with specifying maximum bitrate. I call: vorbis_encode_init( &vorbisInfo, 2, 44100, -1, 96000, 96000); to initialize the encoding. To my surprise, it seems the maxbitrate value of 96000 doesn't have an effect, the bitrate of the generated vorbis audio hovers a...
2004 Aug 06
4
vorbis bitrates - offtopic
Hi, I'm experimenting with IceCast2, using DarkIce to generate the stream. I have found some peculiarities with the vorbis bitrates. In DarkIce, I call vorbis_encode_init() with about the following values: vorbis_encode_init( &vorbisInfo, 2, 44100, 96, 96, 96); which by all reasons should generate a 96 kb/s stream, as all max_bitrate, nominal_bitrate and min_bitrate are set to 96. Strangely enough, the generated stream's bitrate (according to XMMS and WinAmp) varies between 49 and 59. If I try to set the same bitrate to a low...
2015 Dec 02
2
A few questions about libvorbis from a newbie
First off, I don't even know if this is the right place to ask these kind of questions, but I haven't been able to find answers anywhere else, so 1. I have found that "pcmTotal * vorbisInfo->channels * 2" gives the uncompressed size of every ogg vorbis file I have used. What is a more robust way of getting the full uncompressed file size? 2. How do I read a certain amount of ms of data? For example, I have been using sizeUncompressed / seconds / 4 (using the above method to g...
2002 Sep 03
1
tremor relicensed as BSD
For those of you not of the commit mailing list, I wanted to point out that monty has checked the fixed-point 'tremor' vorbis decoder into xiph.org cvs, under the usual (free) xiph license. This was developed for use in embedded devices, so if you've been waiting for an interger-only (no fpu) implementation, you might want to give it a try. The code is in the 'Tremor' cvs
2004 Apr 06
1
ov_open fails on Version 1.0.1
...and re-build all, so it's the same the project files for for both builds. Here the snippet of code that fails: int processOGG(FILE *inFile, char fileName [], int fileSize, int fileType) { ogg_int64_t dataLength = 0; PM3ULIST listBuff = 0; OggVorbis_File vf = {0}; vorbis_info *vorbisInfo = NULL; fseek(inFile, 0, SEEK_SET); if (debug > 0) { printf("About to open file as vorbis\n"); } if(ov_open(inFile, &vf, NULL, 0) < 0) { fprintf(stderr, "Failed to open file as vorbis. File ignored '%s'\n", fileName);...
2004 Aug 06
2
vorbis_encode_init() bitrate arguments - offtopic
Hi, It's a bit offtopic for this list, but you might be able to help. For libvorbis rc3, what is the correct bitrate parametrization for the call vorbis_encode_init()? For rc2, it worked calling it the following way: vorbis_encode_init( &vorbisInfo, 2, // two channels 44100, // 44.1kHz -1, 96000, // 96kb/s -1 ); And this produced an Ogg Vorbis stream of about 80 kbps on average. But in...
2001 Oct 16
4
Possible channel coupling bug in encoder
I'm not sure that this is not my fault, but here it goes: I'm trying to encode a 22 kHz Mono stream. I started with the encoder example and made it take dynamic channels etc. This is how I init it: vorbis_info_init(&VorbisInfo); vorbis_encode_init(&VorbisInfo, 1, 22050, -1, 128000, -1); then I get a crash in: _vp_quantize_couple(vorbis_look_psy * 0x01e6a6ec, vorbis_info_mapping0 * 0x017c1988, float * * 0x01ea3ce0, float * * 0x00120754, float * * 0x00120758, int * 0x00120760, int 0) line 1021 + 35 bytes mapping0_for...
2018 Nov 03
0
Encode raw audio samples using Vorbis JAVA
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_...
2004 Aug 06
0
vorbis bitrates - offtopic
> vorbis_encode_init( &vorbisInfo, 2, 44100, 96, 96, 96); > > which by all reasons should generate a 96 kb/s stream, as all > max_bitrate, nominal_bitrate and min_bitrate are set to 96. Strangely > enough, the generated stream's bitrate (according to XMMS and WinAmp) > varies between 49 and 59. Currently min an...
2004 Aug 06
0
vorbis_encode_init() bitrate arguments - offtopic
..., you wrote: >Hi, > >It's a bit offtopic for this list, but you might be able to help. For >libvorbis rc3, what is the correct bitrate parametrization for the call >vorbis_encode_init()? > >For rc2, it worked calling it the following way: > >vorbis_encode_init( &vorbisInfo, > 2, // two channels > 44100, // 44.1kHz > -1, > 96000, // 96kb/s > -1 ); > >And this produced an Ogg Vorbis stream of about...
2009 Feb 24
0
any help with pyogg and pyvorbis?
...____________________________ #!/usr/bin/env python '''An example of encoding using the Python wave module''' import ogg.vorbis, wave fout = open('out.ogg', 'wb') inwav = wave.open('in.wav','rb') channels = inwav.getnchannels() vd = ogg.vorbis.VorbisInfo(channels = channels, rate = inwav.getframerate(), quality = 0.2).analysis_init() os = ogg.OggStreamState(5) map(os.packetin, vd.headerout()) og = os.flush() while og: og.writeout(fout) og = os.flush() nsamples = 1024 eos = 0 total = 0 w...