Hello,
My application is to receive and decode a TCP-based stream. When receiving some encoders' stream, the DecLink shows InBufCnt number is up to 50 and never decreases by using Vdec_getBufferStatistics(). I'd like to change the max input buffer number in order lower the video latency, but I can't find the parameter.
How to do it?
Actually, it happens when two or more channels are created. If there is only one channel, InBufCnt stays no more than 5...
Besides, it happens only on some encoder/streamer...
I trace the code, decLink_common.c, but can't find the answer. I print pChObj->inBufQueCount in DecLink_codecQueueBufsToChQue() and DecLink_codecSubmitData() as below. It shows SYSTEM_CMD_NEW_DATA is called several times, but DEC_LINK_CMD_GET_PROCESSED_DATA is called only 1 time... and the input buffer number increases... However, when the number is up to 50, it becomes normal...
DecLink_codecQueueBufsToChQue(): inBufQueCount 1
DecLink_codecQueueBufsToChQue(): inBufQueCount 2
DecLink_codecQueueBufsToChQue(): inBufQueCount 3
DecLink_codecQueueBufsToChQue(): inBufQueCount 4
DecLink_codecQueueBufsToChQue(): inBufQueCount 5
DecLink_codecSubmitData(): inBufQueCount 4
DecLink_codecQueueBufsToChQue(): inBufQueCount 5
DecLink_codecQueueBufsToChQue(): inBufQueCount 6
DecLink_codecQueueBufsToChQue(): inBufQueCount 7
DecLink_codecQueueBufsToChQue(): inBufQueCount 8
DecLink_codecQueueBufsToChQue(): inBufQueCount 9
DecLink_codecQueueBufsToChQue(): inBufQueCount 10
DecLink_codecQueueBufsToChQue(): inBufQueCount 11
DecLink_codecQueueBufsToChQue(): inBufQueCount 12
DecLink_codecQueueBufsToChQue(): inBufQueCount 13
DecLink_codecSubmitData(): inBufQueCount 12
DecLink_codecQueueBufsToChQue(): inBufQueCount 13
DecLink_codecQueueBufsToChQue(): inBufQueCount 14
DecLink_codecQueueBufsToChQue(): inBufQueCount 15
...
DecLink_codecQueueBufsToChQue(): inBufQueCount 50
DecLink_codecSubmitData(): inBufQueCount 49
DecLink_codecQueueBufsToChQue(): inBufQueCount 50
...