use the push_buffer of appsrc at different pace
Sebastian Dröge
sebastian at centricular.com
Tue May 6 12:57:49 PDT 2014
On Mo, 2014-04-28 at 01:19 -0700, Dudi.r wrote:
> Hi fellows,
>
> I have question about the appsrc's buffer.
>
> in my pipeline, the appsrc needs to push h.264 frame into it's buffer, I
> also need to determine the timestamps, so "do-timestamp=true" is set.
>
> appsrc ! h264parse ! avced_h264 ! autovideosink
>
> from my understanding, the application repeatedly calls the buffer, but I
> need to call the push_buffer at the frame rate pace and not every time the
> buffer can push more data.
>
> is it possible to do so? to call the push_buffer at frame rate pace?
Yes, you don't need to handle the need-data and enough-data signals at
all. You can just push data to appsrc whenever it is available.
--
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140506/01151942/attachment.sig>
More information about the gstreamer-devel
mailing list