使用directshow提取隐藏式字幕和图文电视 [英] Extracting closed captions and teletext using directshow

查看:142
本文介绍了使用directshow提取隐藏式字幕和图文电视的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在尝试编写一个ac#程序,它将视频流中的图文电视和隐藏字幕数据提取并转储(不解码)为十六进制文件。



我遇到过这个 - 显然directshow支持图文电视和隐藏字幕。



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



但我似乎无法弄清楚如何编写一个简单的应用程序,提取数据并将其转储为hex文件。



任何人都可以帮我一个示例代码来开始?



谢谢,

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,

推荐答案

你好,



隐藏式字幕可以作为单独的流存储在medi中一个文件容器,或嵌入到视频流中。

如果是单独的流,它可以是流的众所周知的格式(例如text)或用户定义的。所有这些都以容器格式描述。 (例如:MPEG4,MPEG-TS)

嵌入到视频流中的隐藏字幕大多具有文档格式,并且可以轻松提取(例如H264,MPEG2)。



您应该看到的文件:

ISO 13818-1 / ITU-T rec H.222

ISO 13818-2 / ITU-T rec H. 262

ISO 14496-10 / ITU-T rec H.264



您可以使用的工具:

CCExtractor - 开源C ++隐藏字幕提取器。

MPEG-2 TS Analizer - 您可以在文件中确定其PID和其他数据的流。



问候,

Maxim。
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.


这篇关于使用directshow提取隐藏式字幕和图文电视的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