Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
OK, dumb question time.

I need to display video streams from four IP cameras using DirectShow. The cameras are identified by a URL string containing the IP address but how do I configure instances of the capture filter so that each one will access its own camera?

Is there a method to call somewhere to set the URL string or other properties?

What I have tried:

I have looked at IBaseFilter and capture filters on MSDN
Posted
Updated 5-Apr-22 4:34am

Perhaps you can find and add your Devices by System Device Enumerator
https://docs.microsoft.com/en-us/windows/win32/directshow/system-device-enumerator?redirectedfrom=MSDN

Perhaps you can also use a SDK from the vendor.
 
Share this answer
 
v2
I'm assuming you're working with Direct Show and are familiar with filter graphs.

Somewhere in your code, you need to enumerate all the DS devices that are of the Video Input category. Each of those devices has an associated Moniker. When you're building your filter graph, use AddSourceFilterForMoniker to add the source filter corresponding to that device.

Now, how to determine which enumerated device corresponds to which IP? That I don't know -- maybe something in the property pages for the device?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900