Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Video stream modifications

Video stream modifications

Scheduled Pinned Locked Moved C#
graphicshelpcsharpcssjson
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    onionRings
    wrote on last edited by
    #1

    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 :)

    OriginalGriffO C M 3 Replies Last reply
    0
    • O onionRings

      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 :)

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      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."

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      • O onionRings

        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 :)

        C Offline
        C Offline
        Catalin Briciu
        wrote on last edited by
        #3

        Hello...use avicap32.dll...it might be useful...

        1 Reply Last reply
        0
        • O onionRings

          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 :)

          M Offline
          M Offline
          Michael9000
          wrote on last edited by
          #4

          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/[^]

          O 1 Reply Last reply
          0
          • M Michael9000

            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/[^]

            O Offline
            O Offline
            onionRings
            wrote on last edited by
            #5

            OK, it works pretty well with AForge.NET DirectShow lib. Thanks a lot for help everyone!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups