Solved

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

Posted on 1997-07-10
4
284 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now