pulsesink will print buffer overflow when seek for some streams

Elliot Chen elliot.chen at nxp.com
Mon Sep 25 09:35:35 UTC 2023


1.     For some streams such as WMV, the AV interleave is large . pulsesink will print buffer overflow when seek as below. Refer to the attachment for the detail log.

-- warning log: Line 14512: 0:00:07.112998500  2684 0xffff900f5760 WARN                   pulse pulsesink.c:718:gst_pulsering_stream_overflow_cb:<audiosink-actual-sink-pulse> Got overflow

2.     I develop the patch to fix this issue.

-- The timestamp of first audio buffer may far behand the seek position if do seek operation. It will cause pulse audio buffer overflow and lost the audio buffer

-- Need check the position of the data to be written. If it's greater than the maximum buffer length, need write silent data firstly in the current write index to avoid overflow

-- The link: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5344

Best regards
Elliot Chen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230925/ac13bf72/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pulsesink_overflow.log
Type: application/octet-stream
Size: 4053010 bytes
Desc: pulsesink_overflow.log
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230925/ac13bf72/attachment-0001.obj>


More information about the gstreamer-devel mailing list