why I got more than 1 buffer every second from audiobuffersplit?
Sebastian Dröge
sebastian at centricular.com
Mon Oct 14 06:42:36 UTC 2019
On Fri, 2019-10-11 at 05:17 -0500, luisyin wrote:
>
> Data comes from rtsp stream. Video part is ok. I want to get raw audio data
> every second. The buffer size I got is 32000, I think it's right. But I got
> several buffers every second. I want to receive exactly one buffer with size
> 32000 every second. What's wrong with my pipeline. I am new to gstreamer.
32000 bytes per buffer would be correct, and that would represent one
second of raw audio in your configuration. If you get multiple such
buffers per second, maybe that just means your source is sending data
faster than real-time?
audiobuffersplit does not care about the clock but only looks at
timestamps for splitting/joining buffers. As long as there is no
discontinuity in the stream (timestamp-wise), it would always output 1
buffer with 1 second worth of raw audio.
--
Sebastian Dröge, Centricular Ltd · https://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191014/a8cc4aea/attachment-0001.sig>
More information about the gstreamer-devel
mailing list