Hi,
I need an element allowing to select next element in the pipeline based on metadata. For 2 input streams, I use nvidia nvstreammux to form batches from these sources and then buffers from the first source should go to some element_1 and buffers from the second source should go to some element_2 in the pipeline. All buffers contain user metadata describing stream id. I took a look for tee element, because tee element splits data to multiple pads. But I would need to only select one pad based on the stream id. Of course I could use tee element and then drop buffers with wrong streams id, but I am not sure if this is optimal way- Is there any existing element for this? Or should I created my own element for this? Is there any example, where I could start? -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
I had a similar problem. I don't believe there are any plugins to do this, or at least I couldn't find one. I ended up writing a demuxer plugin which looks at the medata and pushes the buffers accordingly. It's not too complicated especially if you don't use sometimes pads. But I'm curious too if anyone has any better ideas. The developers I asked on IRC didn't at the time. _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by fre deric
Hi,
maybe outputselector would serve your purpose. Gruesse -----Ursprüngliche Nachricht----- Von: gstreamer-devel <[hidden email]> Im Auftrag von fre deric Gesendet: Freitag, 22. Januar 2021 16:47 An: [hidden email] Betreff: Choose next element based on metadata. Hi, I need an element allowing to select next element in the pipeline based on metadata. For 2 input streams, I use nvidia nvstreammux to form batches from these sources and then buffers from the first source should go to some element_1 and buffers from the second source should go to some element_2 in the pipeline. All buffers contain user metadata describing stream id. I took a look for tee element, because tee element splits data to multiple pads. But I would need to only select one pad based on the stream id. Of course I could use tee element and then drop buffers with wrong streams id, but I am not sure if this is optimal way- Is there any existing element for this? Or should I created my own element for this? Is there any example, where I could start? -- Sent from: https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgstreamer-devel.966125.n4.nabble.com%2F&data=04%7C01%7C%7Cdd2b6ac3e27143ca5e0508d8bef7376a%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637469316287375648%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=W8UaL224meKkVFN0fVtxZ3Ea%2FXfq2611VRFhDROY4x4%3D&reserved=0 _______________________________________________ gstreamer-devel mailing list [hidden email] https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&data=04%7C01%7C%7Cdd2b6ac3e27143ca5e0508d8bef7376a%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637469316287375648%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=YP0xhFi33A5bdy7Hh0MwsAE0VGIv4p0TbQC9zvNqzQM%3D&reserved=0 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |