📄 advanced video compression - part 1.mht
字号:
pre-processing (discussed later in this guide) on your video =
source,=20
and you don't have the disk space/hard drive throughput to =
edit in a=20
lossless codec like Huffyuv or Lagarith, this is the way to=20
go.<BR><BR></P></TD></TR>
<TR>
<TD vAlign=3Dtop><B>3)</B></TD>
<TD>
<P><B>Huffyuv</B> - Lossless Video Compression, for a =
price.</P>
<P><B>Origins:</B> A guy named Ben Rudiak-Gould wrote this =
wonderful=20
little codec which is a lossless compression codec for both =
YUV and=20
RGB video data.</P>
<P><B>How it Works:</B> Huffyuv is a lossless codec. The =
name stands=20
for Huffman-compressed YUV. Huffman was a guy who came up =
with=20
something called "Huffman entropy encoding" which is =
basically what=20
all lossless compression is originally based off of (Huffman =
coding=20
is used in things like ZIP, RAR, etc). So you could say that =
basically Huffyuv simply ZIPs every frame for its =
compression.</P>
<P><B>Benefits:</B> Obviously, the biggest benefit is that =
you have=20
a perfect recreation of the original video data (unless you =
do <A=20
=
href=3D"http://www.animemusicvideos.org/guides/avtechbeta/colorspace.html=
">colorspace</A>=20
conversions). That means no matter how many times you =
recompress the=20
video in Huffyuv, you'll still have the same video data that =
you had=20
in the beginning. This is a very nice thing. Huffyuv also =
compresses=20
and decompresses video pretty quickly.</P>
<P><B>Disadvantages:</B> Due to the very large space =
requirements=20
(Huffyuv takes a LOT of disk space, sometimes 4x more than =
even DV),=20
disk throughput becomes a very large factor. Playback at =
full=20
resolution and full framerate is a daunting task for even =
the=20
fastest computers. Also, this codec does not support the =
YV12=20
colorspace (although modifications of the codec which DO =
support=20
this colorspace exist).</P>
<P><B>Recommendations:</B> If you have the disk space to =
burn, this=20
is a very viable codec for editing. Huffyuv is also a great =
choice=20
for exporting your final video out of your editing program, =
before=20
you compress it with something else. <BR><BR></P></TD></TR>
<TR>
<TD vAlign=3Dtop><B>4)</B></TD>
<TD>
<P><B>Lagarith</B> - Better, Slower, Lossless Video =
Compression.</P>
<P><B>Origins:</B> In 2004, SirLagsALot released the first =
version=20
of this great codec which was designed to offer greater =
compression=20
than Huffyuv.</P>
<P><B>How it Works:</B> From the official Lagarith web site: =
<BR>
<BLOCKQUOTE>Lagarith is able to outperform Huffyuv due to =
the fact=20
that it uses a much better compression method. Pixel =
values are=20
first predicted using median prediction (the same method =
used when=20
"Predict Median" is selected in Huffyuv). This results in =
a much=20
more compressible data stream. In Huffyuv, this byte =
stream would=20
then be compress using Huffman compression. In Lagarith, =
the byte=20
stream may be subjected to a modified Run Length Encoding =
if it=20
will result in better compression. The resulting byte =
stream from=20
that is then compressed using Arithmetic compression, =
which,=20
unlike Huffman compression, can use fractional bits to =
encode a=20
symbol. This allows the compressed size to be very close =
to the=20
entropy of the data, and is why Lagarith can compress =
simple=20
frames much better than Huffyuv, and avoid expanding high =
static=20
video.</BLOCKQUOTE>
<P><B>Benefits:</B> Like Huffyuv, Lagarith is a lossless =
codec, so=20
you get back exactly what goes into it. In addition to =
offering=20
better compression than Huffyuv (so it doesn't use as much =
disk=20
space), it also has support for additional colorspaces such =
as YV12,=20
and it offers interesting features such as a "reduced =
resolution"=20
mode, which is useful for "bait-and-switch" editing =
(discussed later=20
in this guide). Lagarith is also multithreaded, so that =
means if you=20
have a CPU that can take advantage of this, you will get =
even faster=20
performance. Finally, since it can make smaller files than =
Huffyuv,=20
disk throughput is not as much of a factor, and your hard =
disk is=20
less likely to become a bottleneck when trying to play back =
these=20
files.</P>
<P><B>Disadvantages:</B> Both compression and decompression =
can be=20
slower than HuffYUV. If you have a slower CPU (under 2ghz or =
so),=20
you may want to consider other options. This codec IS =
multitheaded=20
though, whereas HuffYUV is not, so on newer dual core =
processors,=20
this codec may compress and decompress even faster than =
HuffYUV.</P>
<P><B>Recommendations:</B> As long as you have a fairly fast =
CPU, I=20
would recommend that this be your codec of choice. </P>
<P class=3Dbyline align=3Dright>ErMaC, AbsoluteDestiny and =
Zarxrax -=20
February 2006</P></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"75%" =
align=3Dcenter border=3D0>
<TBODY>
<TR>
<TD vAlign=3Dtop noWrap>
<DIV align=3Dcenter><A=20
=
href=3D"http://www.animemusicvideos.org/guides/avtechbeta/video4_2.htm">N=
ext:=20
Page 2 - Distribution Codecs and =
Containers</A></DIV></TD></TR>
<TR>
<TD vAlign=3Dtop noWrap>
<DIV align=3Dcenter><A=20
=
href=3D"http://www.animemusicvideos.org/guides/avtechbeta/index.html"><FO=
NT=20
=
size=3D+1>Index</FONT></A></DIV></TD></TR></TBODY></TABLE></TD></TR></TBO=
DY></TABLE></DIV></BODY></HTML>
------=_NextPart_000_0005_01C81D48.FB41E670
Content-Type: text/css;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.animemusicvideos.org/guides/avtechbeta/new.css
BODY {
MARGIN-TOP: 0px; FONT-SIZE: small; COLOR: #2e1212; LINE-HEIGHT: normal; =
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: =
#cccccc
}
TD {
FONT-SIZE: small; LINE-HEIGHT: normal
}
H1 {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: medium; =
PADDING-BOTTOM: 0px; COLOR: #990000; LINE-HEIGHT: normal; PADDING-TOP: =
0px
}
H2 {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: small; =
PADDING-BOTTOM: 0px; COLOR: #990000; LINE-HEIGHT: normal; PADDING-TOP: =
0px
}
A {
COLOR: #ff4137; TEXT-DECORATION: none
}
.subject {
FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #990000
}
.time {
COLOR: #cc3300
}
A:hover {
COLOR: #990000; TEXT-DECORATION: none
}
B {
FONT-WEIGHT: bold; COLOR: #990000; TEXT-DECORATION: none
}
.index {
FONT-SIZE: 10px; LINE-HEIGHT: 18px
}
.byline {
FONT-SIZE: xx-small; FONT-STYLE: italic
}
DIV.collapse {
BORDER-RIGHT: 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: 1px solid; =
PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; BORDER-LEFT: 1px solid; =
PADDING-TOP: 0px; BORDER-BOTTOM: 1px solid
}
DIV.collapse-title {
BORDER-RIGHT: 1px; BORDER-TOP: 1px; BORDER-LEFT: 1px; BORDER-BOTTOM: =
1px
}
DIV.collapse-div {
CLEAR: both; PADDING-RIGHT: 2px; PADDING-LEFT: 5px; VISIBILITY: =
visible; PADDING-BOTTOM: 2px; MARGIN: 0px 0px 0px 2em; PADDING-TOP: 2px; =
HEIGHT: auto
}
IMG.collapse-img {
BORDER-RIGHT: medium none; PADDING-RIGHT: 2px; BORDER-TOP: medium none; =
PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; VERTICAL-ALIGN: middle; =
BORDER-LEFT: medium none; PADDING-TOP: 2px; BORDER-BOTTOM: medium none
}
.collapse-heading {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: bold; FONT-SIZE: =
medium; PADDING-BOTTOM: 0px; COLOR: #990000; LINE-HEIGHT: normal; =
PADDING-TOP: 0px
}
------=_NextPart_000_0005_01C81D48.FB41E670--
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -