Click here to Skip to main content
15,915,328 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm trying to write a c# program that extracts and dumps (not decode) teletext and closed caption data from a video stream into a hex file.

I came across this - apparently directshow has support for teletext and closed captions.

http://msdn.microsoft.com/en-us/library/windows/desktop/dd374627(v=vs.85).aspx[^]

but I can't seem to figure out how to write a simple app that "extracts" the data and dumps it into a hex file.

Anyone can help me with a sample code to get started?

Thanks,
Posted
Comments
Sergey Alexandrovich Kryukov 4-Nov-13 9:45am    
At this moment, your links shows "not found" response, please check it up.
—SA

1 solution

Hello,

The closed captions can be stored as separate stream in the media file container, or embedded into video stream.
In case of separate stream it can be the well known format for the stream (example "text"), or user defined. All that things is described in the container format. (examples: MPEG4, MPEG-TS)
Closed captions embedded into video stream mostly have documented format, and can easy extracted (example H264, MPEG2).

The documentation you should look:
ISO 13818-1/ITU-T rec H.222
ISO 13818-2/ITU-T rec H.262
ISO 14496-10/ITU-T rec H.264

The Tools you may use:
CCExtractor - an open source C++ Closed Captions Extractor.
MPEG-2 TS Analizer - you can determine the streams in a file their PID's and other data.

Regards,
Maxim.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900