X264视频可以压缩到多小?
2011-6-6 我爱糯米
halfcd 一般使用640分辨率,4:3的标准画面比例则是640×480=307200个像素,16:9宽屏画面比例则是640×360=230400个像素。307.2k(每个画面的容量)×25(每秒桢数)×60(每分钟)×90(标准片长)=41472000K即41472M,现在的图像压缩技术水平可以压缩的极限是1%,那么最好的理想情况下一个标准画面标准片长的影片映画部分的容量应为414.72M(相同对应的6:9的宽屏则为311.04M)。音频方面,正常的人耳能感受到的频率范围是20Hz~20KHz,加上一些谐振频率,故为保证音效,采样频率应在22KHz以上,一般取25KHz~32KHz。32k×60(每分钟)×90(标准片长)×2(声道)=345600k即345.6M,mp3压缩技术是1/10(34.56M),AAC是1/20(17.28M)。以此可推算出,在现有技术水平下,一部标准时长的16:9(640×360)影片的压缩极限是311.04﹢17.28=328.32M,4:3则是414.72﹢17.28=432M。
1280×720=921600
921.6K(每个画面的容量)×25(每秒桢数)×60(每分钟)×90(标准片长)=124416M
1.24416G。那么,为什么现在可以把1280×720的影片压缩到约700M的呢?嘿嘿……
标签: X264
早期halfcd3的实验参数(仅供有意学习压制的童鞋参考)
2011-5-14 我爱糯米
不断有童鞋索取halfcd3参数,其实压制参数直接用播放软件就可以查看,也有专门的视频编码分析查看软件可以得到这些参数。真正的技术来自于压制者对软件的灵活应用,而不是套用别人的参数。
下面是早期halfcd3的实验参数,仅供有意学习X264压制技术的童鞋参考,现在定型的halfcd3成品参数会有所不同。
<?xml version="1.0"?>
<GenericProfileOfx264Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>NORM-HALFCD3</Name>
<Settings>
<EncodingMode>4</EncodingMode>
<BitrateQuantizer>600</BitrateQuantizer>
<KeyframeInterval>250</KeyframeInterval>
<NbBframes>16</NbBframes>
<MinQuantizer>10</MinQuantizer>
<MaxQuantizer>51</MaxQuantizer>
<Turbo>true</Turbo>
<V4MV>false</V4MV>
<QPel>false</QPel>
<Trellis>false</Trellis>
<CreditsQuantizer>40</CreditsQuantizer>
<Logfile>.stats</Logfile>
<VideoName />
<CustomEncoderOptions />
<FourCC>0</FourCC>
<MaxNumberOfPasses>3</MaxNumberOfPasses>
<NbThreads>0</NbThreads>
<x264Preset>4</x264Preset>
<x264Tuning>0</x264Tuning>
<QuantizerCRF>600</QuantizerCRF>
<EncodeInterlaced>false</EncodeInterlaced>
<NoDCTDecimate>false</NoDCTDecimate>
<PSNRCalculation>false</PSNRCalculation>
<NoFastPSkip>false</NoFastPSkip>
<NoiseReduction>0</NoiseReduction>
<NoMixedRefs>false</NoMixedRefs>
<X264Trellis>2</X264Trellis>
<NbRefFrames>16</NbRefFrames>
<AlphaDeblock>0</AlphaDeblock>
<BetaDeblock>0</BetaDeblock>
<SubPelRefinement>8</SubPelRefinement>
<MaxQuantDelta>4</MaxQuantDelta>
<TempQuantBlur>0</TempQuantBlur>
<BframePredictionMode>3</BframePredictionMode>
<VBVBufferSize>0</VBVBufferSize>
<VBVMaxBitrate>0</VBVMaxBitrate>
<METype>2</METype>
<MERange>32</MERange>
<MinGOPSize>25</MinGOPSize>
<IPFactor>1.4</IPFactor>
<PBFactor>1.3</PBFactor>
<ChromaQPOffset>0</ChromaQPOffset>
<VBVInitialBuffer>0.9</VBVInitialBuffer>
<BitrateVariance>1.0</BitrateVariance>
<QuantCompression>0.6</QuantCompression>
<TempComplexityBlur>20</TempComplexityBlur>
<TempQuanBlurCC>0.5</TempQuanBlurCC>
<SCDSensitivity>40</SCDSensitivity>
<BframeBias>0</BframeBias>
<PsyRDO>0.0</PsyRDO>
<PsyTrellis>0</PsyTrellis>
<Deblock>true</Deblock>
<Cabac>true</Cabac>
<UseQPFile>false</UseQPFile>
<WeightedBPrediction>true</WeightedBPrediction>
<WeightedPPrediction>2</WeightedPPrediction>
<NewAdaptiveBFrames>2</NewAdaptiveBFrames>
<x264BFramePyramid>0</x264BFramePyramid>
<ChromaME>true</ChromaME>
<MacroBlockOptions>2</MacroBlockOptions>
<P8x8mv>true</P8x8mv>
<B8x8mv>true</B8x8mv>
<I4x4mv>true</I4x4mv>
<I8x8mv>true</I8x8mv>
<P4x4mv>true</P4x4mv>
<AdaptiveDCT>true</AdaptiveDCT>
<SSIMCalculation>false</SSIMCalculation>
<Lossless>false</Lossless>
<QuantizerMatrix>Flat (none)</QuantizerMatrix>
<QuantizerMatrixType>0</QuantizerMatrixType>
<DeadZoneInter>21</DeadZoneInter>
<DeadZoneIntra>11</DeadZoneIntra>
<AQmode>1</AQmode>
<AQstrength>1.0</AQstrength>
<QPFile>.qp</QPFile>
<fullRange>false</fullRange>
<x264AdvancedSettings>false</x264AdvancedSettings>
<Lookahead>40</Lookahead>
<NoMBTree>true</NoMBTree>
<ThreadInput>true</ThreadInput>
<NoPsy>false</NoPsy>
<Scenecut>true</Scenecut>
<X264Nalhrd>false</X264Nalhrd>
<X264Aud>false</X264Aud>
<SlicesNb>0</SlicesNb>
<MaxSliceSyzeBytes>0</MaxSliceSyzeBytes>
<MaxSliceSyzeMBs>0</MaxSliceSyzeMBs>
<Profile>2</Profile>
<Level>15</Level>
</Settings>
</GenericProfileOfx264Settings>