gstappsink EOS after a seek event

apic andreapicaro at gmail.com
Wed Oct 4 09:43:15 UTC 2017


Hello, i'm using appsink to process decode frames and inject them into
another pipeline using appsrc.
Decode pipeline: filesrc location=xxx ! decodebin ! appsink name=sink
Visualization pipeline: appsrc name=source ! video/x-raw, format=RGB16,
width=1920, height=1080, framerate=(fraction)1/1 ! imxg2dvideosink

I keep the decode pipeline in paused state and set it to playing when frames
needed. During the pause i send seek event:

GstEvent* seek_event = gst_event_new_seek(1.0, GST_FORMAT_TIME,
(GstSeekFlags)(GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE),
                GST_SEEK_TYPE_SET, seekNs, GST_SEEK_TYPE_NONE,
GST_CLOCK_TIME_NONE);

gst_element_send_event(gpipeline, seek_event)

Even though the seek point is far from the end of video and
gst_element_send_event returns true, frequently i get an EOS immediatelly
after setting the pipeline to playing.

Can anyone point me to what could be wrong here.
Please note that when this problem doesn't happen the sequence PAUSE - SEEK
- PLAY works fine.

Thank you



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list