Favorite Compression Codec?

Skip to first unread message

Kevin Coffey

Jul 10, 2023, 3:16:04 PM7/10/23
to Miniscope
Hey all, does anyone have a favorite compression codec that optimizes for size and quality? There are a lot of options, so I was wondering if anyone has done the testing to land on an ideal codec.


Nate Klett

Jul 17, 2023, 6:34:24 AM7/17/23
to Miniscope
I use "GREY." Not sure about size and quality, but this is at least a generally readable format for other programs such as ImageJ

Daniel Aharoni

Jul 17, 2023, 4:18:52 PM7/17/23
to Nate Klett, Miniscope
Hi Kevin,
We suggest using GREY or FFV1 for neural recordings. GREY does not do any compression of the data and, as Nate said, is likely the easiest to load up into analysis pipelines. FFV1 is a lossless compression codec and can generally cut the files sizes by around 1/3. The trade off is some video playback software doesn't decode this compression so you have to do a little more work when viewing or processing the data. You can search this forum for more info on this.

Long story short, if you are space limited, we suggest using GREY. If you want to save a bit of space, use FFV1. We don't recommend any other codecs for neural imaging data as others are lossly and often perform poorly. That said, MJPG or similar can be used with behavior recordings usually.

You received this message because you are subscribed to the Google Groups "Miniscope" group.
To unsubscribe from this group and stop receiving emails from it, send an email to miniscope+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/miniscope/8374e08f-0e93-4ac0-a31c-9852294946a1n%40googlegroups.com.

Daniel B. Aharoni, PhD
Assistant Professor
Dept. of Neurology, UCLA

Kevin Coffey

Jul 17, 2023, 5:10:01 PM7/17/23
to Miniscope
Perfect, thanks for the quick and thorough response!
Reply all
Reply to author
0 new messages