Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在以 8Ksps 对传入的音频流进行采样。我有一个编解码器,需要大约 1.6 毫秒的时间将一个数据包(80 个样本)编码为一个编码包(5 个样本)。以这个速度,每个编码周期我得到 8000*1.662e-3 ~= 13 个样本。但我每个周期需要 80 个样本。如何保持流连续?我唯一的猜测是减慢传出编码流的比特率,但我不确定一般如何计算,这样传入端的缓冲区不会填满,接收端的缓冲区不会被饿死。
这似乎是流媒体的基本原则,但我找不到任何有关方法的信息。谢谢你的帮助!