Reference articles on history, science, culture and more
Encyclopedia

Lagarith

Open source lossless video codec

Image credit is listed at the end of this article.

Lagarith is an open source lossless video codec written by Ben Greenwood. It is a fork of the code of HuffYUV and offers better compression at the cost of greatly reduced speed on uniprocessor systems. Lagarith was designed and written with a few aims in mind:

Speed
While not as fast as HuffYUV, it still outperforms most other lossless video codecs when it comes to encoding times, although decoding speed may be slower. Recent versions also support parallelizing on multi-processor systems.
Color-space support
Color-space conversions can cause rounding errors, introducing data loss, contrary to the ideal of lossless video compression. Lagarith attempts to avoid this problem by supporting YV12, YUY2, RGB, and RGBA colorspaces.
Keyframes
Disallowing inter-prediction means that each frame can be separately decoded. This makes cutting, joining and seeking much easier.

These three things, as well as being more efficient at compression than HuffYUV, make it editing stage.

Watch videos about LagarithExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Lagarith, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Images, from Wikimedia Commons:

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.