[Bug 646474] rtpspeexpay should drop empty samples

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Apr 1 13:50:08 PDT 2011


https://bugzilla.gnome.org/show_bug.cgi?id=646474
  GStreamer | gst-plugins-good | git

--- Comment #2 from Alexey Fisher <bug-track at fisher-privat.net> 2011-04-01 20:50:06 UTC ---
this fames do _not_need_ to be transmitted.

Please take a look at this parts:

speex-1.2~rc1/include/speex/speex.h:
....
/** Uses an existing encoder state to encode one frame of speech pointed to by
    "in". The encoded bit-stream is saved in "bits".
 @param state Encoder state
 @param in Frame that will be encoded with a +-2^15 range. This data MAY be 
        overwritten by the encoder and should be considered uninitialised 
        after the call.
 @param bits Bit-stream where the data will be written
 @return 0 if frame needs not be transmitted (DTX only), 1 otherwise
 */
int speex_encode(void *state, float *in, SpeexBits *bits);

/** Uses an existing encoder state to encode one frame of speech pointed to by
    "in". The encoded bit-stream is saved in "bits".
 @param state Encoder state
 @param in Frame that will be encoded with a +-2^15 range
 @param bits Bit-stream where the data will be written
 @return 0 if frame needs not be transmitted (DTX only), 1 otherwise
 */
int speex_encode_int(void *state, spx_int16_t *in, SpeexBits *bits);

/** Used like the ioctl function to control the encoder parameters
 *
 * @param state Encoder state
 * @param request ioctl-type request (one of the SPEEX_* macros)
 * @param ptr Data exchanged to-from function
 * @return 0 if no error, -1 if request in unknown, -2 for invalid parameter



And here:
http://www.speex.org/docs/manual/speex-manual/node4.html#SECTION00418000000000000000

Discontinuous Transmission (DTX)

Discontinuous transmission is an addition to VAD/VBR operation, that allows to
stop transmitting completely when the background noise is stationary. In
file-based operation, since we cannot just stop writing to the file, only 5
bits are used for such frames (corresponding to 250 bps).

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list