C ++视频对象捕获 [英] C++ video object capture

查看:98
本文介绍了C ++视频对象捕获的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试打开二进制格式的视频文件,并抓住正确的像素代表一个对象.

我有点困惑.我可以正确打开文件并获取信息,但是我不知道我在看什么.
我试图避免使用一些已经设计好的外国libray.我只需要知道它是由什么组成的.有人知道这些位是如何打包的吗?

如果绝对需要,我将使用其他人的库.

旁注:这不是上学或其他任何东西.我实际上是想开发一种商业产品,这是较早的部分之一,可能也是最难的部分.
我对视频的经验较少.

I am trying to open a video file in binary format and grab the correct pixels to represent an object.

I am a little confused. I can open the file correctly and grab the information but I don''t know what i am looking at.
I am trying to avoid using some foreign libray already designed. I just need to know bits are it made of. Does anyone know how those bits are packed away?

If I absolutely have to, I will use someone elses library.

Side note: This is not for school or anything. I am actually tring to create a commercial product and this is one of the earlier parts and possibly the hardest one.
I have less experience with video.

推荐答案

视频文件格式很多,在文件格式中,编解码器通常用于编码/解码实际像素等.例如,.avi文件.有.avi文件格式,如果您了解该格式,则可以读取文件,但实际上要从视频中获取像素,您必须使用文件中指示的编解码器(编码为程序安装在您知道如何对视频进行编码/解码的计算机上.

最好的选择是找到一个好的API并使用它.我过去使用过Windows Media API,并在其中取得了成功.检出MSDN库并浏览多媒体API.
There are many video file formats and within a file format a codec is usually used to encode/decode the actual pixels and such. For example, .avi files. There''s the .avi file format which if you understand that would allow you to read the file, but to actually get pixels out of the video you''d have to use the codec indicated in the file (the coded is the program installed on your machine which knows how to encode/decode the video).

Your best bet is to find a good API and use that. I''ve used the Windows Media APIs in the past and had success with them. Check out the MSDN library and look through the multi-media APIs.


这篇关于C ++视频对象捕获的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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