January 10th, 2014, 11:34 PM
I'm using Windows 8 OS, VC 2012.
Using the below link i load avi file in my mfc application.
CAnimateCtrl() Example Code.
It was working Good.
I like to change the avi file Sample.avi instead of Filecopy.avi
Download Sample.avi in inside RawAVIStream.zip
After replace the avi file, the avi file was not running?
again i was changed windows 8 default system avi files to run in mfc application. I was worked properly.
Any restrictions in avi file size to load avi files?
1. I want to load any avi file using file open dialog
2. Play avi file via CAnimateCtrl.
3. Like Windows media player i will Play, Fwd, Rw & Stop my avi file at any time and read the current frame as RGB bytes and store the bytes in file.
Thanks in advance.
January 11th, 2014, 11:00 AM
Animation controls can play only simple AVI clips. Specifically, the clips to be played by an animation control must meet the following requirements:
There must be exactly one video stream and it must have at least one frame.
There can be at most two streams in the file (typically the other stream, if present, is an audio stream, although the animation control ignores audio information).
The clip must either be uncompressed or compressed with RLE8 compression.
No palette changes are allowed in the video stream.
January 15th, 2014, 12:12 AM
Is possible to read frame by frame RGB data in MFC Windows Media Player?
I done to read the whole avi file as RGB Data.
But i like to read frame by frame.
If i pause the avi file means, just i read that frame data.
January 20th, 2014, 10:51 PM
I achived my goal. But, one small complication,
Using this link Extracting AVI Frames, i was created my project and done my work.
I was loaded SAMPLE.AVI file into my project and extract avi video into video frames , then i choosen single frame and convert that frame into RGB data. This is my requirement and i was done.
Note : Download Sample.avi inside RawAVIStream.zip
But, I have only .MOV file.
Using mov to avi convertor, i was convert my .MOV(no audio) file into .AVI file.
Then i was loaded the converted avi file into my project. It was getting error like
line 325: ASSERT(pDIB != NULL);
The above code return pDIB = Null for my .avi file.
//Get the first frame
for (int i=iFirstFrame; i<iNumFrames; i++)
BYTE* pDIB = (BYTE*) AVIStreamGetFrame(pFrame, index); //Here pDIB is NULL
How can i solve this problem? pls help me.
January 21st, 2014, 06:49 AM
There aren't a whole lot of tools out there that can create an AVI in the specific format that CAnimate control needs. (and it's VERY picky about it).
You will need to find creator/conversion tools that explicitely support the format.
Alternatively, create your own animation control. I built one based on animating GIFs for one project because the graphic artists found it impossible to create an avi that properly worked with CAnimateCtrl.
January 31st, 2014, 05:29 AM
I tried to make it in MFC. But i can't finally i found a tool Image Grap.
It will extract images from all kind of video files avi, mpeg, wmv, mts and etc.
I used this tool.
Click Here to Expand Forum to Full Width