I m trying to read a video frame by frame through a c program for which i need to know the format of .wmv (native video file for windows) file,can i get it??
Read a video frame by frame through a c program
Collapse
X
-
Most likely you will need the Windows Media Format SDK to read the file. It's more complicated than a simple sequential read. -
yes i knwo its complicated,i just need to knw the structure of .wmv file or asf container (by microsoft),so that i can judge where a frame starts or ends in a sequentially stored video in memory(file).
i already know the basic structure of bitmap file ,ie native img frmat fr windows.
I also need to knwo what is the exact format(native one) of a frame of a video??Comment
-
i guess u r getting me wrong
consider
typedef struct
{
char signature[2];
unsigned int fileSize;
unsigned int reserved;
unsigned int offset;
}BmpHeader;
typedef struct
{
unsigned int headerSize;
unsigned int width;
unsigned int height;
unsigned short planeCount;
unsigned short bitDepth;
unsigned int compression;
unsigned int compressedImage Size;
unsigned int horizontalResol ution;
unsigned int verticalResolut ion;
unsigned int numColors;
unsigned int importantColors ;
}BmpImageInfo;
the above are structures of a header n image info of a bitmap file,
can i have something similar for .wmv file??Comment
-
.wmv files are .asf files so you should get the file format from the asf file specification.
I don't think the wmv file format conveniently coded in C for Windows is available other than in the MS Media Format SDK.
Comment
Comment