Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Packeting in case of Variable Bit Rate Encoding (Read 5831 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Packeting in case of Variable Bit Rate Encoding

i have live streaming audio which i am encoding using a low bit rate codec,actually this question is based on packetization of the encoded data which is a after math of processing and pre process while giving it to a wireless device

Going Deep in to the discussion:

>Essentially while using VBR silence is encoded at 2Kbps and voice is encoded at 4Kbps

> my frame size 20ms

> if encoded at 4Kbps i need 10bytes 

>if encoded at 2Kbps i need 5bytes for encoded data

>My payload size is 80bytes fixed

so now in order to fill the 80bytes payload i have to wait for complete 320ms if it is the case of silence

if its voice i have to wait for 160ms of data from microphone to fill the payload

my big question is `"is this is how Variable bitrate implemented in real time"`

how a VBR packetization is actually done

Packeting in case of Variable Bit Rate Encoding

Reply #1
Your problem seems to be that you're trying to use a fixed payload size?

If you don't constrain your VBR to have a set minimal bitrate and combine that with the inflexible payload size, your latency will indeed balloon.

I'm not sure what exact question your asking, but your problem follows directly from the conditions you set. You need to fix either of those conditions.