search for: vorbis_info

Displaying 20 results from an estimated 49 matches for "vorbis_info".

2005 Jun 25
0
Accessing codec_setup members through a vorbis_info variable
...done the grunt work of converting the 44kHz static code and res book data structures to java classes and want to verify that my data of the Java app matches that of C app. I'm pretty tired so instead of babbling an explanation basiclly what I am looking for from the vorbis encoder_example.c: vorbis_info_init(&vi); ret=vorbis_encode_init_vbr(&vi,2,44100,.5); printf( "long bitrate_nominal = %ld", vi.bitrate_nominal ); printf( "long blocksizes[0] = %ld", vi.codec_setup.blocksizes[0] ); printf( "long blocksizes[1] = %ld", vi.codec_setup.blocksizes[1] ); printf( &...
2000 Dec 08
1
voribs_analysis() question
...is() in parallel with each other. However, as has been briefly alluded on this list before, there is global state that is shared between all vorbis_block instances. Specifically, vorbis_block contains a pointer to the stream's vorbis_dsp_state, which in turn, has a pointer to the stream's vorbis_info. The code under vorbis_analysis gets compilcated quickly (and I'm *not* a math/DSP kind of guy), but I can see that, at the very least, the global vorbis_dsp_state seems to be getting modified in each call to vorbis_analysis(). My question is: is there a way to "simulate" the global...
2004 Sep 07
3
Introducing ov_open_callbacksp and ov_clearp
...if(ret!=0 || (ret=_ov_open2(*vf)) != 0) { ov_clearp(*vf); *vf = NULL; return ret; } return 0; } EXPORT_C int ov_clearp(OggVorbis_File *vf){ ov_clear(vf); if (vf) _ogg_free(vf); return 0; } EXPORT_C int ov_info_basic(OggVorbis_File *vf,int link, int *channels, long *rate) { vorbis_info *vi = ov_info(vf, link); if (vi==NULL) return -1; *channels = vi->channels; *rate = vi->rate; return 0; } Please tell if it interests anybody, if someone want to integrate it and has problem feel free to ask any question (I do not know how I could had that to the lib) Best regards Arm...
2000 Oct 06
3
Vorbis + AVI
hi - does anyone on this list know if it is possible to use the vorbis audio codec in conjunction with an AVI file?? what would it take to do this? are there any apps written for this already, that could prove this codec useful with an AVI?? I can attach MP3 to an AVI of course, but there are many playback problems (mainly sync + crappy sound) with MP3... any of you developers working on
2009 Mar 15
1
Add vorbis_dsp_init() ?
Hi, This mozilla bug report is a crash triggered by a Vorbis file with corrupt headers: https://bugzilla.mozilla.org/show_bug.cgi?id=481601 The patch to fix the crash adds a new vorbis_dsp_init() function to libvorbis, and calls that from fs_vorbis_init() in libfishsound: https://bug481601.bugzilla.mozilla.org/attachment.cgi?id=366150 The public function it adds is: void
2000 Sep 13
1
my vorbis comments
Ok I just finished writing a Vorbis encoder/decoder, and here are some of my comments (I'm sure some of these are well known, but here they are anyway - sorry this is long): 1. vorbis_info: a. Accessing the pre-computed info structs through pointers to static data is messy IMO. I should be able to vorbis_info_init (or similar) an info struct to be exactly the same as info_A, for instance. That way, I could vorbis_clear and free it at the end just like I do for...
2001 Nov 06
2
error in "encoder_example.c"
Hi, Why do I get an error message when i'm running the "encoder_example.c" which is included in the SDK? The error occurs then the 44 bits are read and the vorbis_info struct is initiated (i.e. when the vorbis_encode_init(&vi,2,44100, -1, 128000, -1) - funcion is called. I also tried to read the data from a 16 bits 44,1 KHz stereo PCM - wave file but recived the same error. With Best Regards Johan __________________________________________________ Do You Y...
2004 Aug 06
3
Ogg streams on MacOSX
>I maintain such a page here: > >http://thebasement.org/sound/vorbis_info > >It's probably woefully incomplete. Well, there are only a few more, AFAIK: - The Quinntissential Player [Windows] http://www.quinnware.com/ - Zinf [Windows & Linux] http://www.zinf.org/ - MacAmp [Mac] http://www.subband.com/macamp/ - Audion 3 [Mac] http://www.panic.com/audion/...
2001 Sep 22
3
retrieving "instant" bitrate without vo_open?
...ogg_stream_pagein, ogg_stream_packetout and vorbis_synthesis_headerin. In order to get information from the bitstream i've been using this method because it's fast and doesn't require decoding of the stream. But, i can only retrieve the average bitrate of the ogg stream with the vorbis_info struct. I tried using vo_open but could only retrieve garbage values and it's because i basically dont know how to use it to do the same thing i'm doing here. All i need to do is traverse the entire bitstream, take each packet and look at it's individual bitrate. Can i do this w...
2000 Jun 20
5
Win32 DLL
I've put together a first cut for a Win32 DLL using the BladeEnc interface. Right now, it's just a drop-in replacement for BladeEnc.dll that ignores all encoding parameters passed to it and uses the info_A vorbis_info struct (same as the encoder_example). It's not particularly useful as of yet, but you can rename it to BladeEnc.dll and use it with any number of rippers out there -- you just have to rename the resulting MP3 files to OGG... I'm in the process of updating my ripper to support it as we...
1999 Oct 09
1
Just looking for some information...
In vorbis_info, is int rate; the sampling rate of the data being output or the bitrate of the encoded stream? If it is the sampling rate, is there some way to get the bitrate? (or vice versa) The only other thing I'm in need of is some way to determine (in seconds) the length of a stream... Tony Arcieri...
2000 Jun 21
1
Bitrate voodoo
I've been playing around with the settings for lower, nominal, and upper bitrate in the vorbis_info struct, and no matter what values I set, I get the exact same output as with all three set to zero (ie. the example encoder). Am I correct to assume that the value should be given in bits per second? Or is it in units of Kbps? ___________________________________________________________________...
2000 Jul 26
1
more modes?
Can anyone give me a brief explanation in filling the vorbis_info struct? I need to play around with higher/lower nominal kbps, 1/2 channels and different sample rates..... but donno what other value need to be change (ie modes, maps, times, floors......... ). Thanks Ray --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://w...
2000 Oct 24
1
Perl modules
As promised, I've written vorbis Perl modules (separated into an Ogg Vorbis module and an ao module). You can get tarballs and .debs at http://eyeofdog.org/foof/code/vorbis/ Ogg::Vorbis is an object oriented module based around OggVorbis_File. Ogg::Vorbis::Info is an accessor class to the vorbis_info struct. Comments are retrieved as a simple hash. Since this is based around libvorbisfile it can't write/encode files yet. Includes pogg (Perl ogg), a script for playing and for viewing comments (and eventually encoding and converting between formats). Ao is an object oriented module based a...
2004 Dec 19
1
Crash when reading OGG/Vorbis file
I'm seeing a crash when reading an OGG/Vorbis file. I'm using OGG 1.0 / Vorbis 1.0. The crash occurs in _vds_shared_init because the passed in vorbis_info *vi points to a structure containing all 0s (and thus crashes on the line b->modebits = ilog2(ci->modes); as ci is NULL. Following the stack, I see that _vds_shared_init is called by vorbis_synthesis_init which is called by _make_decode_ready by the line vorbis_syntesis_init(&vf-&g...
2017 Apr 06
2
Zero length reported.
..._O_BINARY); #endif if (ov_open_callbacks (stdin, &vf, NULL, 0, OV_CALLBACKS_NOCLOSE) < 0) { fprintf (stderr, "Input does not appear to be an Ogg bitstream.\n"); exit (1); } { char** ptr = ov_comment (&vf, -1)->user_comments; vorbis_info* vi = ov_info (&vf, -1); while (*ptr) { fprintf (stderr, "%s\n", *ptr); ++ptr; } fprintf (stderr, "\nBitstream is %d channel, %ldHz\n", vi->channels, vi->rate); fprintf (stderr, "Encoded by: %s\n\n&...
2017 Apr 06
2
Zero length reported.
..._O_BINARY); #endif if (ov_open_callbacks (stdin, &vf, NULL, 0, OV_CALLBACKS_NOCLOSE) < 0) { fprintf (stderr, "Input does not appear to be an Ogg bitstream.\n"); exit (1); } { char** ptr = ov_comment (&vf, -1)->user_comments; vorbis_info* vi = ov_info (&vf, -1); while (*ptr) { fprintf (stderr, "%s\n", *ptr); ++ptr; } fprintf (stderr, "\nBitstream is %d channel, %ldHz\n", vi->channels, vi->rate); fprintf (stderr, "Encoded by: %s\n\n&...
2000 Aug 28
2
Book descriptions?
...ome info on the new books? I noticed there are now A-E. What exactly does this mean? How does it translate to higher and lower sampling frequencies and bit rates? Ideally I'd like something in the 11kHZ, 8bit mono area... I also noticed this struct: /* CD quality stereo, no channel coupling */ vorbis_info info_B={ /* channels, sample rate, upperkbps, nominalkbps, lowerkbps */ 0, 2, 44100, 0,0,0, /* smallblock, largeblock */ {256, 2048}, ..... Does this mean I can just start tweaking away by changing the channels, sample rate upper, nominal and lower? I'm guessing no, since I'm prett...
2001 Jul 28
3
Patch for bitrate information in ogginfo
With this patch, ogginfo will display bitrate information (upper/lower/nominal/average bitrate). It is patched against today's CVS code (main branch). I am also working on true VBR support in oggenc (the user can specify the minimum & maximum bitrate) and will send a patch when it's done. <HR NOSHADE> <UL> <LI>application/x-gzip attachment: ogginfo-diff.gz
2003 Sep 14
6
ov_clear(&vorbis) segfaults?
...'ve been having trouble with libvorbisfile. My use of it is fairly simple, but when I try to ov_clear the vorbis file, it segfaults. I can attach or otherwise make availible some demo source code, but for now I'll just pull out relevant lines: //BEGIN PSEUDO CODE OggVorbis_File vorbis; vorbis_info *info; if(ov_open(infile, &vorbis, NULL, 0) != 0) error(); if((info = ov_info(&vorbis, -1)) == NULL) error(); if((availible_chunks[tint]->len = ov_pcm_total(&vorbis, -1)) == OV_EINVAL) error(); while((tulong = ov_read(&vorbis, tuint8p, 4096, endian, 2, 1, &bitstream)) != 0...