gst_element_seek() when the pipeline has an appsink - bug?

Paddy pat.blanchon at gmail.com
Wed May 22 16:58:01 PDT 2013


Thank you for your replies.

A few more details:
The appsink is configured to have 1 buffer & to drop old buffers.
The appsrc is configured to do timestamping, block is set to true & format
to GST_FORMAT_TIME
The code is based on appsink-src.c from app examples - main differences
being that I just push the received buffer in appsink straight to the appsrc
& that I haven't configured any caps (but GST_BUFFER_CAPS() shows that caps
are all present & correct in the appsink & appsrc).
I think I may of seen 2x playback working once but I'm not 100% sure.

@Brendan: I don't know as gst_element_seek() always fails when applied to
the sink pipeline (the appsrc is not in seekable mode)

@Nicola: Setting sync=false on the autovideosink makes some difference - the
image that's displayed whilst waiting for the seek to finish is the frame
I'm seeking to, rather than the first frame in the file. But other than that
it behaves the same, with debug=*:5 that looks like:
0:00:05.237998648 32735 0x7f0304014a50 DEBUG                 appsrc
gstappsrc.c:1456:gst_app_src_push_buffer_full:<video_src> queue filled
(460800 >= 200000)
0:00:05.238010245 32735 0x7f0304014a50 DEBUG                 appsrc
gstappsrc.c:1477:gst_app_src_push_buffer_full:<video_src> waiting for free
space
0:01:45.459565478 32735 0x7f031004eea0 DEBUG                 appsrc
gstappsrc.c:993:gst_app_src_create:<video_src> we have buffer 0x7f03040135c0
of size 460800
0:01:45.459835166 32735 0x7f0304014a50 DEBUG                 appsrc
gstappsrc.c:1491:gst_app_src_push_buffer_full:<video_src> queueing buffer
0x7f0304013440
0:01:45.466324559 32735 0x7f0304014a50 DEBUG                appsink
gstappsink.c:764:gst_app_sink_render_common:<video_sink> pushing render
buffer 0x7f030407c580 on queue (0)
0:01:45.466477587 32735 0x7f0304014a50 DEBUG                appsink
gstappsink.c:1317:gst_app_sink_pull_buffer:<video_sink> pull a buffer

@Tim: this is a matroska file containing H264 video (640x480 at 25 atm but will
graduate to 1080p with AAC audio eventually).


These are experiments I'm playing with - my ultimate goal is to stream a
sequence of H264/AAC matroska files thru an rtpbin. If there's a easier way
then please shout.

Cheers again

Paddy




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-element-seek-when-the-pipeline-has-an-appsink-bug-tp4660041p4660048.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list