Filmstrips and file formats: Unconventional solutions to (un)usual problems

Earlier this year, Media Preservation received an item for digitization which was unusual for us: a filmstrip.

A mainstay of 20th century classrooms, filmstrips are short rolls of 35mm film containing still images meant to be projected. They were usually accompanied by a sound recording containing narration that paired with each image (and a characteristic “beep” signaling when to advance to the next image). For this reason, filmstrips present a crossroads between our typically separate audiovisual and still-image digitization workflows: the frames are meant to be viewed as individual still images, yet they are also meant to be synchronized to a time-based component. To digitize this item for our preservation repository, we accordingly took a hybrid approach.

Contact sheet view of frames from the filmstrip

While filmstrips can consist of up to 100 frames, this item contained only 18 frames and was less than 18 inches long, making it suitable physically for photographing the frames with our in-house still imaging equipment. Once photographed, I planned to combine the images into a video file so that they could be viewed as a timed sequence. This is a typical process in our audiovisual digitization workflow; motion picture film is digitized as a sequence of still images, one image for each film frame, and then the image sequence is losslessly encoded into a video stream, producing a single video file which contains all the image data. However, there was a problem with this plan: the process we use to do this requires DPX image files, whereas our still image process produces TIFF image files.

How could we package a sequence of TIFF files as a video stream without converting it to another format and losing quality in the process? The excellent software we use for packaging DPX sequences offers a license key for working with TIFF files, but as a solution for a one-off format we’re unlikely to encounter frequently, this didn’t seem ideal.

I did some research and decided to experiment with encoding the images via FFmpeg (see the short glossary at the end of this blog post). First, I tried using the QTRLE codec. QTRLE (short for QuickTime Run-Length Encoded) is a codec that can support lossless compression and images with an alpha channel for transparency information. This worked! My FFmpeg command produced an MOV file containing all images of the TIFF sequence, each as a single video frame. To confirm the losslessness of the encoding, I created MD5 checksum hashes for each TIFF and for each frame of the MOV, and compared them, verifying that the results were the same.

Comparison of MD5 checksums for original TIFF files and QTRLE MOV image frames, showing that they match (Terminal output above the checksums is slightly abridged for clarity.)

However, although this approach was lossless and in a format compatible with our repository, from a preservation standpoint it wasn’t ideal. We prefer to encode media in formats aligned with the Library of Congress Recommended Formats Statement and QTRLE is not recommended format. Additionally, this codec produced minimal compression and had a similar file size compared to the original TIFFs. The 18 TIFFs had a combined file size of 838.8 MB; the QTRLE MOV was 804.6 MB, only 4% smaller. For a single 18-image item, this wasn’t a major issue, but if this approach were to be adopted going forward, it could mean larger file sizes and greater storage costs than necessary.

Since the TIFF images produced in our still image process don’t contain alpha channel information, I was able to experiment with other codecs regardless of their support for this feature. I encoded the images with the FFV1 codec, again in an MOV file due to the requirements of our repository.

FFmpeg command to package the TIFF image sequence into an FFV1 MOV file

This produced a much smaller file: 224 MB, 73% smaller than the original TIFFs. MD5 checksum hashes for each frame of the FFV1 MOV didn’t match the hashes for the original TIFFs, but since the compression is lossless, I reasoned that it should be possible to convert the FFV1 MOV back to TIFFs, which then would have hashes that match.

FFmpeg command to convert the FFV1 MOV file back to a TIFF image sequence

I did this and they matched, showing that we are able to encode a TIFF still image sequence into a single FFV1 MOV, which can be stored in our preservation repository and viewed as a time-based video file, and losslessly extracted back into its original TIFF format.

MD5 checksums for FFV1 MOV frames. (Terminal output above the checksums is slightly abridged for clarity.) The checksums do not match the original TIFF checksums, but…

We now have a viable workflow for filmstrips, combining the digital capture of our still image workflow with the media processing of our audiovisual workflow.

In addition to this use case, my recent attendance at iPRES (the International Conference on Digital Preservation) sparked thoughts about how this process might be useful beyond filmstrips. A session titled “TIFF vs. JPEG2000 – Revisiting the Master Format Debate in Cultural Heritage Digitization” prompted a great deal of conversation.

…when converted back to TIFF files, they match. (MD5 checksums for TIFF files extracted from the FFV1 MOV file; Terminal output above the checksums is slightly abridged for clarity.)

While uncompressed TIFF is a widely adopted, long-standing preservation format for archives, libraries, and museums, this session invited attendees to consider the advantages of formats with lossless compression as a way of addressing storage costs and sustainability as digital collections continue to grow. In particular, the session highlighted the JPEG2000 format as a possible alternative due to its potential for up to 50% smaller file sizes.

While I wasn’t able to attend this session, the conversation around it got me thinking. What if we were to use the process I used with the filmstrip and store book and manuscript TIFFs as MOV (or MKV) files, either via FFmpeg or RAWcooked (with a license key)? If the compression rate achieved with the filmstrip holds, this would result in even greater storage savings than JPEG2000.

A single digitized book can result in hundreds of uncompressed TIFF files; over the past year, we averaged 146 images per book, but this number can be upwards of 600 images for any given book. The size of an individual image file will also vary, but 50 MB per image is a typical file size. At these numbers, digitizing a single book can result in 7.3 GB of uncompressed TIFFs. At an average rate of 1154 books per year, this is 8.4 TB of preservation storage space needed each year for newly digitized books. Multiply that by 3 for backup copies, and the storage costs begin to add up. By storing digitized books as FFV1 MOV or MKVs, could we significantly reduce our storage footprint while retaining the TIFF data losslessly and reversibly as frames of the video file?

To test this idea, I tried out the method on a set of uncompressed TIFF files from a “typical” book digitization: a folder of 412 image files with a total size of 9.77 GB. Following the same process, I created an FFV1 MOV and verified that the checksums of the TIFFs produced from this MOV matched the checksums of the original TIFFs. They matched, and the MOV’s file size was 3.48 GB – 64% smaller than the uncompressed TIFFs. Next, I tried the more standard configuration of FFV1 MKV. The resulting video file had the same 3.48 GB size, and the checksums for TIFFs extracted from it also matched the originals. If the 64% file size reduction is consistent with our digitized books, we could potentially save 5.4 TB of storage space each year (or over 16 TB including backups).

It bears emphasizing that this is an unorthodox idea that would have substantial implications for how digitized books are stored and represented in our repository. A full comparison of benefits and drawbacks would be necessary as part of any further consideration. However, I think unconventional solutions are worthwhile as food for thought in a time of rising storage costs, increasing sustainability concerns, and steady digital collection growth.

—Nina Rao, head of Media Preservation, Emory Libraries

Glossary of terms:

FFmpeg: a command-line software program used for processing video and audio files
codec: a software component that converts digital formats by encoding and/or decoding the data; the term codec is derived from “coder/decoder”
FFV1: a codec used for audiovisual preservation; it allows video content to be compressed losslessly, so that the original video can be restored with no loss of information or quality
checksum: a short string of data derived from a block of digital data (such as a digital image or video frame) that can be used to detect changes to the data; a change in the checksum value indicates a change in the original data
MD5: an algorithm used to generate checksum values
RAWcooked: a software program that losslessly and reversibly encodes a set of raw image files (such as DPX or TIFF files) into a single video file