简体   繁体   English

如何在Windows中的C / C ++中捕获流外视频?

[英]How to capture video out of stream in c/c++ in windows?

最推荐的方式是什么?

This is a pretty big topic. 这是一个很大的话题。 Try looking at OpenCV. 尝试查看OpenCV。 It is nice for image and video manipulation, and you can stream video from files and webcams. 它非常适合图像和视频处理,并且您可以流式传输文件和网络摄像头中的视频。

Take a look at DirectX "Filter Graphs". 看一下DirectX “过滤器图”。 You can use a simple tool from the DirectX SDK called 'Graph Edit' to construct a sequence of DirectShow Filters which can do things like capture video streams from a TV card or decode an MPEG/AVI file and then operate on the data stream and ultimately render it to video/audio or a file. 您可以使用DirectX SDK中称为“图形编辑”的简单工具来构造一系列DirectShow过滤器,这些过滤器可以执行以下操作,例如从电视卡捕获视频流或解码MPEG / AVI文件,然后对数据流进行操作,最终将其呈现为视频/音频或文件。

Most of the DirectShow samples are in VC++. 大多数DirectShow示例均使用VC ++。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM