search for: vorbis_analysis_wrote

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

2007 Sep 17
1
How To Encode Realtime
Hi, ??Forgive my poor English, I'm trying to implement a net phone using vorbis codec, which need realtime encode and decode the stream. The problem is, I use vorbis_analysis_buffer() and vorbis_analysis_wrote() push the PCM data in, then use vorbis_analysis_blockout(&vd, &vb) to output a block, it can't output all the data. It seems that some data which length is constant, must be in the vorbis_dsp_state, can not be output. When Decode, there's similar problem. These lead time lapse. I...
2005 Nov 16
1
Crash in mdct_forward
...haps my entire vorbis configuration is broken before the vorbis_analysis_blockout call - this would explain the crash Here is some logging of the vorbis APIs that are being called before the crash happens:- 88.675 Called vorbis_analysis_buffer with int vals = 1024 88.675 Called vorbis_analysis_wrote with vals = 1024 88.675 about to call vorbis_analysis_blockout (returned 0) 88.700 Called vorbis_analysis_buffer with int vals = 1024 88.700 Called vorbis_analysis_wrote with vals = 1024 88.700 about to call vorbis_analysis_blockout (returned 0) 88.725 C...
2005 Nov 16
1
Crash in mdct_forward
...haps my entire vorbis configuration is broken before the vorbis_analysis_blockout call - this would explain the crash Here is some logging of the vorbis APIs that are being called before the crash happens:- 88.675 Called vorbis_analysis_buffer with int vals = 1024 88.675 Called vorbis_analysis_wrote with vals = 1024 88.675 about to call vorbis_analysis_blockout (returned 0) 88.700 Called vorbis_analysis_buffer with int vals = 1024 88.700 Called vorbis_analysis_wrote with vals = 1024 88.700 about to call vorbis_analysis_blockout (returned 0) 88.725 C...
2002 Mar 14
2
Ogg in MP4 file, Unexpected result from _vorbis_unpack_books
...aderout 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 with vorbis_analysis_buffer c) convert 16 bit signed pcm to float and place in buffer d) tell data size submitted with vorbis_analysis_wrote then go back to a) In another thread I do a) submit ogg packet header(header and data) to MP4 save routine b) submit ogg packet header_comment (header and data) to MP4 save routine c) submit ogg packet header_code (header and data) to MP4 save routine d) Get Ogg page(s) containing the h...
2006 Sep 11
4
encode, decode and encode again
(I've already posted this message month ago, but nobody answered, may be it was not delivered to newsgroup?) Hello, All. I wrote an encoder-decoder based on example from OGG-Vorbis SDK. This encoder can encode a large amount of small WAV-files with equal parameters into one sound archive. Then I decode this sound archive back into large amount of small WAV-files. Theese files are
2001 Sep 02
0
Encoding process
...ed to be flushed from stream: -- ogg_stream_flush() 12 flush stream to page -- above 13 write page to file -- fwrite() 14 if nothing written: 15 fatal error 16 forever: 17 get buffer from dsp -- vorbis_analysis_buffer() 18 get some data into buffer 19 if no data: 20 flush dsp -- vorbis_analysis_wrote(..., 0) 21 else: 22 tell dsp how much data in buffer -- vorbis_analysis_wrote() 23 while blocks from dsp to analyze: -- vorbis_analysis_blockout() 24 analyze block into packet -- vorbis_analysis() 25 dump packet into stream -- ogg_stream_packetin() 26 while not end of stream: 27...
2009 Dec 12
1
Skipping of sample in ogg writing
...i]; const int* const src = samplesToWrite [i]; if (src != 0 && dst != 0) { for (int j = 0; j < numSamples; ++j) dst[j] = (float) src[j]; } } } vorbis_analysis_wrote (&vd, numSamples); while (vorbis_analysis_blockout (&vd, &vb) == 1) { vorbis_analysis (&vb, 0); vorbis_bitrate_addblock (&vb); while (vorbis_bitrate_flushpacket (&vd, &op)) { ogg_s...
2009 Dec 12
1
Skipping of sample in ogg writing
...i]; const int* const src = samplesToWrite [i]; if (src != 0 && dst != 0) { for (int j = 0; j < numSamples; ++j) dst[j] = (float) src[j]; } } } vorbis_analysis_wrote (&vd, numSamples); while (vorbis_analysis_blockout (&vd, &vb) == 1) { vorbis_analysis (&vb, 0); vorbis_bitrate_addblock (&vb); while (vorbis_bitrate_flushpacket (&vd, &op)) { ogg_s...
2003 Nov 08
2
Encoding in Delphi - Help
...OutFile.Write(Pointer(og.header)^, og.header_len); OutFile.Write(Pointer(og.body)^, og.body_len); result := ogg_stream_flush(os, og); end; eos := false; while not eos do begin bytes := InFile.Read(readbuffer, SAMPLES*4); if bytes = 0 then begin fix; vorbis_analysis_wrote(vd,0); end else begin fix; buffer := vorbis_analysis_buffer(vd, SAMPLES); // uninterleave_little_endian(buffer,@readbuffer[0],bytes div 4); uninterleave(buffer,@readbuffer[0],bytes div 4); vorbis_analysis_wrote(vd, bytes div 4); end; fix;...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...6_t * buffer, int bytes, int samples, int e_o_s){ +int theoraframes_add_audio (theoraframes_info *info, int16_t * buffer, int bytes, int samples, int e_o_s){ int i,j, count = 0; float **vorbis_buffer; if (bytes <= 0 && samples <= 0){ /* end of audio stream */ if(e_o_s) - vorbis_analysis_wrote (&info.vd, 0); + vorbis_analysis_wrote (&info->vd, 0); } else{ - vorbis_buffer = vorbis_analysis_buffer (&info.vd, samples); + vorbis_buffer = vorbis_analysis_buffer (&info->vd, samples); /* uninterleave samples */ for (i = 0; i < samples; i++){ - for(j=0;j&...
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
2001 Sep 28
0
Borland compiler issues
...I had to change code in mapping0_forward() from: zerobundle[0]=alloca(sizeof(int)*vi->channels); to: z=alloca(sizeof(int)*vi->channels); /* int *z; */ zerobundle[0]=z; I'm considering that yet another Borland compiler bug. Another problem I found is that in vorbis_analysis_wrote(), the line vorbis_lpc_predict(lpc,v->pcm[i]+v->eofflag-order,order, v->pcm[i]+v->eofflag,v->pcm_current-v->eofflag); the final parameter "v->pcm_current-v->eofflag" evaluates to a huge value (33MB+) at the end of a file, so that in vorbis...
2012 Aug 07
1
Help!
Hello, I'm a student now using libvorbis in my project. I aim to record voice through APIs in winmm.lib in wav buffer, and than encode the raw data in wav buffer and save as ogg file. The wav buffer is offered in a pipeline scheme, and in order to save memory, when a wav buffer is full, I start a new thread to process encoding through libvorbis. Problem is, when wav buffer is full and
2002 Jan 02
2
RC3 Changes needed for MacOS
...=================================================================== RCS file: /usr/local/cvsroot/vorbis/mac/libvorbis.mcp.exp,v retrieving revision 1.2 diff -u -r1.2 libvorbis.mcp.exp --- mac/libvorbis.mcp.exp 2000/11/22 06:15:19 1.2 +++ mac/libvorbis.mcp.exp 2002/01/03 07:21:48 @@ -23,6 +23,8 @@ vorbis_analysis_wrote vorbis_analysis_blockout vorbis_analysis +vorbis_bitrate_addblock +vorbis_bitrate_flushpacket # Vorbis PRIMITIVES: synthesis layer @@ -43,10 +45,10 @@ _vi_psy_copy _vp_compute_mask -_vp_apply_floor ### From "xxx.h" (for VorbisEncLib) _time_P _floor_P _residue_P _ma...
2003 Sep 11
1
Flushing audio
...float **buffer = vorbis_analysis_buffer(&dsp_state, vals); for(int i=0;i<vals;i++){ buffer[0][i] = ((buf[i*2 + 1] << 8) | (0x00ff & (int) buf[i*2])) / 32768.f; } vorbis_analysis_wrote(&dsp_state, vals); while(vorbis_analysis_blockout(&dsp_state, &vblock) == 1){ ogg_packet ogg_pkt; vorbis_analysis(&vblock, &ogg_pkt); ogg_stream_packetin(&ogg_stream, &ogg_pkt); while(1){...
2017 Jan 04
1
Vorbis encoding at half speed
Echoing Hiroka, who is likely on the right track. Simply telling the encoder 'one channel' and then passing stereo data will not convert the stereo data to mono. The encoder encodes whatever it is given... Monty On Tue, Jan 3, 2017 at 6:51 PM, IHARA Hiroka <ihara_h at live.jp> wrote: > Hello Ross, > > The attachment appears at least to me as a valid monaural Vorbis
2002 Mar 27
1
What exactly is threadsafe
...eads right now, and I want to know if the threads all need their own little vorbis encoders running in them or what exactly is threadsafe in vorbis? So here are the functions that would be called from many threads of with buffer = vorbis_analysis_buffer( &m_vorbisDsp, 4*DATA_CHUNK_SIZE ); vorbis_analysis_wrote( &m_vorbisDsp, dataLength/dataSize ); while( vorbis_analysis_blockout( &m_vorbisDsp, &m_vorbisBlock ) == 1 ) { /* analysis, assume we want to use bitrate management */ vorbis_analysis( &m_vorbisBlock, NULL ); vorbis_bitrate_addblock( &m_vorbisBlock ); while( vo...
2004 Aug 06
2
ices and stdin module?
...o.2...done. Reading symbols from /usr/lib/libc_r.so.4...done. Reading symbols from /usr/libexec/ld-elf.so.1...done. #0 0x280886d9 in _preextrapolate_helper () from /usr/local/lib/libvorbis.so.2 (gdb)bt #0 0x280886d9 in _preextrapolate_helper () from /usr/local/lib/libvorbis.so.2 #1 0x280888ce in vorbis_analysis_wrote () from /usr/local/lib/libvorbis.so.2 #2 0x804f0ed in encode_data (s=0x805ac00, buf=0x8066000 '\200' <repeats 200 times>..., bytes=32768, bigendian=0) at encode.c:180 #3 0x804fee4 in process_and_send_buffer (sdsc=0x8061580, buffer=0x8058340) at stream_shared.c:202 #4 0x...
2004 May 20
3
Encoding questions
Hi, I have recently implemented encoding/decoding to/from OggVorbis in my app, with the code being based upon the Libvorbisenc sample code supplied with the SDK. It all works very well indeed (encoding from a PCM file, then playback), except that no matter the length of the source PCM file, the last (approx) 4 seconds of audio is always missing from the Ogg file. I am trying to find some
2002 Jun 24
1
packetno, granulepos, streaming and framing
...egarding the numbering of ogg_packets and their granulepos value. Below are the result for two different scenarios. <p>In the first scenario, ogg_packets are generated using a) vorbis_analysis_headerout() b) while true vorbis_analysis_buffer() vorbis_analysis_wrote() c) while true vorbis_analysis_blockout() vorbis_analysis() vorbis_bitrate_addblock() vorbis_bitrate_flushpacket() This generates ogg_packets with packetno and granulepos values as described below Case #1 : Generated ogg_pa...