Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Video Capture

Posted on 1998-10-30
5
Medium Priority
?
466 Views
Last Modified: 2013-11-20
Hi,

I want to write a little capture program for my video board
(Intel SmartVideo Pro).
Can anyone tell me what MCI commands do I have to send?
All I want to get is a single frame.

Thanks in advance,

Bernardo.
0
Comment
Question by:bsw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Accepted Solution

by:
zqian103198 earned 800 total points
ID: 1324060
Two easy ways to use standard Video Capture
MCI string :
pass the following strings to mciSendString      
"open overlay alias tester"  // open video overlay with // alias "tester"
"put tester client at 100 100 300 200"
"put tester destination at 0 0 300 200"
"put tester video at 100 100 300 200"
"window tester state show text my_tester_example" // show video //overlay window
"freeze tester" // stop for one frame
"close tester"
=======================================
or you can try vfw as
      hWndC = capCreateCaptureWindow (
      (LPSTR) "My Capture Window", // window name if pop-up
      WS_CHILD | WS_VISIBLE,       // window style
      0 , 0, 320, 240,              // window position and //dimensions
      m_hWnd,  
      0 );

      if ( ! capDriverConnect( hWndC , 0) )
      {
            MessageBox("Sorroy , not able connect video                 driver") ;
            return ;
      }
// .
// .
// .
      capGetStatus(hWndC, &CapStatus, sizeof (CAPSTATUS));
      ::SetWindowPos(hWndC, NULL, 0, 0, CapStatus.uiImageWidth,
            CapStatus.uiImageHeight, SWP_NOZORDER |         SWP_NOMOVE);

capDriverGetCaps(hWndC, &CapDrvCaps, sizeof (CAPDRIVERCAPS));
if (CapDrvCaps.fHasOverlay)
    capOverlay(hWndC, TRUE); // start video capture overlay
      
     capOverlay(hWndC, FALSE) ;  // stop at current frame
      
      capGrabFrame(hWndC) ; // grab one frame
// note :don't forget  vfw.h and vfw32.lib
0
 

Author Comment

by:bsw
ID: 1324061
Do you know how I can use these functions from delphi without having to write a DLL in C?
Thank you very much for your help!
:-D

0
 

Expert Comment

by:zqian103198
ID: 1324062
Hi, No need to write C DLL. Just call mciSendString or capCreateCaptureWindow etc. in your Delphi application. MCI and VFW are windows95's feature. You can find their support from Win32 SDK.
0
 

Author Comment

by:bsw
ID: 1324063
Thanks again!
:-D

0
 

Expert Comment

by:zqian103198
ID: 1324064
You're welcome!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question