<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[观夏Note]]></title> 
<link>//gm.angeldm.com/index.php</link> 
<description><![CDATA[新技术番]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[观夏Note]]></copyright>
<item>
<link>//gm.angeldm.com/post//</link>
<title><![CDATA[x264中SAR参数解析]]></title> 
<author>果面 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[系统&amp;软件]]></category>
<pubDate>Sat, 19 Dec 2015 03:04:04 +0000</pubDate> 
<guid>//gm.angeldm.com/post//</guid> 
<description>
<![CDATA[ 
	引用:<br/>1. Sample Aspect Ratio<br/><br/>* What is it?<br/><br/>The Sample Aspect Ratio (SAR) (sometimes called Pixel Aspect Ratio or just<br/>Pel Aspect Ratio) is defined as the ratio of the width of the sample to the<br/>height of the sample. While pixels on a computer monitor generally are<br/>"square" meaning that their SAR is 1:1, digitized video usually has rather<br/>odd SARs. Playback of material with a particular SAR on a system with<br/>a different SAR will result in a stretched/squashed image. A correction is<br/>necessary that relies on the knowledge of both SARs.<br/><br/>* How do I use it?<br/><br/>You can derive the SAR of an image from the width, height and the<br/>display aspect ratio (DAR) of the image as follows:<br/><div class="code"><br/>SAR_x&nbsp;&nbsp;&nbsp;&nbsp; DAR_x * height<br/>-------- = --------------------<br/>SAR_y&nbsp;&nbsp;&nbsp;&nbsp; DAR_y * width<br/></div><br/>for example:<br/><div class="code"><br/>width x height = 704x576, DAR = 4:3 ==&gt; SAR = 2304:2112 or 12:11<br/></div><br/><br/>Please note that if your material is a digitized analog signal, you should<br/>not use this equation to calculate the SAR.<br/><br/>* Should I use this option?<br/><br/>In one word: yes. Most decoders/ media players nowadays support automatic<br/>correction of aspect ratios, and there are just few exceptions. You should<br/>even use it, if the SAR of your material is 1:1, as the default of x264 is<br/>"SAR not defined".<br/><br/>译文：<br/>引用:<br/><br/>1. Sample Aspect Ratio （参照长宽比 or 样本长宽比 - -!用中文真不好表达...）<br/><br/>* sar是什么？<br/><br/>Sample Aspect Ratio (SAR)(有时被称为Pixel Aspect Ratio或 just Pel Aspect Ratio)定义了样本(sample)的宽相对于高的比值，而电脑显示器中的像素(Pixel)往往是“正方形”的(我们的显示器是由点阵组成的，1024x768相当于横向有1024个点，纵向有768个点，所以说，图像的分辨率越高，画面越细腻，原因就是点变小了，我们的眼睛感觉不到它的存在了)，它们的sar是1:1，而数据化的视频往往有一个odd sar，在一个系统上，素材的播放是根据特定的sar来的，不同的sar会导致图像的拉伸或者挤压，一个校正值是必须的，它依赖于两者的SAR必须是已知的(就是说，必须知道原始SAR和目标SAR，才能计算这个校正值)<br/><br/>* 我该怎么使用它?<br/><br/>你可以根据图像的宽，高以及display aspect ratio (DAR)[显示长宽比，就是你想让它在播放的时候有效图像显示的长宽比]来计算出sar，参考以下公式:<br/><br/><div class="code"><br/>SAR_x&nbsp;&nbsp;&nbsp;&nbsp; DAR_x * height<br/>-------- = --------------------<br/>SAR_y&nbsp;&nbsp;&nbsp;&nbsp; DAR_y * width<br/></div><br/><br/>举个例子:<br/><div class="code"><br/>宽（横向） x 高（纵向） = 704x576, DAR = 4:3 ==&gt; SAR = 2304:2112 or 12:11<br/></div><br/><br/>注意，如果你的素材是一个数字化的模拟信号，你不应该使用这个公式去计算sar<br/><br/>* 我该如何去使用这个选项?<br/><br/>引用一句话：是的。大部分的解码器/播放器 都支持自动校正长宽比，但也有少数例外。你甚至可以这样使用它，如果你的素材SAR是1:1,用x264默认值"SAR not defined"(- -!补上X264命令行用法--sar x:y )<br/><br/><br/>OK，看完以上理论，你应该大致明白sar的计算方法了，下面来说说16:9DVD RIP成4:3后还原为16:9的方法<br/><br/>假如我把正统的可变形DVD 720x480 RIP成640x480，而我在播放的时候想重新拉伸成16:9<br/><br/>代入公式：<br/><div class="code"><br/>SAR_x&nbsp;&nbsp; 16 * 480&nbsp;&nbsp;&nbsp;&nbsp; 4<br/>----- = -------------- = ----- = 1.33333333333333...<br/>SAR_y&nbsp;&nbsp; 9&nbsp;&nbsp;* 640&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3<br/></div><br/><br/>公式解释：<br/><div class="code"><br/>输出高X比例宽&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 480X16<br/>------------------ =sar值&nbsp;&nbsp;&nbsp;&nbsp; 例如转一个720X480的16：9的视屏，根据公式得sar=----------=32：27<br/>输出宽X比例高&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;720X9<br/></div><br/><br/>为什么psp中的480P的sar为40：33？原因psp只能显示704x480的视屏，720中的16像素被sony裁去，所以要以704X480代入公式计算，最后得出sar为40：33
]]>
</description>
</item><item>
<link>//gm.angeldm.com/read.php?&amp;guid=0#topreply</link>
<title><![CDATA[[评论] x264中SAR参数解析]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>//gm.angeldm.com/read.php?&amp;guid=0#topreply</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>