如何为appsink设置缓冲区大小?

时间:2017-03-08 16:30:51

标签: gstreamer

有一个从filesrcappsink的音频管道。它提供32ms缓冲区。如何强迫它给我10ms音频缓冲区?

1 个答案:

答案 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)