capture video & caption text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marchencanard
    Junior Member
    Junior Member
    • Oct 2003
    • 3

    capture video & caption text

    My application capture pictures' sequence from a live video.
    It use Directshow interface ISampleGrabber
    defined in Qedit.h

    My question is :
    How can my application draw caption text on top the pictures I record ?

    The first idea was to take the data direct from the capture buffer
    to record it first on a D3d9Surface with
    D3DXLoadSurfaceFromMemory
    BUT
    the header file Qedit.h is not compatible with D3D headers later than version 7 and I did not find a function
    like D3DXLoadSurfaceFromMemory for D3d7Surface ...
    does it exist ?

    The second idea was to draw caption text on top of the running live video, but how ?

    Could someone help me, giving me perhaps a interesting links ?
  • unisay
    Junior Member
    Junior Member
    • Oct 2004
    • 3

    #2
    Are you wanting to do real closed captions (IEA-608 standard)? First off, you will need a video card capable of capturing the FULL spectrum of lines in a video signal (i.e. the VBI - line 21). as well as the ability to output them as well. Minimum required is 720x486. As far as drawing captions on top of video, that depends on wether you want to do it in a subtitle mode where the captions are always present, or in a closed caption mode where they can be turned on and off.

    Comment

    • marchencanard
      Junior Member
      Junior Member
      • Oct 2003
      • 3

      #3
      one year later !

      I had to redefine theIID_ISampleGrabberCB interface

      I think definition of a Globally Unique Identifier was missing in qedit.h

      DEFINE_GUID( CLSID_SampleGrabber , 0x6B652FFF, 0x11FE, 0x4fce, 0x92, 0xad, 0x02, 0x66, 0xb5, 0xd7, 0xC7, 0x8F);

      Comment

      Working...