Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 8-Sep-10 22:36pm
v2
Comments
Sandeep Mewara 9-Sep-10 4:37am    
Cleaned up - small sentence structure, punctuations, etc.
Richard MacCutchan 9-Sep-10 5:45am    
This is not a question that can be answered in a few sentences; you need to do some research into the structure of video images. Take a search through Google for some reference materials.

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900