Solved

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

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Installer 4 76
Please explain "Multi-Tenant Services" 5 99
VS2015 Redefinition errors 4 68
Where did System.Data.Objects go? 2 40
This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
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…

808 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