Attach URI of file source to metadata

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 7.0
• Issue Type( questions, new requirements, bugs) Question

I need to know which URI a frame is connected to, is there a way to access the URI of the source later on in the pipeline?

For example, is there is a way to, when creating a uridecodebin, attach the information of which URI is streamed to each frame meta of the stream?

I need the URI rather than the “source id”. Alternatively, is it possible to give a custom value as source_id when creating the uridecodebin?

I might be missing how to do this in a better way and would gladly take input if that’s the case!

You can map the uri to the source_id yourself. When you get the source_id of the frame, you can check it in your map.

Yeah of course, but I was wondering if there is another way which does not require me to add extra logic to keep track of which source IDs are connected to which URI. But I guess there is not then?

Yes. For now, you can record this value yourself.

Okay thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.