Patch - read support for Adobe Filmstrip (.flm) files

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Patch - read support for Adobe Filmstrip (.flm) files

Matt Westcott
I recently found myself needing to process some Adobe Filmstrip (.flm) files with PIL. This format was apparently introduced with Adobe Premiere, and is described here:
It's a remarkably simple format (consisting of a sequence of uncompressed RGBA images along with a fixed 36-byte header at the end), and so I've put together a straightforward file decoder plugin to provide read-only support for the format - I hope this will be useful to others. You can find a sample .flm file here (zipped), for testing:

The 'open' method sets the following info properties:
frame_count - number of images in the sequence
fps - frame rate specified by the file, in frames per second
The 'seek' and 'tell' methods are implemented for moving between frames - random access is supported.

Kind regards,
- Matt Westcott

Image-SIG maillist  -  [hidden email] (2K) Download Attachment