Re: Capturing Closed Caption Bitmaps

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: EK (ek_trash_at_yahoo.com)
Date: 02/25/04


Date: 24 Feb 2004 18:54:45 -0800

Gladly !

I'm trying to capture the close captions from a DVD connected to my pc
using a WinTV card.

The initial part of identifying and selecting the card input (S-Video)
and connecting the VBI are accomplished and currently the movie is
playing (with subtitles).

My problem is as follows:
Since I can't find a way to get the text/string directly I was
thinking of capturing the close captions to bitmaps file and then
using some OCR component extract the text strings.

If there is a way to directly capture the close captions as text
string I would love to know about, if not, capturing the close
captions to bit maps files will do the job.

Thanks again for your help,

Eyal.

"Alessandro Angeli [MVP::DigitalMedia]" <nobody@nowhere.in.the.net> wrote in message news:<eXyAtBx#DHA.3712@tk2msftngp13.phx.gbl>...
> EK wrote:
>
> > Thanks Alessandro,
> >
> > So any ideas how can I save the CC as bitmaps ?
> >
> > I'm trying to set the "Line 21 Decoder" by setting it
> > using:
> > hr = m_pGraphBuilder2->RenderStream(&PIN_CATEGORY_VBI, 0,
> > m_pCap, 0, m_pMux);
> > if (FAILED(hr))
> > {
> > hr = m_pGraphBuilder2->RenderStream(&PIN_CATEGORY_CC,
> > 0, m_pCap, 0, m_pMux); }
>
> Care to elaborate on what you're doing, why it doesn't
> satisfy you, what errors you get and what you want to
> accomplish?
>
>
>
> > "Alessandro Angeli [MVP::DigitalMedia]"
> > <nobody@nowhere.in.the.net> wrote in message
> > news:<egyUVFk#DHA.2644@TK2MSFTNGP11.phx.gbl>...
> >> EK wrote:
> >>
> >>> Hi All,
> >>>
> >>> I'm trying to Capture the Closed Caption as Bitmaps
> >>> (C++). I've followed all MSDN's instructions (render
> >>> the CC or VBI pin to the mux filter and added the
> >>> file-writing section of the filter graph) but all I'm
> >>> getting is an AVI file (always 128kb) that cannot be
> >>> played using the media player.
> >>>
> >>> Is file-writing section is the way to go ?
> >>> Does it suppose to save the closed caption's bitmaps to
> >>> the avi file or can I save it directly to bmp files ?
> >>> Is there anyway to capture the closed captioning as text
> >>> (string) ?
> >>>
> >>> Any help would be very appreciated.
> >>
> >> CC is encoded text data which does not make much sense
> >> when written to AVI. The "Line 21 Decoder" (or the "WST
> >> Decoder") will render the line-21 text data from the CC
> >> to bitmap that maybe you can use.
> >>
> >>
> >> --
> >>
> >> /**
> >> * Alessandro Angeli
> >> *
> >> * MVP::DigitalMedia
> >> *
> >> * a dot angeli at biosys dot net
> >> */
>
> --
>
> /**
> * Alessandro Angeli
> *
> * MVP::DigitalMedia
> *
> * a dot angeli at biosys dot net
> */



Relevant Pages

  • Re: Closed Captioning on Playback
    ... how to go from the NUV format file used in MythTV, ... CC is stored in the VBI (vertical blanking interval - the lines ... The BT878 capture chip on my WinTV ... "SageTV - Recording Closed Captions" ...
    (rec.video.desktop)
  • Re: Capturing Closed Caption Bitmaps
    ... > I'm trying to capture the close captions from a DVD connected to my pc ... > using a WinTV card. ... What you're doing here is to capture the image your dvd-player is ... However your dvd-player is inserting cc onto the ...
    (microsoft.public.win32.programmer.directx.video)
  • Closed Captioning on Playback
    ... I have a USB TV device where the CC works just fine. ... capture something, there are no captions. ... Having a hearing impairment, this ...
    (rec.video.desktop)
  • Re: AmCap sample app doesnt do audio with PVR-150 MCE LP card
    ... > fine with the older full height WinTV card, ... I do not need capture capability. ... AMCap doesn't always set the audio crossbar correctly, ...
    (microsoft.public.win32.programmer.directx.video)
  • Best Path?
    ... In past tried capturing vhs on pc with wintv card, ... Have purchased a new pc without a capture card fitted, ... Standalone dvd recorder hooked up to a tv and vhs recorder to get footage ...
    (alt.video.dvd)