search for: vorbis_info_init

Displaying 20 results from an estimated 21 matches for "vorbis_info_init".

2000 Oct 02
1
state of cvs
if you're going to compile vorbis you'll need the following modules ogg vorbis if you're goin to compile the plugins you'll also need vorbis-plugins if you're going to compile the tools you'll need ao vorbis-tools all of these should build with exception of ao and vorbis-plugins. There were some problems from the merge that I didn't catch before leaving for
2013 Aug 18
1
vorbis_info_clear important?
...ve tried different compiles of vorbis.dll without success. I've checked the VInfo structure has valid information. Rather than trying to fix the problem, can I simply skip this function when closing the file. It seems to work but I'm wondering if there will be a memory leak if there is a vorbis_info_init without a matching vorbis_info_clear? Thanks, Ross.
2000 Oct 18
1
Building on BeOS part 3
...to compile with gcc -nostart vorbisfile.o -L/boot/home/config/lib -logg -Wl,-soname - Wl,libvorbisfile.so -o .libs/libvorbisfile.so with gives me a load of undefined reference errors such as vorbisfile.o: In function `_fetch_headers': vorbisfile.o(.text+0x6c8): undefined reference to `vorbis_info_init' vorbisfile.o(.text+0x6d1): undefined reference to `vorbis_comment_init' Now I can 'fix' this manually by adding -L./libs -lvorbis (or the other .o files but I think the former is better), but I'd like to work out why this isn't building directly from the makefile. I use...
2002 Mar 14
2
Ogg in MP4 file, Unexpected result from _vorbis_unpack_books
...gg/Vorbis audio for MPEG-4 streaming. So far I have managed to make the encoder save Ogg packets as an Audio object in an .mp4 file. As a side effect, it can also save Ogg pages in an .ogg file playable by xmms, but that's no big deal. So what I'm doing is this. First the init part. a) vorbis_info_init b) vorbis_encode_init c) vorbis_comment_init d) vorbis_comment_add_tag e) ogg_stream_init f) vorbis_analysis_headerout g) ogg_stream_packetin for the header, the header_comment and the header_code Then the encode part a) sample pcm and hand it to encode code b) get buffer space w...
2000 Sep 13
1
my vorbis comments
...nished 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 vorbis_info's which come from a vorbis file b. A function which compares two vorbis_info structs, to see if they are equiva...
2009 May 12
2
compile error of libtheora example
...: undefined reference to `ogg_stream_pagein' player_example.c:(.text+0xd00): undefined reference to `ogg_stream_pagein' /tmp/ccpyle3c.o: In function `main': player_example.c:(.text+0xe17): undefined reference to `ogg_sync_init' player_example.c:(.text+0xe23): undefined reference to `vorbis_info_init' player_example.c:(.text+0xe2f): undefined reference to `vorbis_comment_init' player_example.c:(.text+0xe3b): undefined reference to `theora_comment_init' player_example.c:(.text+0xe47): undefined reference to `theora_info_init' player_example.c:(.text+0xe86): undefined reference to...
2004 Aug 06
0
DarkIce make problem
...ving directory `/usr/src/download/darkice-0.6' > make: *** [all-recursive-am] Error 2 Are you sure you've done `make install' for lame, libogg, and libvorbis? When you run ./configure, you should get the following lines: checking for ogg_stream_init in -logg... yes checking for vorbis_info_init in -lvorbis... yes checking for vorbis_encode_init in -lvorbisenc... yes checking for lame_init in -lmp3lame... yes If any of these say "no" rather than yes, then the build process won't be able to find your libs for that package. I got this error when I forgot to run `make insta...
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( "...
2012 May 14
0
Memory Leak in vorbis_info_clear()
.../* getopt(3) */ #include <vorbis/codec.h> #include <vorbis/vorbisenc.h> static struct vorbis_info info; static struct vorbis_dsp_state dsp; static struct vorbis_comment comment; static struct vorbis_block block; void init(void) { struct { ogg_packet ident, comment, setup; } pkt; vorbis_info_init(&info); vorbis_encode_init_vbr(&info, 2, 44100, 1.0); vorbis_analysis_init(&dsp, &info); vorbis_comment_init(&comment); vorbis_analysis_headerout(&dsp, &comment, &pkt.ident, &pkt.comment, &pkt.setup); vorbis_block_init(&dsp, &block); } /* init(...
2001 Sep 02
0
Encoding process
...e encoding process and I'm about to have an aneurysm :P I've gone through oggenc.c, encode.c, and audio.c and I think I have a basic idea of what happens. I got it down in pseudocode as follows: --- 1 get parameters 2 init vorbis_comment -- vorbis_comment_init() 3 init vorbis_info -- vorbis_info_init() 4 start encoding with info and params -- vorbis_encode_init() 5 init vorbis_dsp_state from info -- vorbis_analysis_init() 6 init vorbis_block from dsp -- vorbis_block_init() 7 init ogg_stream_state with serial -- ogg_stream_init() 8 fill vorbis_comment -- vorbis_comment_add() 9 create heade...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...dio_only){ + ogg_stream_init (&info->to, rand ()); /* oops, add one ot the above */ + theora_encode_init (&info->td, &info->ti); + theora_info_clear (&info->ti); } /* init theora done */ /* initialize Vorbis too, if we have audio. */ - if(!info.video_only){ - vorbis_info_init (&info.vi); + if(!info->video_only){ + vorbis_info_init (&info->vi); /* Encoding using a VBR quality mode. */ int ret; - if(info.vorbis_quality>-99) - ret =vorbis_encode_init_vbr (&info.vi, info.channels,info.sample_rate,info.vorbis_quality); + if(info->vorbis_q...
2003 Jun 16
2
using win32 static libs
....h" #pragma comment(lib,"oggvorbis\\ogg_static.lib") #pragma comment(lib,"oggvorbis\\vorbis_static.lib") #pragma comment(lib,"oggvorbis\\vorbisenc_static.lib") void COgg2Wav::Convert(CString strWavPath, CString strOggPath) { vorbis_info vi; vorbis_info_init(&vi); // here comes *the* code, when i'm done with the linker-issue ;) } ---------------------------------------------------------------------- the compiler runs fine but the linker complains: ---------------------------------------------------------------------- OggVorbisTest error...
2001 Oct 06
3
DarkIce make problem
Using RH71. Got Lame, Vorbis, gcc3 and everything installed. When I try to make DarkIce I get this error. Can anyone help? $ make make all-recursive make[1]: Entering directory `/usr/src/download/darkice-0.6' Making all in src make[2]: Entering directory `/usr/src/download/darkice-0.6/src' c++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -c DarkIce.cpp In file included from
2000 May 01
2
Bug fix, win32 stuff
There was a bug in the new ov_open_callbacks where it would not zero out some member variables of the file info struct, and if a file was not successfully opened this would cause a crash at destruct time. Fixed. I've also made some changes so that vorbis will compile cleanly under win32 without one having to muck around with it. I have added a "vorbis_vc6" directory which contains
1999 Oct 04
3
Detailed decoder pseudocode (was: Re: ETA?)
...bitstream is in fact Vorbis data */ /* I handle the initial header first instead of just having the code read all three Vorbis headers at once because reading the initial header is an easy way to identify a Vorbis bitstream and it's useful to see that functionality seperated out. */ vorbis_info_init(&vi); if(ogg_stream_pagein(&os,&og)<0){ /* error; stream version mismatch perhaps */} if(ogg_stream_packetout(&os,&op)!=1){ /* no page? must not be vorbis */} if(vorbis_info_headerin(&vi,&op)<0){ /* error case; not a vorbis header */} /* At this point, we're s...
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 by...
2007 May 01
1
contstant bittrate mode - block size - packet size
...ounddata=0; i<30 && ! feof(fp_infile) && ! ferror(fp_infile); i++) { fread(readbuffer,1,2,fp_infile); if ( ! strncmp((char*)readbuffer, "da", 2) ) { founddata = 1; fread(readbuffer,1,6,fp_infile); break; } } vorbis_info_init(&vi); //ret = vorbis_encode_init(&vi,2,44100,3*128000,3*128000,3*128000);//setup for constant bittrate //vorbis_encode_ctl(&vi,OV_ECTL_RATEMANAGE_HARD,&rma); //ret=vorbis_encode_init_vbr(&vi,2,44100,0.1); //ret = vorbis_encode_init(&vi,2,44100,-1,128000,-1); // re...
2015 May 18
5
Writting 16-bit PCM data to Ogg.
Hi Developers, I have a 16-bit PCM data buffer, I want to write that to ogg file. Could you help me to understand how to write pcm data to the ogg? Thanks in advance. Arun balaji -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20150518/6c8c9a63/attachment.htm
2002 Aug 06
0
Getting a GUI to work with Vorbis code
...data */ /* I handle the initial header first instead of just having the code read all three Vorbis headers at once because reading the initial header is an easy way to identify a Vorbis bitstream and it's useful to see that functionality seperated out. */ vorbis_info_init(&vi); vorbis_comment_init(&vc); if(ogg_stream_pagein(&os,&og)<0){ /* error; stream version mismatch perhaps */ fprintf(outputFile,"Error reading first page of Ogg bitstream data.\n"); exit(1); } if(ogg_stream_packetout(&os,&am...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...is only one physical stream here. Do *NOT* reinitialize // it upon changing logical streams or you will lose any data which // has already been read and buffered by the ogg system. */ while(!flgBailError) { /* This while loop iterates over ogg logical streams */ /* Vorbis init */ vorbis_info_init(vi); vorbis_comment_init(vc); /* Page iteration init */ flgInitialPageRead = 0; packetCount = -1; flgEOSPage = 0; /* // This is probably redundant with flgEOSPage. However, it is // easier to keep track of a separate flag which is set only // after all packet...