decodebin - static linking of decoder and sink

Sebastian Dröge sebastian at centricular.com
Wed Apr 27 06:34:40 UTC 2016


On Di, 2016-04-26 at 23:27 -0700, Ash 20001 wrote:
> I've tried to do it statically like you suggested but I can never get
> it working (it always fails with non-negotiated stream). I have a
> pipeline graph of what decodebin creates but I can't convert that to
> a static pipeline successfully.

Try inserting a typefind between your appsrc and the decoder, and also
a h264parse after the typefind and before the decoder. The need for
them completely depends on what kind of data and how you provide to the
appsrc.

What format and how are you providing it to appsrc? h264 byte-stream or
avc? Properly parsed into NAL units or AUs per buffer or just random
chunks of bytes?

> But as you said it doesn't make any difference regarding latency.
> Right now it takes two frames before I get the pad-added signal from
> decodebin, not one frame. I guess this means the problem is in the
> decoder itself?

If there is a "problem" at all, maybe this are just the inherent
limitations of the stream.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160427/47b9e129/attachment.sig>


More information about the gstreamer-devel mailing list