So what I need is something like capture devices list.
And some function to get from user on which device he wants to stream.
How to do such thing with open
Not directly supported in opencv (AFAIK) but try http://www.muonics.net/school/spring05/videoInput/