如何分析视频流
是否可以动态分析视频流? 例如,假设我安装了电视调谐器,并且想要每 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果是视频文件,则必须解压缩它才能获取像素信息。 如果您不想在像素级别进行分析,则基本上需要进行屏幕截图或转储到磁盘。 如果你能做到这一点,那么你就可以访问视频帧数据,并且你可以开始处理它。
如果您使用的是 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.
是的,这是可能的,但强烈建议使用特殊的非 PC 硬件
Yes, it's possible but it is very recommended to use special non-pc hardware
是的,看看 OpenCV
Yes it is, have a look at OpenCV