appsrc with GST_FORMAT_BYTES cannot query duration
Nicolas Dufresne
nicolas.dufresne at gmail.com
Sun Mar 27 00:07:10 UTC 2016
Le samedi 26 mars 2016 à 15:41 -0700, gyunaev a écrit :
> This might also be somehow connected with another issue - appsrc in
> this
> configuration does not respond to gst_event_new_seek() - the seek
> callback
> is simply not called. I use:
>
> GstEvent * seek_event = gst_event_new_seek( m_tempoRate,
> GST_FORMAT_TIME,
>
> (GstSeekFlags)(GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE),
> GST_SEEK_TYPE_SET,
> pos * GST_MSECOND,
> GST_SEEK_TYPE_NONE,
> 0 );
>
> but even when I change it to GST_FORMAT_BYTES, nothing happens.
> Pipeline
> generates no errors, but appsrc's seek_cb is not called, so no seek
> is
> performed. While I can seek directly in appsrc, this doesn't let me
> to
> change tempo, and thus is not suitable for my purpose.
Have you set the stream type to SEEKABLE or RANDOM_ACCESS ? If you use
BYTE format, do you have a demuxer or a parser that will handle the
time to byte conversion ?
>
> I'm now thinking that I'm probably expecting too much from appsrc,
> and
> should be writing a plugin instead, am I right?
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble
> .com/appsrc-with-GST-FORMAT-BYTES-cannot-query-duration-
> tp4676539p4676575.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160326/199f41a5/attachment-0001.sig>
More information about the gstreamer-devel
mailing list