1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with VFW / Capturing Video / Sony DV Camcorder

Discussion in 'Win32' started by kashyap_ankur, Jul 9, 2009.

  1. kashyap_ankur

    kashyap_ankur New Member

    Joined:
    Jul 9, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I am facing a problem when trying to record video using VFW library and Sony DV Camcorder.

    Below given is the simple code and it works well. I have tested it with 2 web cams - Logitech and Intel.

    When I use my Sony DV Camcorder - I see a blank/black window (of the size WIDTH/HEIGHT as mentioned in the code). I find that all the functions - capDriverConnect, capPreviewRate and capPreview - return TRUE even when I get the blank/black window in the name of preview area.

    What surprises me more is that the same code and the Sony DV Camcorder were working fine when tested almost a month back using my colleague's machine. The only difference is that I connected the camera using an external Firewire card to his PC. My laptop has a Firewire port so I connect the camera using the same. When I try to use Windows Movie Maker or Windows Explorer to see if the camera/cable is working fine, everything works well.

    I was curious to see the results of capGetVideoFormat. I have attached a snapshot which shows the state of BITMAPINFO. The values look strange to me. Never seen this value for biCompression.

    Please guide.

    capture_window = capCreateCaptureWindow (TEXT ("Capture Window"),
    WS_CHILD | WS_VISIBLE, 5,5, WIDTH, HEIGHT, hwnd, 0);

    capDriverConnect (capture_window, 0);
    capPreviewRate (capture_window, 66);
    capPreview (capture_window, TRUE);
     
  2. Latduppy73

    Latduppy73 New Member

    Joined:
    Oct 3, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    United States
    Location:
    United States
    Home Page:
    If you look in the directory on your folder, what is the name of your storage card?
     

Share This Page