mp4mux & appsink

Kristoffer kristoffer.glembo at qamcom.se
Fri Mar 25 08:42:01 UTC 2016


Hi Sebastian!

I implemented it similar to filesink (sorry if this  gets strangely formatted):

case GST_QUERY_SEEKING:

gst_query_parse_seeking (query, &format, NULL, NULL, NULL);

if (format == GST_FORMAT_BYTES)
 {
     gst_query_set_seeking (query, GST_FORMAT_BYTES, TRUE, 0, -1);
} else {
    gst_query_set_seeking (query, format, FALSE, 0, -1);
}

And then I added a signal and callback  seek(guint64 offset) which is emitted on a SEGMENT event.

My appsink is basically a custom filesink. I had nothing between mp4mux and the appsink.

/Kristoffer

On Do, 2016-03-24 at 03:32 -0700, Kristoffer wrote:

> I'm trying to add seek support for appsink. But it seems that the appsink
> never receives the SEEKING query from the mp4mux.
>
> Mp4mux claims downstream is not seekable:
>
> qtmux gstqtmux.c:1695:gst_qt_mux_start_file: downstream is not
> seekable
> qtmux gstqtmux.c:1707:gst_qt_mux_start_file: warning: Downstream is
> not seekable and headers can't be rewritten
>
> But I've implemented handling of the seek query and the appsink never even
> receives the query. What can cause this?
What's between your mp4mux and the appsink? And how did you implement
the handling of the SEEK query in appsink, and especially how would you
handle the actual seeking later?

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=4676549&i=0>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

[http://gstreamer-devel.966125.n4.nabble.com/images/icon_attachment.gif] signature.asc (968 bytes) Download Attachment<http://gstreamer-devel.966125.n4.nabble.com/attachment/4676549/0/signature.asc>


________________________________
If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/mp4mux-appsink-tp4676469p4676549.html
To unsubscribe from mp4mux & appsink, click here<http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4676469&code=a3Jpc3RvZmZlci5nbGVtYm9AcWFtY29tLnNlfDQ2NzY0Njl8LTE1MjA4NTE5OQ==>.
NAML<http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/mp4mux-appsink-tp4676469p4676551.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160325/39e062d6/attachment.html>


More information about the gstreamer-devel mailing list