Scanning film to EXR?

So we're in the final stages of building a 14k scanner that can handle 35mm through 15perf IMAX, with lots of weird specialty formats in between. The transport is complete, the lighting is working, the camera is now under software control, and I'm coding up the user-facing application now.

Here it is a few weeks ago before we had our own software taking the images:

To be clear, very few clients are really that interested in 14k files, and most scans will be closer to 8k depending on the format and the orientation of the film anyway. Really only 15p IMAX would be 14k the way we have it set up and we're not expecting a ton of that format. But some have said that they want the high res files for backup, while deliverables will be in more standard resolutions like 4k. So we'll be able to output DPX as we've planned all along, using a different library.

Almost all of the image processing work we're doing is done in OpenCV, which happens to have EXR support built in. I really don't use this format on a day to day basis so I don't know a ton about it. Most of our scanning work is currently done to DPX or ProRes files on a different machine.

I guess I'm wondering if there's an advantage to using EXR over DPX, especially for the really huge files, or if there are any pitfalls? Odds are clients who want the high res files will want them as DPX so there would be a conversion, but for internal use, if there's any space savings without sacrificing quality, we're interested. These files are going to be gigantic. And these are archival clients, so the scans have to be to an uncompressed format for most (some have come around to scanning to ProRes 4444, which is great, but most still want uncompressed scans even though the files are much harder to manage).
 
I like how EXR (with PIZ compression) files go corrupt VS dpx. Damaged line or rest of the image cannot be decoded.

Also losless compression rocks, fully uncompressed these days is identical to driving Fiat S76 with 28L engine and then writing how eco-friendly and sustainable that is.
 
Also losless compression rocks, fully uncompressed these days is identical to driving Fiat S76 with 28L engine and then writing how eco-friendly and sustainable that is.

You don't need to tell me... I've been fighting to get people to use ProRes 4444 for years, after we did a set of tests showing that there is effectively no difference between it and DPX images scanned on our scanner. 8x smaller files, and easier to play back on more modest hardware.

But a lot of film archives are still stuck in the past with this stuff and the closest thing to a compressed format they've coalesced around is FFV1, which is its own special kind of hell, and wholly unsuitable as a format to scan to.
 
What about jpeg 2000? It has tile adaptable sizes. Also would be really cool if you could make a buffer so you can capture at a higher image resolution and then downsize on the fly so when you're done you only have small sizes. If you're going linear you should use DPX 16-bit, 10 bit won't be enough. If you don't need the metadata of a eXR, DPX might be smaller. I don't think that you could compress on the fly the zip compression of the eXR piz unless you had a super computer.
 
Lossless EXR is a good way to go vs DPX. Keep in mind the format limitation of exr when creating the files. Prorez isn't a great format for archive it likely wrecks a studios film pipeline and isn't supported by most film restoration and dust-busting tools.

How many frames per second do you get off your device? What type of elements can you scan?
 
I'd use IMF with lossless JPEG2000:

Best compression efficiency
Open standard with many evolutions
File sequences embedded in one MXF
Lot of metadatas
Checksums to avoid frame corruption
 
Last edited:
Lossless EXR is a good way to go vs DPX. Keep in mind the format limitation of exr when creating the files. Prorez isn't a great format for archive it likely wrecks a studios film pipeline and isn't supported by most film restoration and dust-busting tools.

That's not true about software support - Phoenix, PFClean (bleech), and I think Diamant all support ProRes natively. I *think* MTI can now too, but internally it converts to DPX? Not positive on that but it was historically DPX based.

How many frames per second do you get off your device? What type of elements can you scan?

It is not fast. At full res, color will be 1fps. The scanner is sequential RGB like the Arriscan/Director/Xena, using a monochrome camera. For B/W film we can do about 3fps. That's really a limitation of the camera itself. In the future a faster camera could replace what we have but speed is not really our concern here. We built gates that can handle 35mm (basically any 35mm configuration from techniscope to vistavision), a proprietary archival format I can't discuss publicly, and 70mm.

The 70mm gate can do up to 15p IMAX. The stuff loaded in the scanner in that video is 10 perf though. For formats like 5-perf 70 we should be able to triple the scan speed, more or less, by scanning three frames at once and having the software break it down before the files are written. That's because those formats travel through a projector vertically, so there's no loss in resolution if we grab three at once - the scanner camera is oriented for 15p, so the max res for 5-perf would be about 10k as it runs through the machine perpendicular to the frame orientation of IMAX.

We should have this running by the end of the year for B/W, and the person doing our color science will be starting as soon as we have it capturing and registering frames reliably. Putting all the pieces of code I've written over the last several years together now...
 
