Displaying 4 results from an estimated 4 matches for "opus_packet_parse".
2015 Feb 05
2
VOIP: FEC and NARROWBAND
...h maxaveragebitrate=12000; maxplaybackrate=8000 ) ?I am having some confusing results, it appears that FEC is enabled in the encoder, but the decoder cannot find any packet with FEC.
I am also wondering if this piece of code is correct (webrtc):
/* The following is to parse the LBRR flags. */? if (opus_packet_parse(payload, payload_length_bytes, NULL, frame_data,? ? ? ? ? ? ? ? ? ? ? ? frame_sizes, NULL) < 0) {? ? return 0;? }
? if (frame_sizes[0] <= 1) {? ? return 0;? }
? for (n = 0; n < channels; n++) {? ? if (frame_data[0][0] & (0x80 >> ((n + 1) * (frames + 1) - 1)))? ? ? return 1;? }
Is...
2015 Feb 06
0
VOIP: FEC and NARROWBAND
...rate=8000 ) ?
> I am having some confusing results, it appears that FEC is enabled in
> the encoder, but the decoder cannot find any packet with FEC.
>
> I am also wondering if this piece of code is correct (webrtc):
>
> /* The following is to parse the LBRR flags. */
> if (opus_packet_parse(payload, payload_length_bytes, NULL, frame_data,
> frame_sizes, NULL) < 0) {
> return 0;
> }
>
> if (frame_sizes[0] <= 1) {
> return 0;
> }
>
> for (n = 0; n < channels; n++) {
> if (frame_data[0][0] & (0x80 &g...
2019 Jul 15
0
How to enable OPUS inband FEC
...channels(payload);
switch (payload_length_ms) {
case 10:
case 20: {
frames = 1;
break;
}
case 40: {
frames = 2;
break;
}
case 60: {
frames = 3;
break;
}
default: {
return false; // It is actually even an invalid packet.
}
}
/* The following is to parse the LBRR flags. */
if (opus_packet_parse(payload, (opus_int32)len, NULL,
frame_data, frame_sizes, NULL) < 0) {
return false;
}
if (frame_sizes[0] <= 1) {
return false;
}
for (n = 0; n < channels; n++) {
if (frame_data[0][0] & (0x80 >> ((n + 1) * (frames + 1) - 1)))
return true;
}
return false;
}...
2015 Apr 02
0
One question about Opus encoder
...gth. But when use opus_repacketizer_cat() to cat the individual frame which is code3CBR that the padding part will be discard(code is below within red), then the length is not equal with the individual frame which is code0 or other code3CBR, and I think is this a fault?
opus_repacketizer_cat()->opus_packet_parse()->opus_packet_parse_impl():switch (toc&0x3)
default: /*case 3:*/
if (len<1)
return OPUS_INVALID_PACKET;
/* Number of frames encoded in bits 0 to 5 */
ch = *data++;
count = ch&0x3F;
if (count <= 0 || framesize*count > 5760)
return...