Grabbing frames from GStreamer pipeline

Kiran Kumar kirank3240 at gmail.com
Mon Jun 13 19:19:44 UTC 2016


Hi,

I am new to this forum.

I am trying to pull frames from gstreamer pipeline and feed it to user
application. I am using appsink pad to pull out the frames while the
pipeline is in the PLAYING state.

Problem:
1. The gst_app_sink_pull_sample(), gst_sample_get_buffer() and
gst_buffer_map() hands out only streams which are of size 4096 bytes each.
I tried changing the blocksize but, there is no effect.

My goal:
To extract or pull a single frame into a single buffer and feed this buffer
as input to my application which does some image processing (I am not using
OpenCV).

I want to pull every frame from the video-source, populate the buffer (each
frame is associated with a particular buffer) and finally feed the buffer
to my application. I don't want to dump this frame into a file in my
filesystem.

Questions:
1. Are there any other ways in which I can achieve my goal without using
appsink?
2. If using appsink is the only way I can pull data from gstreamer, how can
I achieve my goal using appsink?

I appreciate any guidance.

Thanks in advance.
Kiran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160613/08f0c9a6/attachment.html>


More information about the gstreamer-devel mailing list