Last edited:
It is not fast. At full res, color will be 1fps. The scanner is sequential RGB like the Arriscan/Director/Xena, using a monochrome camera. For B/W film we can do about 3fps. That's really a limitation of the camera itself. In the future a faster camera could replace what we have but speed is not really our concern here. We built gates that can handle 35mm (basically any 35mm configuration from techniscope to vistavision), a proprietary archival format I can't discuss publicly, and 70mm.
I know that the Arriscan XT is about 2fps in 4K HDR, last time I checked. I believe it can go faster in non-HDR. Scannity is a lot faster, but you can argue about picture quality back and forth. I think The Arriscanner XT, Scannity, and I think Lasergraphics is at about 8fps. I kind of don't care about the scanning speed -- I just want to make sure the final image looks good. And let's face it, a lot of that hinges on the setup and the experience of the operator. I know in LA, I think they can routinely scan a 20-minute reel of film in 4 hours, which is not the end of the world; the whole feature can be scanned by multiple people in a single 24-hour period. Of course, at 2fps... it would take longer.

I agree with Perry that there's a lot of competition in the film scanning hardware business. I'm glad they're still being made and that the level of quality is so high. This is a far cry from (say) 15 years ago, when all we had were Spirit scanners... and those left a lot to be desired. (And in 2010-2011, I was forced to use several Imagica scanners, which were awful -- I think those have gone away.)
 
You don't need to tell me... I've been fighting to get people to use ProRes 4444 for years, after we did a set of tests showing that there is effectively no difference between it and DPX images scanned on our scanner. 8x smaller files, and easier to play back on more modest hardware.

But a lot of film archives are still stuck in the past with this stuff and the closest thing to a compressed format they've coalesced around is FFV1, which is its own special kind of hell, and wholly unsuitable as a format to scan to.

I am convinced that those praising FFV1 are using it to archive SD video files. I did a few tests making UHD FFV1 files and reasonably fast computers (Mac M1 Max, Windows with RTX 4090) couldn't play them back at anything approaching real time -- stuttered like crazy. There are archivists who fall for "conventional knowledge" and like DPX and FFV1 -- both are formats from hell!
 
For those who have not read Perry's DPX vs ProRes 444 blog article check it out here...
The argument against has been made at AMIA meetings, which boils down to, "sure, ProRes works well today because Apple is still around. But what happens if Apple ever goes out of business and stops supporting ProRes?" At least DPX is open source, so there is that.

20 years from now, it's hard to say. Some of us remember back in the 1990s when massive studios like Warner Bros. decided to archive their entire library -- in SD -- on Ampex DCT (which was essentially identical to Digital Betacam, only different). But once HD hit in 1999-2000, all that went out the window. At least a mechanism exists to convert ProRes to DPX to EXR or whatever you have, and do it in an essentially lossless way.

If it were up to me, I think ProRes 444 is fine and certainly "good enough" for 90% of films out there. Cost no object, 444XQ is there and perfectly solid. I tend to think that Apple is (as the saying goes) too big to fail, but anything is possible 20-30-40 years from now.
 
I think the argument for DPX and similar is obsolete once decoding/encoding is available in professional open-source projects - such as ffmpeg. I am using wording professional open-source because it is more pro than anything apple has done in the last 10 years. It will be around for decades to come.

I remember reading somewhere how Kostya Shishkov referenced the apple prores encoder as nothing innovative - just putting together what was already readily available. So on the topic of prores - my authority is Kostya, not apple. He has me convinced that prores is okay to use.
 
Almost all AI processing is based on open source libraries and code. I saw a problem just yesterday with a AI library not processing some video correctly. So for AI processing openexr is superior than than proprietary standards. Another thing is 2d to 3d ai processing like some of the things using Gaussian splatter, having the 14k is nice since the splatter files rebuild the textures and allow extreme zooming/panning in post. I could see a ton of ancient films start to go through this type of processing (ie I’d think that would be a good business case for the small amount of shops that can do high quality 14k processing). Also btw the ai processing is doing a lot of extreme cropping, so something like a horse running in the background getting fully ai converted needs a lot of pixels. [as a sub note, it took apple forever to not have ProRes 4444 issues when they moved to apple silicon]
 
The argument against has been made at AMIA meetings, which boils down to, "sure, ProRes works well today because Apple is still around. But what happens if Apple ever goes out of business and stops supporting ProRes?" At least DPX is open source, so there is that.

The problem boils down to this: There is not, and probably will never be a single format that will work in perpetuity. Film archivists in particular have gotten used to the idea of film being the highest resolution image media out there - which was certainly true for many, many decades. And because of that, and film's long-term stability, it has been a great format to archive to. Those days have pretty much come to an end though. The problem is that film archives are used to the sort of set-it-and-forget-it mindset of archiving on film, where you can make a copy of a film and then you just have to keep it in a climate controlled environment and monitor it. That's a lot of cash outlay up front, but minimal work once the film is made. As long as the conditions are right, that film going to last a century or more and require minimal effort to maintain. But that thinking doesn't apply to digital.

