2017-05-29 37 views
0

我使用的是HM-16Scalable HM 12.3將HEVC HM編碼器的圖片結構轉換爲相應的結構

我有這個GOP順序,如下所示。正如你所看到的,我有每種切片類型的QP值。

Encode Order  Type POC  QP 
0 I-SLICE 0 23 
1 P-SLICE 3 26 
2 B-SLICE 2 27 
3 b-SLICE 1 28 
4 P-SLICE 6 26 
5 B-SLICE 5 27 
6 b-SLICE 4 28 

我想將它轉化成一個類似於下面的代碼,我必須定義QPoffset CbQPoffset CrQPoffset QPfactor tcOffsetDiv2 betaOffsetDiv2 temporal_id #ref_pics_active #ref_pics reference pictures predict deltaRPS #ref_idcs reference idcs

#  Type POC QPoffset CbQPoffset CrQPoffset QPfactor tcOffsetDiv2 betaOffsetDiv2 temporal_id #ref_pics_active #ref_pics reference pictures  predict deltaRPS #ref_idcs reference idcs 
Frame1: P 16 1  0   0   0.6  0   0    0   2    3   -16 -24 -32   0 
Frame2: B 8 2  0   0   0.2  0   0    1   2    3   -8 -16 8   1  8  4   1 1 0 1 

你能幫我轉換嗎?

有沒有其他方法可以定義GOP中的B幀或B幀的數量?

回答

0

我找到了考慮HM reference manual的解決方案。

我只考慮一個參考幀,重新排序從B-frame開始的幀。所有B幀參考之前的I-frameP-frames

新的GOP結構如下。

重要的是要提到這裏,B-frame不能有P-frame稍後編碼。更明確地說,具有POC號碼的例如B-frame 1不能參考P-frame,其具有例如POC數量的值。 3.

#  Type POC QPoffset CbQPoffset CrQPoffset QPfactor tcOffsetDiv2 betaOffsetDiv2 temporal_id #ref_pics_active #ref_pics reference pictures  predict deltaRPS #ref_idcs reference idcs 
Frame1: B 1 2  0   0   0.4624 0   0    0   1    1   -1     0  
Frame2: B 2 1  0   0   0.4624 0   0    0   1    1   -2     2  1  
Frame3: P 3 0  0   0   0.4624 0   0    0   1    1   -3     2  2 
Frame4: B 4 2  0   0   0.4624 0   0    0   1    1   -1     2  2   
Frame5: B 5 1  0   0   0.4624 0   0    0   1    1   -2     2  3    
Frame6: P 6 0  0   0   0.4624 0   0    0   1    1   -3     2  3