2
Answers

Get video from dvr card in c#

Bahar Jalali

Bahar Jalali

13y
10.2k
1
hi
i have a samsung camera and a RoxRon dvr card, i can see the video in the dvr software but i can't connect to the dvr from my code in visual studio

please help me

when i use cvcreatecapture and so on, i get the error : Error: Unable to create capture from camera-1

i'm confused! whether i must use directx? or emgu is enough? or what?

please help me to get video from dvr or camera to a vision project(image processing)
thanks
Answers (2)
0
Bahar Jalali

Bahar Jalali

NA 185 307.7k 13y
hi thanks

but i saw this topic before you write but i have a problem with get video !

i test my analog camera and dvr by a demo of directx

that it lists all capture devices connected to the computer, and another way to test : vlc media player! it shows connected cameras but i cant see name of my camera in none of them!


i find my dvr name in the device manager (sounds and video) list
but i don't know why i cant see my analog camera's name in the list of that demo
demo don't have any problem, because i tested it by my webcam and it work fine but it can't find my analog camera.

and i think i must test my camera in the internet like skype! but i don't know how i can test my camera by skype or etc.
i see video in the dvr software, but i can't connect to the camera by codes!

any suggestion?!

thanks
0
Hemant Kumar

Hemant Kumar

NA 2.3k 494.3k 13y
There is no direct way in C# or .NET to do so, however with some external
libraries you can. One well known and powerful method is DirectShow.NET
(http://www.codeproject.com/cs/media/directshownet.asp) which is a wrapper
around many DirectShow and unmanaged calls to DirectX.

Another easy method, is DirectX.Capture
(http://www.codeproject.com/cs/media/directxcapture.asp) which is a library
that wrapps itself around the previously mentioned DirectShow.NET and makes
capture very very easy.
http://social.msdn.microsoft.com/Forums/en/windowsdirectshowdevelopment/thread/7fefc9c4-37e8-4bbb-b2c2-1f396ff7f862