有一个从filesrc
到appsink
的音频管道。它提供32ms缓冲区。如何强迫它给我10ms音频缓冲区?
答案 0 :(得分:1)
在audiobuffersplit
https://github.com/GStreamer/gst-plugins-bad/blob/master/gst/audiobuffersplit/gstaudiobuffersplit.c
appsink
g_object_set(audiobuffersplit, "output-buffer-duration", 1, 100, NULL);
将它设置为将缓冲区分割百分之一秒(10ms)