Question

In Delphi XE2, I try to use websend.avi as a custom resource for TAnimate, by including it in Project/Resources and Images, in the same way as referred here:

enter image description here

Animate1.ResName := 'WEBSENDAVI';
Animate1.Active := True;

However, while the same procedure works fine with cool.avi, it always crashes with websend.avi:

enter image description here

So it seems TAnimate can accept only certain AVI files, while it crashes with other AVI files.
Which are the rules for AVI files to work with TAnimate in the above way?

Was it helpful?

Solution

The documentation explains that you can use AVI files with raw uncompressed frames, or with run length encoding compression. The AVI of yours that fails does not meet those requirements.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top