簡體   English   中英

HEVC:編碼器產生的每個NUL單元的NAL單元跟蹤文件

[英]HEVC: NAL unit trace file for each NUL unit produced by the encoder

我正在使用HM 14.0作為參考。 有沒有辦法獲取有關NAL單元的一些特定信息,例如

(a) type
(b) num_bytes
(c) frame_no
(d) decode_time
(e) priority
(f) timestamp

前兩個我可以通過annexBbytecount獲得,其余的呢?

參考編解碼器帶有一個內置的跟蹤器,功能非常強大!

像這樣啟用它:

diff --git a/source/Lib/TLibCommon/TComRom.h b/source/Lib/TLibCommon/TComRom.h
index 5a59809..1930809 100644
--- a/source/Lib/TLibCommon/TComRom.h
+++ b/source/Lib/TLibCommon/TComRom.h
@@ -158,7 +158,7 @@ extern const UChar g_aucDCTDSTMode_Hor[NUM_INTRA_MODE];
 extern       Char   g_aucConvertToBit  [ MAX_CU_SIZE+1 ];   // from width to log2(width)-2

 #ifndef ENC_DEC_TRACE
-# define ENC_DEC_TRACE 0
+# define ENC_DEC_TRACE 1
 #endif

例如,我在啟用跟蹤的情況下對BQMall_832x480_60.yuv的前20幀進行編碼和解碼。

編碼/解碼后,使用:

./TAppEncoderStatic -c ../cfg/encoder_intra_main.cfg  -c ../cfg/per-sequence/BQMall.cfg
./TAppDecoderStatic -b str.bin 

生成跟蹤文件(相當大!)

$ ll -rt 
total 247100
drwxrwxr-x 12 xx xx      4096 jun 27 10:01 ../ 
-rwxrwxr-x  1 xx xx   2912618 jun 27 10:06 TAppDecoderStaticd*
-rwxrwxr-x  1 xx xx    627714 jun 27 10:06 TAppDecoderStatic*
-rwxrwxr-x  1 xx xx   4036611 jun 27 10:06 TAppEncoderStaticd*
-rwxrwxr-x  1 xx xx   1133295 jun 27 10:06 TAppEncoderStatic*
-rwxrwxr-x  1 xx xx     87319 jun 27 10:06 annexBbytecountStaticd*
-rwxrwxr-x  1 xx xx     29963 jun 27 10:06 annexBbytecountStatic*
-rwxrwxr-x  1 xx xx    369365 jun 27 10:06 convert_NtoMbit_YCbCrStaticd*
-rwxrwxr-x  1 xx xx    113252 jun 27 10:06 convert_NtoMbit_YCbCrStatic*
-rw-rw-r--  1 xx xx    442122 jun 28 21:29 str.bin
-rw-rw-r--  1 xx xx  11980800 jun 28 21:29 rec.yuv
-rw-rw-r--  1 xx xx 168288021 jun 28 21:29 TraceEnc.txt    <----
drwxrwxr-x  2 xx xx      4096 jun 28 21:31 ./
-rw-rw-r--  1 xx xx  62975377 jun 28 21:31 TraceDec.txt    <----

看看TraceEnc.txtTraceDec.txt它們包含您需要知道的所有內容!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM