Lossless compression with IDLffVideoWrite [message #93478] |
Mon, 01 August 2016 06:06  |
dg86
Messages: 118 Registered: September 2012
|
Senior Member |
|
|
Dear Folks,
I'd like to store sequences of tens of thousand of grayscale images as video files for
playback and subsequent retrieval. Being able to retrieve the individual frames in their
original state is an important part of the application. It appears that IDLffVideoWrite
only supports codecs with lossy compression. These introduce compression artifacts
into the stored data. Is there a way to configure IDLffVideoWrite to use lossless compression?
Storing video data as rawvideo (no compression) is lossless, but isn't a great option
because IDLffVideoWrite only supports RGB images, and so inflates the file size by
a factor of 3 relative to just writing the data to a binary file.
Lossless compression with the h264 codec would be ideal, but requires replacing IDL's
ffmpeg libraries, which I'd like to avoid because of library version mismatches. I'm looking
for a solution that offers compression without artifacts using the standard
IDL installation.
Any pointers would be much appreciated.
Many thanks,
David
|
|
|
Re: Lossless compression with IDLffVideoWrite [message #93481 is a reply to message #93478] |
Mon, 01 August 2016 07:35  |
markb77
Messages: 217 Registered: July 2006
|
Senior Member |
|
|
Do you need to save the video "on-the-fly" i.e. as you acquire it, or can you buffer it to memory before saving?
If you don't need to save it on the fly, it would seem fairly straightforward to save your images as, for example, a compressed TIFF stack, perhaps using the OME-TIFF standard. These files can then be read by ImageJ, and also created/accessed using the Bio-formats library, etc.
Mark
|
|
|