Displaying 20 results from an estimated 10000 matches similar to: "Packet Loss"
2004 Aug 06
1
auto-detection of frame boundary
I tried feeding in the 3 encoded frame in ONE BLOCK, and calling speex_decode() 3 times in a roll. Only the 1st frames came out perfectly. For the other 2, I got "corrupt" frame warning.
I was supposed to get 38 bytes consumed each frame (narrow-band, VBR off). I tried speex_bits_remaining() to peek on the # of bits consumed, and got variable (clearly wrong)#s returned.
But if I
2008 Aug 27
3
Packet Loss question
Hello all,
I know that SPEEX has a mechanism to handle packet loss.
I see there is some handling for packet loss implemented in speexdec.
I want to know, if in my own application should i also implement such
packet loss handling or is it taken care of within the decoder?
I want to test my SPEEX application for GNU Radio for some packet loss,if
i just simulate a packet loss mechanism, will it work
2004 Aug 06
1
draft-herlein-speex-rtp-profile-01
Ok, I figured it out. :) This seems to work:
1) Call speex_bits_read_from() once, specifying the location in
memory of the compressed data, and the total length of that data.
2) Keep calling speex_decode() until speex_bits_remaining()
returns 0.
Then you don't have to keep track of the # of frames per packet,
or the size of each compressed frame. It's done magically by the
codec.
2004 Aug 06
1
auto-detection of frame boundary
Here's the situation: 3 frames are being transferred back to back over
RTP. The total payload is known (thus the TOTAL frame size). We'd like
to decode all 3.
According to IETF RTP Profile (appendix C, of Jean-Marc's Speex Codec
Manual, verison 1.0), "it's only necessary to consider the sequence of
bits as output by the Speex encoder, and present the same sequence to
2004 Aug 06
2
decode in ppc 2003
Hi all,
Please a moment to look my source code, this is very similar to example of
the documentation. I added FIXED_POINT flag. My source code compile and
build but not decode correctly (the error may be in the while). I work with
eVC 4.0 and pocket pc 2003. Someone know what is the error?
Thanks.
Rodrigo.
#include "speex.h"
#define FRAME_SIZE 160
void CPlayerDlg::OnButton3()
{
2004 Aug 06
1
API changes for Speex 1.2
Hi,
Speex is progressing and I've started thinking about the next 1.2
release (don't hold your breath). Though the bit-stream won't change,
the API likely will. The API for 1.1.x already differs from 1.0.x
because the speex_encode and speex_decode now use shorts instead of
floats. Now, since I'm changing the API anyway, I thought I might as
well fix things that might be annoying
2004 Aug 06
2
Where to pause stream (minimum decodable length)?
Here is my situation:
I have large Speex encoded stream which I would like to playback on wave
out device. I could decode whole stream to pcm and play it back as pcm
audio, but this is not what I want. Instead I want to decode minimum
decodable bits (bytes?) to pcm and play it ... then decode another
minimum data chunk and play it, etc. This way I can achieve closest to
real-time playback or
2004 Aug 06
2
Please 30 second to look a my code
Hi
i'm developing a sort of VoIP application
for my ipaq using speex...
I'm still at beginning and i have many problems encoding and decoding my
wav files....output is only noise! Why?
I'm using
Libspeex 1.1.3,
Embedded VisualC++ 3.0,
Ipaq 3850(206 MHz IntelĀ® Strong ARM 32-bit RISC Processor) PocketPC 2002 (Windows CE 3.0).
Libspeex is complied with the definition of
2004 Aug 06
3
Multiple Frames per Packet
David,
Here's the trick ... do this just before your speex_bits_write():
speex_bits_insert_terminator(&bits);
Then, when decoding, keep calling speex_decode() until it returns -1
or speex_bits_remaining(&bits) returns 0.
Works for me, anyway.
Tom
David Barrett (dbarrett@quinthar.com) wrote:
>
> Hi, I'm using Speex and I want to pack multiple frames into a single
>
2004 Aug 06
2
SPEEX_SET_USER_HANDLER once again
Hi,
Sorry! Marc Gimpel. I wrote it in a false thread before. It was my
first time. :-)
I have to write a small programm which should be able to record speeches
and in addition synchronize the recorded speeches with measuring data.
My idea is to record the speech in the normal way with speex and without
ogg. If a sync message was received, i write a custom in-band messages
using mode 13
2004 Aug 06
2
What is the format of the PCM/WAV data forspeex_encode & speex_decode?
Ok, I'm using 1.1.4, so I should pass signed short(wav data) directly to
speex_encode()?
But the samplecode that comes with 1.1.4 shows me to put short in float
array, and pass the float array to speex_encode()
<p>-----Original Message-----
From: owner-speex-dev@xiph.org [mailto:owner-speex-dev@xiph.org] On Behalf
Of Jean-Marc Valin
Sent: Saturday, April 17, 2004 6:25 AM
To: speex
2004 Aug 06
3
What is the format of the PCM/WAV data for speex_encode & speex_decode?
I'm confused about the format of the PCM/WAV data for speex_encode &
speex_decode
speex_encode(enc_state, input_frame, &bits);
In the manual, it says "input_frame is a (float *) pointing to the beginning
of a speech frame" (for encode)
But I've found that in speexenc.c and testenc.c, short* is used instead of
float*
So, isn't it signed 16 bit samples(if
2004 Aug 06
1
decode in ppc 2003
Hi,
My problem is at the second fread function,
fread(&nbBytes, sizeof(int), 1, fin); //the first fread
fread(cbits,1, nbBytes, fin);// the second fread.
When I'm debugging always nbytes is greater than cbits. This give me a
execution error.
Thanks.
Rodrigo.
<p><p><p>-----Mensaje original-----
De: owner-speex-dev@xiph.org [mailto:owner-speex-dev@xiph.org] En nombre
2008 Feb 07
2
Determine number of 20ms frames in packet - without decoding
Hi,
Does anyone know a practical way to determine the number of 20ms speex
frames in a given speex packet without actually looping on speex_decode*
?
Cheers,
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20080208/0a3e84ac/attachment.html
2004 Aug 06
1
openh323 conflict; can speex_encode take short?
openh323 speexcodec.cxx has:
BOOL SpeexCodec::EncodeFrame(BYTE * buffer, unsigned & length)
{
// convert PCM to float
float floatData[SAMPLES_PER_FRAME];
PINDEX i;
for (i = 0; i < SAMPLES_PER_FRAME; i++)
floatData[i] = sampleBuffer[i];
// encode PCM data in sampleBuffer to buffer
speex_bits_reset(bits);
speex_encode(coder_state, floatData, bits);
2004 Aug 06
2
1.1 api suggestion
On Mon, Apr 19, 2004 at 02:46:44AM -0400, Jean-Marc Valin wrote:
> OK, I'll try to do *something* about it. It'll be either "support the
> 1.0 ABI" or "make sure the link will break". While the former would be
> nice, I'm not sure I want to really want to force 1.2 to have the same
> ABI as 1.0.x. More on this when I have some time to think about it.
2004 Aug 06
1
About reducing noise..
Hello,
When I decode a recoded sound encoded by speex, it has too much noise.
The noise is "slightly" reduced if I set the quality to 10. How do I get
rid of this noise? The code is as follows.
For encoding .
state = speex_encoder_init ( &speex_nb_mode );
tmp = 7;
speex_encoder_ctl ( state, SPEEX_SET_MODE, &tmp);
// set quality
tmp = 10;
speex_encoder_ctl ( state,
2004 Aug 06
2
bug found in speex_bits_read_whole_bytes
Hello there,
I thought I would contribute to this wonderful project
but noting a simple but problematic bug in
speex_bits_read_whole_bytes().
SITUATION:
I have a large stream of frames with NO breaks or
length indicators inbetween each frame. For this
reason, I call speex_bits_read_whole_bytes() and fill
it to MAXIMUM in a loop while calling speex_decode()
until there are no more bytes to read.
2004 Aug 06
2
segmentation fault on lost packets
Somewhere in the new packet-loss concealment code, there is a bug. I
tried encoding a 44100-hz stereo file and it decodes just fine, but if I
try it with packet loss, I get a segmentation fault. If you want to
see the file, I can put it up somewhere publicly accessible. If
someone here can't work on it, I'll be back on my home computer in a
few days, so I'll work on it then.
2004 Aug 06
1
speex_decode() doesn't empty buffer in u-wideband and quality 4
Hello there
I'm having trouble decoding speex frames when using 32KHz audio and quality
setting 4. If I encode three frames and then decode the three frames then
the speex_bits_remaining() still reports that there are bits remaining. All
other band modes and qualities reports that the buffer is emptied.
Here's an example that shows 4 bits remaing in the buffer after the frames
have