المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Video stream modifications



C# Programming
04-04-2011, 01:15 PM
Hi everyone!

I guess that's my first post on the site, but i ain't here for the first time...you guys've helped me many many times before what i'm really grateful for http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif
Now i have some problem which i can't deal with alone...
There is a camera connected to "Belkin hi speed usb 2.0 dvd-creator". I have a sdk for those devices written in C lang.
I need to display the video from the camera on a form in c# program, so i've imported the necessary functions from the sdk lib. It works fine, but...now i have to add some graphics on the view. Thing is, function that "displays" the video has a reference to a rectangle as one of three arguments (the rest is hwnd id and pointer to the device), so the only way to use the "live view" (with this function) is to point some defined rectangle. That would be ok, but i need to modify it...there is no (simple) way to get byte data of the video with this sdk.

I tried to use directshow to grab the video from belkin device, but the "live" view is "dead" after one second...even less. Guess there is something wrong with buffer management.
The only thing i can figure out now is to catch bitmap from the rectangle, add image and send it back, but there might be a huge loss of frames.

Do You know any way (or other way) of:
modifying such data displayed in a rectangle / obtaining video data from the belkin device ?

or

Do You know any kind of library that might be useful here? I guess there is some way to deal with the problem using directshow, but i am not familiar with it.
I've studied DXLogo sample from directshow samples but i still need to have pure data or compatible device.

I would be really grateful for any help http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif