Solved

C++ -> Converting: AVI & FLIC Movies Frames to Windows DIBS

Posted on 1997-07-10
4
289 Views
Last Modified: 2013-12-03
Hi there,
I am Looking for C++ Code/APIs etc etc that will convert
AVI Movie Frames and FLIC Movie Frames to DIB.

My Problem is How do I Get BitmapInfo From these frames.
I Have tried using AVIFile Functions for Obtaining BitmapInfo from AVI Movies without success and for FLIC Frames I have got a slightest Idea.. Could anyone help me out please.

I am Using VC++ 4.0.
0
Comment
Question by:lupomage
  • 3
4 Comments
 
LVL 23

Expert Comment

by:chensu
ID: 1400551
For AVI, you can refer to Video for Windows DK sample: AVIEDIT. It uses AVIFile functions to extract each frame.

For FLC, you can use Autodesk Animation DLL (AAPLAY.DLL) functions to do so.

HAA aaSetParm(hAa, wType, wValue1, lValue2)

HAA hAa
A handle returned by aaLoad.

WORD wType
AA_FRAMEBITMAP            -      2000

wValue1 is the frame number of the frame whose image is to be returned. lValue2 is the address of a buffer where a handle to a Device Independent Bitmap for the frame is to be stored.  The frame does not need to be visible in order to return the bitmap.

0
 

Author Comment

by:lupomage
ID: 1400552
Thanks for your answer, I going to Look for this AVIEDIT sample and as for AAPLAY.DLL, I am not gonna be able to use it since it is a 16 bit dll (Unless there is 32bit aaplay.dll - I have never come across one).

Looking Forward hearing  from you, if you think you won't be able
to sort out aaplay.dll business just Add a comment and I Will Unlock the question to another expert.


0
 
LVL 23

Expert Comment

by:chensu
ID: 1400553
I am also looking for 32-bit aaplay.dll. But, you can try thunk to call the 16-bit aaplay.dll from 32-bit applications.
0
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 1400554
There is an article: "A WinG Flic Animation Player" by Ton Plooy in "Windows Developer's Journal" October 1995 Volume 6 Number 10. Although it is also 16-bit, the part of reading each frame is the same for 32-bit. You can get the source code at http://www.wdj.com/source.htm and extract what you want. Another article useful for you is "The Flic File Format" in "Dr. Dobb's Journal" March 1993 (http://www.ddj.com).
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question