<div dir="ltr"><div><span style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px">Hi,</span></div><div><br></div><div>I am new to this forum. <br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px">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.</span><br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px">Problem:</span><br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px">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.</span><br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px">My goal:</span><br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px">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).</span><br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px">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.</span><br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px">Questions:</span><br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px">1. Are there any other ways in which I can achieve my goal without using appsink?</span><br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px">2. If using appsink is the only way I can pull data from gstreamer, how can I achieve my goal using appsink?</span></div><div><br></div><div>I appreciate any guidance.<br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px">Thanks in advance.</span><br style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="color:rgb(102,102,102);font-family:Arial,Helvetica,sans-serif;font-size:12px">Kiran</span><br></div></div>