Grabbing frames from GStreamer pipeline

Kiran Kumar kirank3240 at gmail.com
Tue Jun 14 19:43:07 UTC 2016


Hi,

I have attached the log file. PFA for the same.

On Mon, Jun 13, 2016 at 10:51 PM, Thornton, Keith <keith.thornton at zeiss.com>
wrote:

> Hi,
>
> I think you are mistaken when you say “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 am using these APIs to pass full 1920 *
> 1080 frames. You should provide more details so that we can maybe see what
> is going wrong.
>
>
>
>
>
>
>
> *Von:* gstreamer-devel [mailto:
> gstreamer-devel-bounces at lists.freedesktop.org] *Im Auftrag von *Kiran
> Kumar
> *Gesendet:* Montag, 13. Juni 2016 21:20
> *An:* gstreamer-devel at lists.freedesktop.org
> *Betreff:* Grabbing frames from GStreamer pipeline
>
>
>
> 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
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160614/04411cd6/attachment-0001.html>
-------------- next part --------------
Now playing
Running...
Got preroll!
size========================= 4096
count++++++++++++++++++++ 1
size========================= 4096
count++++++++++++++++++++ 2
size========================= 4096
count++++++++++++++++++++ 3
size========================= 4096
count++++++++++++++++++++ 4
size========================= 4096
count++++++++++++++++++++ 5
size========================= 4096
count++++++++++++++++++++ 6
size========================= 4096
count++++++++++++++++++++ 7
size========================= 4096
count++++++++++++++++++++ 8
size========================= 4096
count++++++++++++++++++++ 9
size========================= 4096
count++++++++++++++++++++ 10
size========================= 4096
count++++++++++++++++++++ 11
size========================= 4096
count++++++++++++++++++++ 12
size========================= 4096
count++++++++++++++++++++ 13
size========================= 4096
count++++++++++++++++++++ 14
size========================= 4096
count++++++++++++++++++++ 15
size========================= 4096
count++++++++++++++++++++ 16
size========================= 4096
count++++++++++++++++++++ 17
size========================= 4096
count++++++++++++++++++++ 18
size========================= 4096
count++++++++++++++++++++ 19
size========================= 4096
count++++++++++++++++++++ 20
size========================= 4096
count++++++++++++++++++++ 21
size========================= 4096
count++++++++++++++++++++ 22
size========================= 4096
count++++++++++++++++++++ 23
size========================= 4096
count++++++++++++++++++++ 24
size========================= 4096
count++++++++++++++++++++ 25
size========================= 4096
count++++++++++++++++++++ 26
size========================= 4096
count++++++++++++++++++++ 27
size========================= 4096
count++++++++++++++++++++ 28
size========================= 4096
count++++++++++++++++++++ 29
size========================= 4096
count++++++++++++++++++++ 30
size========================= 4096
count++++++++++++++++++++ 31
size========================= 4096
count++++++++++++++++++++ 32
size========================= 4096
count++++++++++++++++++++ 33
size========================= 4096
count++++++++++++++++++++ 34
size========================= 4096
count++++++++++++++++++++ 35
size========================= 4096
count++++++++++++++++++++ 36
size========================= 4096
count++++++++++++++++++++ 37
size========================= 4096
count++++++++++++++++++++ 38
size========================= 4096
count++++++++++++++++++++ 39
size========================= 4096
count++++++++++++++++++++ 40
size========================= 4096
count++++++++++++++++++++ 41
size========================= 4096
count++++++++++++++++++++ 42
size========================= 4096
count++++++++++++++++++++ 43
size========================= 4096
count++++++++++++++++++++ 44
size========================= 4096
count++++++++++++++++++++ 45
size========================= 4096
count++++++++++++++++++++ 46
size========================= 4096
count++++++++++++++++++++ 47
size========================= 4096
count++++++++++++++++++++ 48
size========================= 4096
count++++++++++++++++++++ 49
size========================= 4096
count++++++++++++++++++++ 50
size========================= 4096
count++++++++++++++++++++ 51
size========================= 4096
count++++++++++++++++++++ 52
size========================= 4096
count++++++++++++++++++++ 53
size========================= 4096
count++++++++++++++++++++ 54
size========================= 4096
count++++++++++++++++++++ 55
size========================= 4096
count++++++++++++++++++++ 56
size========================= 4096
count++++++++++++++++++++ 57
size========================= 4096
count++++++++++++++++++++ 58
size========================= 4096
count++++++++++++++++++++ 59
size========================= 4096
count++++++++++++++++++++ 60
size========================= 4096
count++++++++++++++++++++ 61
size========================= 4096
count++++++++++++++++++++ 62
size========================= 4096
count++++++++++++++++++++ 63
size========================= 4096
count++++++++++++++++++++ 64
size========================= 15
count++++++++++++++++++++ 65
End of stream
Returned, stooping playback
Deleting the pipeline


More information about the gstreamer-devel mailing list