隐藏式字幕和电视流
我正在编写一个应用程序,可以“观看”电视频道、解释隐藏式字幕并将频道内容记录到磁盘。我从未与视频或隐藏式字幕进行过任何形式的编程交互,因此即使是基本的建议也可能有所帮助。
我对技术和内容源很灵活(例如 DirecTV、slingbox、调谐卡等)。
有谁知道任何可以作为起点的工具包或库?
I'm writing an application that can "watch" a TV channel, interpret the closed captioning, and record the channel content to disk. I've never done any sort of programmatic interaction with video or closed captioning, so even basic advice could prove helpful.
I'm flexible on the technologies and the content sources (e.g. DirecTV, slingbox, tuner card, etc.).
Does anyone know of any toolkits or libraries which could serve as a starting point?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看看 CCExtractor。这可能是您需要做的事情的一个很好的起点。请记住,MPEG 压缩通常会破坏视频的嵌入字幕数据,因此您需要小心从何处获取源材料:
http://ccextractor.sourceforge.net/
Take a look at CCExtractor. It might be a good starting point for what you need to do. Remember that MPEG compression will often ruin the video's embedded captioning data, so you'll need to be careful about where you're getting your source material from:
http://ccextractor.sourceforge.net/
隐藏式字幕存储在 MPEG2 TS 流的用户数据部分或 H264 流的 SEI 部分中,在任何情况下您都需要解析视频访问单元或 NAL 单元,然后一旦提取隐藏式字幕,就可以解析它生成文本。最后一部分可能可以使用 CCExtractor 完成,但是您需要解码视频
Closed Captions are stored in the User Data part of an MPEG2 TS Stream, or SEI part of an H264 stream, in any case you need to parse video access units, or NAL Units, and then once you extract a closed caption, you parse it to generate text. This last part might be doable using CCExtractor, however you need to decode video
我个人从未接触过“非数字”内容,但我会从研究 MythTV 开始。它是 DVR 系统的开源项目。
http://www.mythtv.org/
I've personally never worked with "non-digit" content, but I'd start with looking into MythTV. It's an open source project for a DVR system.
http://www.mythtv.org/