473,394 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Read a video frame by frame through a c program

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??
May 1 '12 #1
7 6156
weaknessforcats
9,208 Expert Mod 8TB
Most likely you will need the Windows Media Format SDK to read the file. It's more complicated than a simple sequential read.
May 1 '12 #2
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??
May 2 '12 #3
weaknessforcats
9,208 Expert Mod 8TB
http://www.digitalpreservation.gov/f...dd000091.shtml

There you go. Ultimately, you need the ASF spec.

I stll think you have a better shot by using the SDK. No telling what MS has actually done.
May 2 '12 #4
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 compressedImageSize;
unsigned int horizontalResolution;
unsigned int verticalResolution;
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??
May 2 '12 #5
weaknessforcats
9,208 Expert Mod 8TB
.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.

http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
May 2 '12 #6
ok thanks a ton!mya problem is solved..:)
May 2 '12 #7
how did it get solved?
I have the same problem as you did, and didn't get the true solution among your conversations yet.
Please let me know too
Apr 12 '19 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Guenter | last post by:
Hi, I need to develop an application that displays video 640x480 16-bit per pixel with 30 fps. I would prefer to do that with Python (wxPython) but don't have any experience whether it is...
1
by: Lee | last post by:
I want to develop a finite element analysis program, i know there are many free frames, any suggestion? Under windows environmention
6
by: Rajshekhar | last post by:
hi all, i would like to know how to read .xls file using fopen & getc combination (usual procedure thats follwd for read file).. any ptrs or any function that anybody can suggest?? Rajshekhar
3
by: triplejump24 | last post by:
i LOVE doing c++ programming, but i never can get myself started! Once i figure it out, its fun but anyways here it goes... Im given a file c:\temp\hwk8input.txt, which contains the records of the...
0
by: Marco | last post by:
Hi, I want to write a PyQt4 program, which like a graph-ssh. One side user choose server moder, and other side(s) user choose client mode. Both of them have a GUI, they can connect via socket. ...
9
by: Tyler | last post by:
Hello All: I am currently working on a project to create an FEM model for school. I was thinking about using wxPython to gather the 12 input variables from the user, then, after pressing the...
2
by: ravi kiran kanneganti | last post by:
i'm doing a project which includes the video uploading.....i can upload a photogragh but i'm not able to upload a video...can anyone help me...
0
by: D2 | last post by:
Hi All, I want to read metadata like height, width, length of video file formats like .mov, avi, .mpg etc and possibly one frame as bitmap. Could anyone pl suggest what are the options in...
2
by: dcowboyz31 | last post by:
/* I didnt copy my functions on here so it wouldnt be as long if those could be the problem ill copy those as well */ #include <stdio.h> #include <math.h> #include <stdlib.h> ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.