search for: speex_get_bitr

Displaying 9 results from an estimated 9 matches for "speex_get_bitr".

Did you mean: speex_get_bits
2004 Aug 06
2
Bitrate in encoder
Hi, I'm using the latest version of libspeex (checked out today) and have some problems with checking the target bitrate in the encoder. Calling: peex_encoder_ctl(globals->enc_state,SPEEX_GET_BITRATE, &bitrate); Seems to set bitrate to 24600 no matter what the qualitysetting is.. The functions used previous to this call is: peex_bits_init(&globals->bits); globals->enc_state = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl(globals->enc_state,SPEEX_SET_COMPLEXITY,...
2008 Feb 21
2
Determine number of 20ms frames in packet - without decoding
...ll bit-rate to the encoder or decoder. >> It's only the mode that give you the layer's bit-rate (which we might >> want to change). > > Sorry, not sure I follow you. What do you mean by "you can ask the full > bit-rate to the encoder or decoder"? I mean that SPEEX_GET_BITRATE will actually return the total bit-rate in bits per second. Cheers, Jean-Marc
2004 Aug 06
0
Bitrate in encoder
> speex_encoder_ctl(globals->enc_state,SPEEX_GET_BITRATE, &bitrate); > > Seems to set bitrate to 24600 no matter what the qualitysetting is.. The > functions used previous to this call is: Did you make sure it really *sets* and not just return an incorrect result? > speex_bits_init(&globals->bits); > globals->enc_state...
2005 Dec 06
1
problems decoding speex... please help
...= NULL) { printf ("Error opening file\n"); return 1; } printf ("Successfully opened %s for decoding!\n\n", inFile); /**/ fseek (fin,(sizeof(char))*12+sizeof(int),SEEK_SET); // because of the way I encoded a PCM file speex_decoder_ctl (state, SPEEX_GET_BITRATE, &BitRate); printf ("decoding... BIT RATE: %i\n",BitRate); switch (*PEnhancement) { // Here I use BitRate to toggle Perceptual Enhancement case 'Y': BitRate = 1; break; case 'y': BitRate = 1;...
2009 Jul 12
0
Determine number of 20ms frames in packet - without decoding
...r decoder. >>> It's only the mode that give you the layer's bit-rate (which we might >>> want to change). >> >> Sorry, not sure I follow you. What do you mean by "you can ask the full >> bit-rate to the encoder or decoder"? > > I mean that SPEEX_GET_BITRATE will actually return the total bit-rate in > bits per second. > > Cheers, > > ? ? ? ?Jean-Marc > -- Regards, Alexander Chemeris. SIPez LLC. SIP VoIP, IM and Presence Consulting http://www.SIPez.com tel: +1 (617) 273-4000 -------------- next part -------------- A non-text a...
2008 Feb 19
2
Determine number of 20ms frames in packet - without decoding
Alexander Chemeris wrote: > On 2/16/08, Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> wrote: >>> Oh, you're right, inband handling is different, but it's a matter of one >>> flag, passed to functioin. Probably not that much to keep code DRY. >> Well, let's first merge your code and then we'll see about possible >> simplifications. >
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...mode=0; st->dtx_count++; } } else { st->dtx_count=0; } speex_encoder_ctl(state, SPEEX_SET_MODE, &mode); if (st->abr_enabled) { int bitrate; speex_encoder_ctl(state, SPEEX_GET_BITRATE, &bitrate); st->abr_drift+=(bitrate-st->abr_enabled); st->abr_drift2 = .95*st->abr_drift2 + .05*(bitrate-st->abr_enabled); st->abr_count += 1.0; } } else { /*VAD only case*/ int mode; if (st-&gt...
2008 Apr 04
0
speexdec 1.2.3
...break; } if (channels==2) speex_decode_stereo_int(output, frame_size, &stereo); if (print_bitrate) { spx_int32_t tmp; char ch=13; speex_decoder_ctl(st, SPEEX_GET_BITRATE, &tmp); fputc (ch, stderr); fprintf (stderr, "Bitrate is use: %d bps ", tmp); } /*Convert to short and save to output file*/ if (strlen(outFile)!=0) { for (i...
2008 Apr 04
2
speexdec 1.2.3
On Fri, Apr 4, 2008 at 12:19 AM, Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> wrote: > Jahn, Ray (R.) a ?crit : > > > Dear Speex codec community: > > > > I am working on conversion of voice files. I could not figure out how to use speexdec.exe 1.2.3 in piped mode in order to avoid the creation of the potentially large intermediate *.wav or *.pcm files. Any