The entire strategy has to change to one of data migration (migration from one file format to another, and migration from one kind of storage media to another). If you think of it this way, the actual file format or storage media you're using at the moment isn't so important, as long as you're not losing picture quality when you create it, the media holds up, and you can convert it to whatever comes next.

We have archival clients who have to choose one or two films PER YEAR to do photochemical restoration on, from collections of thousands of films, because they don't have the money to do more than that. That's clearly unsustainable. Scanning is cheap enough that you could probably scan an order of magnitude more footage than they're duplicating now photochemically (and without the generation loss).
 
I am convinced that those praising FFV1 are using it to archive SD video files. I did a few tests making UHD FFV1 files and reasonably fast computers (Mac M1 Max, Windows with RTX 4090) couldn't play them back at anything approaching real time -- stuttered like crazy. There are archivists who fall for "conventional knowledge" and like DPX and FFV1 -- both are formats from hell!

I'm not sure any are expecting it to play back smoothly since they seem to consider it a storage format more than a playback format. But it adds a whole extra layer of complication (transcoding to ffv1, then transcoding to something you can actually use if you want to work with the footage in a meaningful way). That means you're using up more storage space, and taking more time to get to where you need to be.

A huge problem with ffv1 is that the encoder is single-threaded. I mean, come on. We run Phoenix on a 32-core Threadripper Pro 5975WX with 128GB RAM and crazy fast disks. That's running at 3.6GHz. I tested on that machine and couldn't encode ffv1 faster than 3fps, which isn't much better than other relatively fast machines we have.
 
It would be interesting to see the stages of logical process of anyone requesting 14K uncompressed with reality of 3:1 compression being imperceivable in 4K projection (wavelets excluded).
 
Last edited:
I'd like to see the stages of logical process of anyone requesting 14K uncompressed with reality of 3:1 compression being imperceivable in 4K projection (wavelets excluded).

If you think about it from the perspective of an archivist, your primary goal when making a digital copy of a film is to "do no harm." That is, you shouldn't alter the image (as much as that's possible) and the purpose of doing a scan is to capture as much of the image data as possible without losing anything. Because theoretically, subsequent generations of copies in different formats could alter the picture data.

I get this, and I understand the logic behind it.

But the reality is that most of our archival clients who have scanned to DPX and similar formats at high resolutions, still haven't found a way to deal with all the data. They can't ingest scans we did for them years ago that are still sitting on hard drives because they have nowhere to put the files. It's kind of crazy because those drives are going to fail eventually.

So on the one hand you have the archival community pressing you to avoid using any kind of compression at all, but on the other you have the reality that there's no way to deal with all this data without the right infrastructure (whether that's tape backup, or nearline storage, or cloud).

That being said, even for the clients we have talked with about scanning on our scanner, most won't be doing 14k, rather they'll have us scan at that res and scale down to something more standard like 4/6/8k files.
 
If you think about it from the perspective of an archivist, your primary goal when making a digital copy of a film is to "do no harm." That is, you shouldn't alter the image (as much as that's possible) and the purpose of doing a scan is to capture as much of the image data as possible without losing anything. Because theoretically, subsequent generations of copies in different formats could alter the picture data.

I get this, and I understand the logic behind it.

Yes, it is understandable.

For proper outcomes though logic benefits from context based in reality, theory alone in imaginative may induce pink unicorns dancing on clouds hosting invisible things in GBs per frame feeding hamster mentality.

Probably not the best idea then to inform them that digital sensor captured film is already altered image.


But the reality is that most of our archival clients who have scanned to DPX and similar formats at high resolutions, still haven't found a way to deal with all the data. They can't ingest scans we did for them years ago that are still sitting on hard drives because they have nowhere to put the files. It's kind of crazy because those drives are going to fail eventually.

Yes this is one of the places where that logic of "preserving" shows flaws.

Because managing less data is safer. While keeping all the visible image information.
 
Last edited:
I cannot help myself - a year ago I was in SATIS expo (Paris) and I met some fantastic people there that do QR code 35mm film preservation. I researched this a bit more and it turns out that there is even an artic freezer where some of these QR code films are stored now. For those who are not in the loop - this is basically as good as it gets in the preservation field. The catch here is that the starting point is a question of what is the minimum data amount that is needed to be preserved. Uncompressed is not something that is even discussed here.

What I am on here is that once you get to the real preservation issues - it is really hard to do and plan. Compression is a must and wavelet is so far the closest that we have come to perfection that is not another DCT transform.

They can't ingest scans we did for them years ago that are still sitting on hard drives because they have nowhere to put the files. It's kind of crazy because those drives are going to fail eventually.

You hit the nail on the head here. So true! I have seen my share of this.
 
Back
Top