avenc_g726 queuing problem
Hey, I want to encode the audio data I received from the alsasrc element in different bitrate settings with the avenc_g726 element, and send it via udp by adding stanag 7023 format to this audio data I have encoded. For example, if the encoder bitrate is set to 16 bits, I want 100 bytes of audio data, 24->150 ,32->200 and 40->250.
Although I set the audio data I received from alsasrc to the desired size with the "blocksize" parameter, the avenc_g726 element performs a queuing operation, which causes a latency. So, even if I set the data to be maximum 258 bytes in alsasrc, the avenc_g726 element outputs larger bytes. 16 -> 1024 24 -> 1026 32 -> 1024 40 -> 1025
how can I fix this queuing and delay process? how can I get data of the specified size from the avenc_g726 element? (i tried the frame-size, bufsize, and max-samples parameters for the avenc_g726 element, it doesn't work.)