Thread: Video Frames

  1. #1
    Registered User
    Join Date
    Jan 2003

    Video Frames

    For my science project, I must process a video frame-by-frame. I want to extract the Image data from each frame, obviously.

    Now, I found this C++ source in MSDN that grabs frames and saves them as bmp files. However, it'd be a *pain* to convert that into C# because its long, complex, complicated, etc.The sample file

    Is there any easier way to do it?

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Hannover, Germany
    You can compile this sample as a normal C++ DLL and call this from C# like any other native DLL.

    Other than that, maybe you can take some keywords out of the sample and look them up, maybe there's a C# wrapper for one of them in Managed DirectX.

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Registered User
    Join Date
    Jan 2003
    Alright, I'm just really confused now. I've spent 2 days trying to figure out how the filters work. So far I have a C# application that sucessfully plays a video file using DirectShow. But instead of a normal playback, I play one frame at the time until its finished. That way, I can hopefully parse it.

    All I want to do is get the indivdual frame data. I have absolutly no idea how these filters connect to each other and work. I've searched all over the place with no avail.

    Can anyone help?


    I found a few AVI functions in the Windows Platform SDK that allow me to play back and get frame data easily. However, I dont know how to import these functions into C#. If there is aboslutely no way to use DirectShow to get frame data, I'll use these functions. The thing is that the AVI files are 60+ MB and the .wma files (which DirectShow plays), are only 800 KB. I dont want to carry around 60 megabytes of video data on my USB drive when I can just carry less than a megabyte. And in addition, I have no idea how to import these functions into C#.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem With My Box
    By HaVoX in forum Tech Board
    Replies: 9
    Last Post: 10-15-2005, 07:38 AM
  2. video convert..."hack" on a genesis
    By Shadow in forum Tech Board
    Replies: 3
    Last Post: 12-06-2003, 01:30 PM
  3. Codec Bitrates?
    By gvector1 in forum C# Programming
    Replies: 2
    Last Post: 06-16-2003, 08:39 AM
  4. OpenGL .dll vs video card dll
    By Silvercord in forum Game Programming
    Replies: 14
    Last Post: 02-12-2003, 07:57 PM