2020年8月26日 星期三

[Image Processing] Video aspect ratio

markdown 因為工作的關係接觸到了影片的、PAR、SAR、DAR 專有名詞,其實這些專有名詞本身的概念並不難懂,但是因為縮寫的關係,不同的意義卻有同樣的縮寫,例如 Sample Aspect Ratio 跟 Storage Aspect Ratio 縮寫都是 SAR,但這兩個卻是不同的東西,所以容易讓人感到 confuse,下面就簡單介紹一下這些名詞的意思。 ### Storage Aspect Ratio 這個名詞表示影片畫面的原始解析度,例如 HD 影片解析度為 1280 x 720,Storage Aspect Ratio 就會是 1280:720。 ### Display Aspect Ratio 這個名詞表示這個影片應該以甚麼比例播放出來,例如高畫質影片的 16:9 或是 SD 的 4:3。 ### Pixel Aspect Ratio 這個是在說影片的一個 pixel 的長寬比是多少,pixel 的比例在現在的電腦螢幕或 LCD 電視上都是 1:1 沒錯,但是在早期映像管電視的時代就不一定是這樣了,從映像管電視的歷史因素到導致有 Pixel Aspect Ratio 的過程,可以到下方的參考資料連結詳閱。簡單來說,例如 720 x 576 的 SD 影片,為了要在播放時呈現 4:3 的比例,pixel 比例就應該是 59:54,這樣實際畫面就會是 PAR x SAR = 720x59:576x54 = 4:3。 基本上,這三個概念就是全部了,而這三者間的關係就如上面所說 PAR x SAR = DAR。那下面要再介紹兩個名詞,讓你知道為什麼這些看似基本的概念會很讓人疑惑。 ### Sample Aspect Ratio 這個東西基本上其實意義跟 Pixel Aspect Ratio 是一樣的,是包在 MPEG4 container 內的影片 metadata 資訊,可以看到,這個名詞的縮寫是 SAR,但是跟 Storage Aspect Ratio 沒有半毛錢關係。 ### Picture Aspect Ratio 這個東西意思跟 Storage Aspect Ratio 一樣,但是你看,它的縮寫是 PAR =.=。 網路上解釋這三個概念的文章是很多,但是,如果都是用縮寫,你看某篇文章講的 PAR 是 Pixel Aspect Ratio,但是另一篇講的是 Picture Aspect Ratio,你就會被搞混了。 這時就想到[馬斯克講的話](https://www.inside.com.tw/article/12614-elon-musk-productivity-tips-for-tesla-employees),不要用縮寫簡稱,真的精闢,因為溝通誤解造成的成本真的很巨大。 --- * [PAR, SAR, and DAR: Making Sense of Standard Definition (SD) video pixels](https://bavc.org/blog/par-sar-and-dar-making-sense-standard-definition-sd-video-pixels#fn6) * [Advanced Aspect Ratios - PAR, DAR and SAR](https://www.animemusicvideos.org/guides/avtech3/theory-videoaspectratios.html) * [Aspect Ratios](https://www.animemusicvideos.org/guides/avtech31/theory-videoaspectratios.html) * [Aspect Ratio – Understanding the Information and Using the Filter](https://blog.ampedsoftware.com/2016/03/17/aspect-ratio-understanding-the-information-and-using-the-filter/) * [Video aspect ratios](https://riptutorial.com/video/topic/5713/video-aspect-ratios) * [Introduction to Aspect Ratio](http://blog.ampedsoftware.com/2016/03/14/introduction-to-aspect-ratio/)