Lossless video compression - Now with less bytes!

Locked
User avatar
Torchlight
Joined: Thu Dec 26, 2002 5:30 pm
Location: Ames, IA
Org Profile

Post by Torchlight » Sat Apr 17, 2004 4:50 pm

looks promising for smaller source files, but would there be any advantage over huffyuv to those with plenty of storage space?

User avatar
Sir_Lagsalot
Joined: Mon Jun 23, 2003 6:42 pm
Org Profile

Post by Sir_Lagsalot » Sat Apr 17, 2004 5:25 pm

"would there be any advantage over huffyuv to those with plenty of storage space?" If you have the space, Huffyuv will better for editing since it is faster. However, I found that premiere doesn't like codecs that expand video, so I ended up exporting a section of my most recent video (shameless plug!) http://www.animemusicvideos.org/members ... hp?v=35844 in Lagarith since Huffyuv would crash premiere on this scene (its at 1:04).
Additionally, if you have lengthy videos clips that are simple stuff like masks, text, etc, then Lagarith can provide a significant space savings while still having decent speeds.

"I wonder if more of the gain comes from the arithmetic coding or the selective RLE. Good ideas." They complement each other. The RLE reduces the size by a few percentage points normally, but also keeps the byte steam very compressible for the arithmetic coder.

Also, with converting to YUV, its not just the formula, for stuff like YUV2 you also have to match the method used to interpolate between the croma values. It might happen, paticularly if the codec catches on =)

"Can we see source?" If some one wants to, I'll let them, but it is huge mess. No comments, obtuse code, inline assembly in sections, depricated functions...

User avatar
Sir_Lagsalot
Joined: Mon Jun 23, 2003 6:42 pm
Org Profile

Post by Sir_Lagsalot » Sat Apr 17, 2004 5:43 pm

Zarxrax, by RGB32, do you mean RGB24 + padding byte, or RGBA video?

User avatar
AbsoluteDestiny
Joined: Wed Aug 15, 2001 1:56 pm
Location: Oxford, UK
Contact:
Org Profile

Post by AbsoluteDestiny » Sat Apr 17, 2004 6:08 pm

I'm certainly considering putting this in the AMVapp but my main concern with codecs used for archiving is their futur-proofness.

This codec is young so I'd be worried about future versions not being backwards compatible.

Otherwise I think it's great code and could really help out with transferring files in mutil creator projects :)

More colourspaces would rock though :P

User avatar
Corran
Joined: Mon Oct 14, 2002 7:40 pm
Contact:
Org Profile

Post by Corran » Sat Apr 17, 2004 6:28 pm

AbsoluteDestiny wrote:More colourspaces would rock though :P
Yeah, Instead of converting the colorspace in AviSynth or enabling Full Processing Mode, I tried compressing using fast recompress in Vdub on an avs file in the YUV colorspace. The file would crash anything I put it in including windows explorer with the preview sidebar.

The HuffYUV with the YUV colorspace was almost 200 megs smaller than the Lagalith RGB encoded version.

The Lagalith encode was indeed 200 megs smaller than its RGB HuffYUV couterpart though.

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Post by Zarxrax » Sat Apr 17, 2004 6:40 pm

Sir_Lagsalot wrote:Zarxrax, by RGB32, do you mean RGB24 + padding byte, or RGBA video?
RGBA

trythil
is
Joined: Tue Jul 23, 2002 5:54 am
Status: N͋̀͒̆ͣ͋ͤ̍ͮ͌ͭ̔̊͒ͧ̿
Location: N????????????????
Org Profile

Post by trythil » Sat Apr 17, 2004 6:44 pm

Sir_Lagsalot wrote:Zarxrax, by RGB32, do you mean RGB24 + padding byte, or RGBA video?
Just curious, but how does that make a difference at the bit/byte-level perspective?

Also, it'd be great if you would release the source, no matter how messy it may be :)

User avatar
Sir_Lagsalot
Joined: Mon Jun 23, 2003 6:42 pm
Org Profile

Post by Sir_Lagsalot » Sat Apr 17, 2004 7:46 pm

"Just curious, but how does that make a difference at the bit/byte-level perspective?" It doesn't. At the compression level though, alpha has information that needs to be preserved, while padding doesn't.

"I tried compressing using fast recompress in Vdub on an avs file in the YUV colorspace. The file would crash anything I put it in including windows explorer with the preview sidebar. " Attempting to compress like that shouldn't work, the codec should only accept RGB24 video to compress... something I'll look into.

User avatar
Sir_Lagsalot
Joined: Mon Jun 23, 2003 6:42 pm
Org Profile

Post by Sir_Lagsalot » Tue Apr 20, 2004 10:34 am

Updated the codec. A few bug fixes, including an array overrun that would crash WMP and Windows preview, and the encoder not flushing correctly in certain cases. It should also encode faster now for people with a SSE2 capable processor.

User avatar
fyrtenheimer
Joined: Sun May 05, 2002 11:34 am
Org Profile

Post by fyrtenheimer » Mon Apr 26, 2004 8:54 pm

..i love this codec?
Image

Locked

Return to “Video & Audio Help”