如何分析视频流

发布于 2024-07-25 02:53:05 字数 100 浏览 8 评论 0原文

是否可以动态分析视频流? 例如,假设我安装了电视调谐器,并且想要每 0.5 秒进行一些像素测试。 人们将如何进行分析? 如果是视频文件(即 .mpg / .wma),程序是否相同?

Is it possible to analyze a video stream on the fly? For example, say i have a TV tuner installed and want to do some pixel testing every .5 seconds. How would one go about doing analysis? Would it be the same procedure if it was a video file (ie .mpg / .wma)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

靑春怀旧 2024-08-01 02:53:06

如果是视频文件,则必须解压缩它才能获取像素信息。 如果您不想在像素级别进行分析,则基本上需要进行屏幕截图或转储到磁盘。 如果你能做到这一点,那么你就可以访问视频帧数据,并且你可以开始处理它。

如果您使用的是 Windows,我无法帮助您,但是有一些很棒的工具,您可以在其中以图形方式将过滤器放置在从电视调谐器到磁盘的链中的某个位置。

如果您使用的是 Linux,则可以使用 v4l2 捕获示例。

If it was a video file, you would have to decompress it to get the pixel information. If you wan't to do analysis at the pixel level, you basically needs to do a screenshot or a dump to disk. If you can do that, then you have access to the video frame data, and you can start to mess with it.

If you are on windows, I can't help you, but there are handsome tools where you can graphically put a filter at some point in the chain from your tv tuner to your disk.

If you are on linux, the v4l2 capture example is the way to go.

耳根太软 2024-08-01 02:53:06

是的,这是可能的,但强烈建议使用特殊的非 PC 硬件

Yes, it's possible but it is very recommended to use special non-pc hardware

℉絮湮 2024-08-01 02:53:05

是的,看看 OpenCV

Yes it is, have a look at OpenCV

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文