search for: vorbis_info_clear

Displaying 15 results from an estimated 15 matches for "vorbis_info_clear".

2013 Aug 18
1
vorbis_info_clear important?
...using a Windows development component which uses vorbis.dll, ogg.dll, vorbisenc.dll for encoding a file. When finishing a recording, the component runs these functions... ogg_stream_clear(OggSS); vorbis_block_clear(VBlock); vorbis_dsp_clear(Vdsp); vorbis_comment_clear(VComm); vorbis_info_clear(VInfo); I'm occasionally receiving a hang in the function vorbis_info_clear(vinfo) which goes to 100% CPU indefinitely. I'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 s...
2012 May 14
0
Memory Leak in vorbis_info_clear()
I'm having trouble tracking down why it leaks, but below is an example program which shows--using valgrind--that vorbis_info_clear() leaks memory if called before vorbis_dsp_clear(), but not if called after vorbis_dsp_clear(). Just compile and run under valgrind, using the -l switch to the example program to trigger a leak. Tested under OS X 10.7 and Ubuntu 12.04. This may be by design, or just, "don't do that"....
2009 May 12
2
compile error of libtheora example
...er_example.c:(.text+0x13fc): undefined reference to `theora_comment_clear' player_example.c:(.text+0x1419): undefined reference to `vorbis_synthesis_init' player_example.c:(.text+0x142d): undefined reference to `vorbis_block_init' player_example.c:(.text+0x146e): undefined reference to `vorbis_info_clear' player_example.c:(.text+0x147a): undefined reference to `vorbis_comment_clear' player_example.c:(.text+0x14cf): undefined reference to `vorbis_synthesis_pcmout' player_example.c:(.text+0x157d): undefined reference to `rint' player_example.c:(.text+0x1646): undefined reference to `v...
2004 Aug 06
0
Stream with Ices2 sound very metallic
...if (ret) { LOG_ERROR6("Failed to configure managed encoding for " "%d channel(s), at %d Hz, with bitrates %d max %d " "nominal, %d min. Error code=%d", channels, rate, max_br, nom_br, min_br,ret); vorbis_info_clear(&s->vi); free(s); return NULL; } } else { int ret = vorbis_encode_setup_vbr(&s->vi, channels, rate, quality*0.1); if (ret) { LOG_ERROR4("Failed to configure VBR encoding for %d channel(s), "...
1999 Oct 12
3
xmms module update
Since the decoding went so much faster, I actually listened to the song I encoded all the way to the end, at which point the thing segv'd. Through a little easter egging, I managed to trace the problem down to a call to vorbis_dsp_clear(). I've just commented it out in the current source. As to why it's segving I am uncertain, but, save possible memory leaks, everything seems to be
2001 Sep 02
0
Encoding process
...if no page available: 29 break 30 write page to file 31 if nothing written: 32 fatal error 33 check if end of stream -- ogg_page_eos() 34 clear stream -- ogg_stream_clear() 35 clear block -- vorbis_block_clear() 36 clear dsp -- vorbis_dsp_clear 37 clear info -- vorbis_info_clear() --- First of all, is the above correct? If not please let me know. Second, I want to partition the above process into multiple functions i.e., so that the "forever:" part on line 16 is handled outside. I just want to verify that I have my ideas correct: 1) Lines 1 through 8 in initia...
2005 Aug 05
1
debugging question.
...(vi->rate<1)goto err_out; 213 if(vi->channels<1)goto err_out; 214 if(ci->blocksizes[0]<8)goto err_out; 215 if(ci->blocksizes[1]<ci->blocksizes[0])goto err_out; 216 217 if(oggpack_read(opb,1)!=1)goto err_out; /* EOP check */ 218 219 return(0); 220 err_out: 221 vorbis_info_clear(vi); 222 return(OV_EBADHEADER); 223 } after single stepping till line 208, i am able to print vi->channels, version, bitrates etc. However i am NOT able to print the value of ci->blocksizes[0], [1]. I tried all combinations as listed below gdb) print ci->blocksizes[1] No symbol "...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...- info.audioflag = 1; + info->audioflag = 1; flushloop=1; } if(e_o_s) @@ -322,16 +320,16 @@ } } -void theoraframes_close (){ - ogg_stream_clear (&info.vo); - vorbis_block_clear (&info.vb); - vorbis_dsp_clear (&info.vd); - vorbis_comment_clear (&info.vc); - vorbis_info_clear (&info.vi); +void theoraframes_close (theoraframes_info *info){ + ogg_stream_clear (&info->vo); + vorbis_block_clear (&info->vb); + vorbis_dsp_clear (&info->vd); + vorbis_comment_clear (&info->vc); + vorbis_info_clear (&info->vi); - ogg_stream_clear (&in...
2007 Aug 10
5
[Patch] Const correct tags functions
...odified. The following patch (against SVN head) makes the libvorbis const correct. Cheers, Erik ---------------8<---------------8<---------------8<--------------- --- include/vorbis/codec.h (revision 13502) +++ include/vorbis/codec.h (working copy) @@ -166,11 +166,11 @@ extern void vorbis_info_clear(vorbis_info *vi); extern int vorbis_info_blocksize(vorbis_info *vi,int zo); extern void vorbis_comment_init(vorbis_comment *vc); -extern void vorbis_comment_add(vorbis_comment *vc, char *comment); +extern void vorbis_comment_add(vorbis_comment *vc, const char *comment); extern v...
1999 Oct 04
3
Detailed decoder pseudocode (was: Re: ETA?)
...; } /* clean up and exit (this example doesn't deal with the possibility of chaining logical streams) */ ogg_sync_clear(&oy); ogg_stream_clear(&os); /* ogg_page and ogg_packet structs always point to storage in libvorbis. They're never freed or manipulated directly */ vorbis_info_clear(&vi); vorbis_synthesis_clear(&vd); vorbis_block_clear(&vb); exit(0); --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...ly broken. // CAUTION: If you do not manage to do a clean vorbis_synthesis_init // these functions will have nasty malloc/free problems. You may *NOT* // just clear these and hope for the best. It doesn't work. // // Originally, I was calling vorbis_synthesis_init too early and then // vorbis_info_clear was throwing malloc/free failures. */ vorbis_block_clear(vb); vorbis_dsp_clear(vd); // Inverse of vorbis_synthesis_init() ??? vorbis_comment_clear(vc); vorbis_info_clear(vi); } } /* This while loop iterates over ogg pages */ } /* This while loop iterates over ogg logical streams...
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 Mar 14
2
Ogg in MP4 file, Unexpected result from _vorbis_unpack_books
...VI_WINDOWB)goto err_out; fprintf(stderr,"i = %d mapping =%d maps=%d\n",i, ci->mode_param[i]->mapping,ci->maps); if(ci->mode_param[i]->mapping>=ci->maps)goto err_out; } if(oggpack_read(opb,1)!=1)goto err_out; /* top level EOP check */ return(0); err_out: vorbis_info_clear(vi); return(ci->maps); return(OV_EBADHEADER); ---------------------------------------------------------------- The fprintf line is mine and the output for packet no 3 is i = 0 mapping =0 maps=2 i = 1 mapping =96 maps=2 which makes the code return OV_EBADHEADER Is this to...
2002 Aug 06
0
Getting a GUI to work with Vorbis code
...her [chained] */ ogg_stream_clear(&os); /* ogg_page and ogg_packet structs always point to storage in libvorbis. They're never freed or manipulated directly */ vorbis_block_clear(&vb); vorbis_dsp_clear(&vd); vorbis_comment_clear(&vc); vorbis_info_clear(&vi); /* must be called last */ } /* OK, clean up the framer */ ogg_sync_clear(&oy); fprintf(outputFile,"Done.\n"); // TODO: Add your control notification handler code here } <p>I changed the input from stdin to a file. When I build the projec...
2004 Aug 06
5
Stream with Ices2 sound very metallic
Hi, I don't know why, but the stream generated by ices sounds very metallic, compared to the radio, and compared to a stream of the same quality with darkice. I tried different parameters, but it doesn't change. My parameters are : <input> <module>oss</module> <param name="rate">44100</param> <!-- samplerate --> <param