從wireshark中獲取H264碼流詳解

2021-08-13 15:16:06 字數 1564 閱讀 2012

2、讀readme.md 全文如下:

# h264extractor

wireshark plugin to extract h264 stream from rtp packets, support single nal unit mode(rtp packetization mode 0),  fu-a and stap-a.  in addition, opus stream is supported as well.

# how to use h264extractor

* copy rtp_h264_extractor.lua to the directory where wireshark was installed

* edit init.lua,  make sure "disable_lua = false" and add "dofile(data_dir.."rtp_h264_extractor.lua")"

* when open pcap file in wireshark,  decode as rtp and configure the h264 dynamic payload types.  

* menu - tools - extract h264 stream from rtp

# how to use opus extractor

* copy rtp_opus_extractor.lua to the directory where wireshark was installed

* edit init.lua,  make sure "disable_lua = false" and add "dofile(data_dir.."rtp_opus_extractor.lua")"

* when open pcap file in wireshark,  decode as rtp.  

* menu - tools - extract opus stream from rtp

# todo

* h265 extractor

# reference

* *

* *

其中h264部分的大意為:

編輯安裝目錄下的init.lua檔案(如win10系統可能編輯不了,需要在其它盤下編輯好後,複製過去),需確認

disable_lua = false,在檔案最後"dofile(data_dir.."rtp_h264_extractor.lua")"。

把rtp_h264_extractor.lua複製到安裝目錄下,開啟wireshark在工具選單多了一項:extract h264 stream from rtp,

如下圖所示:

開啟wireshark, 在解碼為當前值選擇rtp。

檢視rtp包的payload type(如96),那麼在wireshark工具欄選擇編輯-首選項->protocols->h264,

把h264 dynamic payload types設成96。

設定完以上,執行工具-extract h264 stream from rtp,

執行後,會生成dump.264,一般會放在與碼流檔案同乙個路徑下。

參考: 

全志h2引數 全志H2怎麼樣 H2晶元引數介紹

全志h2晶元怎麼樣,h2處理器好用嗎?h2是基本型ott盒子解決方案。下面帶來h2晶元的具體引數,準備入手搭載h2晶元裝置的使用者可以參考一下。h2晶元架構圖 h2特性介紹 支援h.265 1080p硬解 內建專利麗色顯示系統2.0 h2引數介紹 cpuquad core cortex a7 gpu...

配置h2資料庫

1.新增依賴 com.h2database h21.4.178 2.修改資料庫配置的properties檔案,主要是jdbc.drivername和jdbc.url jdbc.drivername org.h2.driver jdbc.url jdbc h2 mem demo mode mysql ...

h2連線模式

h2連線模式 嵌入方式 本地使用jdbc訪問 伺服器方式 遠端通過tcp ip使用jdbc,odbc訪問 混合方式 同時相容嵌入方式和伺服器方式 嵌入方式 jdbc h2 file home目錄 jdbc h2 test 其他 jdbc h2 file c jdbc h2 file 記憶體資料庫 資...