<div dir="ltr">Hello Eslam.<div><br></div><div>I'm sorry, I was not able to quickly find appropriate links, but overall idea is: you should check, does your plugin/caps properly registered through all plugins/caps tree, and available during automatic caps selection/testing.</div><div><br></div><div>Best regards,</div><div>Anton.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 9, 2021 at 6:25 PM Eslam Ahmed via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I have recently developed a new media type called `video/x-mytype` which is basically an encoded video stream, say H264, that has some encoded metadata prepended on it. To that end, I have written 2 elements mytypemux and mytypedemux namely.</div><div><br></div><div>Consequently, mytypemux takes 'video/x-h264' and produces `video/x-mytype` and mytypedemux takes `video/x-mytype` and produces whatever was tagged by mytypemux which is in this case none other than the 'video/x-h264'.</div><div><br></div><div>I wanted to send `video/x-mytype` over the network, so I used `rtpgstpay` to payload what was coming out of mytypemux  into `GstRTSPMediaFactory`, mounted it and served as an rtsp stream.</div><div><br></div><div>In the receiving pipeline, the following happens which works perfectly:</div><div>`gst-launch-1.0 rtspsrc location=rtsp://localhost:8884/test ! rtpgstdepay ! mytypedemux ! h264parse ! avdec_h264 ! videoconvert ! autovideosink`</div><div><br></div><div>Now, I am trying to make it work via a `uridecodebin` but I keep getting the following error from the `decodebin`:</div><div>`Missing decoder: video/x-mytype (video/x-mytype)`<br></div><div><br></div><div>So the pipeline knows about the type of the media type so there's no need for typefinding, it just needs a decoder. I had hoped that it would auto-plug `mytypedemux` but it didn't.</div><div><br></div><div>So, What do I need to do to make the uridecodebin pick my demuxer?</div><div><br></div><div>FYI:</div><div><ul><li>`gst-inspect-1.0 --print-plugin-auto-install-info /usr/local/lib/gstreamer-1.0/libmytypedemux.so` produces `element-mytypedemux` so it's an element but not a decoder?</li><li>mytypedemux has a primary Rank<br></li></ul></div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Best Regards,<br>Eslam Ahmed</div></div></div></div></div>
</blockquote></div>