Video stream modifications
-
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 :) 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 :)
-
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 :) 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 :)
I would start with Belkin technical support - they will know more than we do!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."
-
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 :) 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 :)
Hello...use avicap32.dll...it might be useful...
-
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 :) 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 :)
Take a look at snarfle's DirectShow.NET - that'll make DS a whole lot easier to work with in C# http://directshownet.sourceforge.net/[^]
-
Take a look at snarfle's DirectShow.NET - that'll make DS a whole lot easier to work with in C# http://directshownet.sourceforge.net/[^]
OK, it works pretty well with AForge.NET DirectShow lib. Thanks a lot for help everyone!