Skip to content

BW_INFINITE (1 Gbps) affects higher bitrates #552

@maxsharabayko

Description

@maxsharabayko

SRT v1.3.2 and lower had the default maxbw value is 30 Mbps. Since v1.3.3 the default value is 1 Gbps (#760).

The limitaion is not obvious for the end user.
v1.3.2 and earlier

const int64_t BW_INFINITE =  30000000/8;         //Infinite=> 30Mbps

Since v1.3.3

const int64_t BW_INFINITE =  1000000000/8;         //Infinite=> 1Gbps

This value affects the sending period of the packets.

void updatePktSndPeriod()
{
   // packet = payload + header
   double pktsize = m_iSndAvgPayloadSize + CPacket::SRT_DATA_HDR_SIZE;
   m_dPktSndPeriod = 1000*1000.0 * (pktsize/m_llSndMaxBW);
}
  • Suggested default value: -1. Zero packet send period.
  • If the sender skips packet due to the bandwidth, a proper message should be shown to the user, that the packet is dropped due to MAXBW is less the sending rate tries to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: MediumType: MaintenanceWork required to maintain or clean up the code[core]Area: Changes in SRT library core

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions