I?frame & P?frame & B?frame

Video compression picture types

The three major picture types used in the different video algorithms are I, P and B.
They are different in the following characteristics:
I?frames are the least compressible but don't require other video frames to decode.
P?frames can use data from previous frames to decompress and are more compressible than I?frames.
B?frames can use both previous and forward frames for data reference to get the highest amount of data compression.

I幀獨立壓縮, 解碼時不需依賴其它幀.
P幀需要依賴前邊的I幀才能進(jìn)行解碼, 優(yōu)點是壓縮率比I幀高.

Summary

A sequence of video frames, consisting of two keyframes (I), one forward-predicted frame (P) and one bi-directionally predicted frame (B).

P幀相對于I幀, 僅有三個點的位置向左側(cè)發(fā)生了平移, P幀就是來記錄變化的這部分信息.

An I?frame is an 'Intra-coded picture', in effect a fully specified picture, like a conventional static image file.

conventional:平常的
I幀像一幅平常的靜態(tài)圖片.

P?frames and B?frames hold only part of the image information, so they need less space to store than an I?frame and thus improve video compression rates.
A P?frame ('Predicted picture') holds only the changes in the image from the previous frame.
For example, in a scene where a car moves across a stationary background, only the car's movements need to be encoded.
The encoder does not need to store the unchanging background pixels in the P?frame, thus saving space.
P?frames are also known as delta?frames.

P幀和B幀只包含了圖像的局部信息, 故相對I幀, 僅需更少的空間去存儲.

A B?frame ('Bi-predictive picture') saves even more space by using differences between the current frame and both the preceding and following frames to specify its content.

Intra coded frames/slices (I?frames/slices or Key frames)

  • I-frames are coded without reference to any frame except themselves.
  • May be generated by an encoder to create a random access point (to allow a decoder to start decoding properly from scratch at that picture location).
  • May also be generated when differentiating image details prohibit generation of effective P or B-frames.
  • Typically require more bits to encode than other frame types.

編碼時不需依賴其它幀, 一般來說編碼之后的size比較大.

Often, I?frames are used for random access and are used as references for the decoding of other pictures.
Intra refresh periods of a half-second are common on such applications as digital television broadcast and DVD storage.
Longer refresh periods may be used in some environments.
For example, in video conferencing systems it is common to send I-frames very infrequently.

在數(shù)字電視廣播和DVD存儲時, 一般I幀率的刷新周期在0.5秒左右.
有時, 刷新周期可以適當(dāng)增長, 比如視頻會議的時候, 由于相對來說畫面的變化幅度不會太大, 所以發(fā)送I幀的周期可以長一些.

Predicted frames/slices (P-frames/slices)

  • Require the prior decoding of some other picture(s) in order to be decoded.
  • May contain both image data and motion vector displacements and combinations of the two.
  • Typically require fewer bits for encoding than I pictures do.

Bi-directional predicted frames/slices (B-frames/slices)

  • Require the prior decoding of other frame(s) in order to be decoded.
  • Typically require fewer bits for encoding than either I or P-frames.

小結(jié)

I&P&B 比較簡圖

References:
https://en.wikipedia.org/wiki/Video_compression_picture_types

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子奈嘿,更是在濱河造成了極大的恐慌沃测,老刑警劉巖糯累,帶你破解...
    沈念sama閱讀 218,682評論 6 507
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件逞度,死亡現(xiàn)場離奇詭異悍手,居然都是意外死亡逢慌,警方通過查閱死者的電腦和手機(jī)悠轩,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,277評論 3 395
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來攻泼,“玉大人火架,你說我怎么就攤上這事∶Σぃ” “怎么了何鸡?”我有些...
    開封第一講書人閱讀 165,083評論 0 355
  • 文/不壞的土叔 我叫張陵,是天一觀的道長牛欢。 經(jīng)常有香客問我骡男,道長,這世上最難降的妖魔是什么傍睹? 我笑而不...
    開封第一講書人閱讀 58,763評論 1 295
  • 正文 為了忘掉前任隔盛,我火速辦了婚禮犹菱,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘吮炕。我一直安慰自己腊脱,他們只是感情好,可當(dāng)我...
    茶點故事閱讀 67,785評論 6 392
  • 文/花漫 我一把揭開白布龙亲。 她就那樣靜靜地躺著陕凹,像睡著了一般。 火紅的嫁衣襯著肌膚如雪鳄炉。 梳的紋絲不亂的頭發(fā)上杜耙,一...
    開封第一講書人閱讀 51,624評論 1 305
  • 那天,我揣著相機(jī)與錄音拂盯,去河邊找鬼泥技。 笑死,一個胖子當(dāng)著我的面吹牛磕仅,可吹牛的內(nèi)容都是我干的珊豹。 我是一名探鬼主播,決...
    沈念sama閱讀 40,358評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼榕订,長吁一口氣:“原來是場噩夢啊……” “哼店茶!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起劫恒,我...
    開封第一講書人閱讀 39,261評論 0 276
  • 序言:老撾萬榮一對情侶失蹤贩幻,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后两嘴,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體丛楚,經(jīng)...
    沈念sama閱讀 45,722評論 1 315
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,900評論 3 336
  • 正文 我和宋清朗相戀三年憔辫,在試婚紗的時候發(fā)現(xiàn)自己被綠了趣些。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 40,030評論 1 350
  • 序言:一個原本活蹦亂跳的男人離奇死亡贰您,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出锦亦,到底是詐尸還是另有隱情舶替,我是刑警寧澤,帶...
    沈念sama閱讀 35,737評論 5 346
  • 正文 年R本政府宣布杠园,位于F島的核電站顾瞪,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜陈醒,卻給世界環(huán)境...
    茶點故事閱讀 41,360評論 3 330
  • 文/蒙蒙 一惕橙、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧孵延,春花似錦、人聲如沸亲配。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,941評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽吼虎。三九已至犬钢,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間思灰,已是汗流浹背玷犹。 一陣腳步聲響...
    開封第一講書人閱讀 33,057評論 1 270
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點兒被人妖公主榨干…… 1. 我叫王不留洒疚,地道東北人歹颓。 一個月前我還...
    沈念sama閱讀 48,237評論 3 371
  • 正文 我出身青樓,卻偏偏與公主長得像油湖,于是被迫代替她去往敵國和親巍扛。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 44,976評論 2 355

推薦閱讀更多精彩內(nèi)容