-
Notifications
You must be signed in to change notification settings - Fork 347
Video Processing Debug Tool
Video processing is an essential component in media driver, we have some tools for debugging purpose, including surface dump, driver log, ddi log etc.
Install media release-internal or debug driver. Please note, release-internal or debug are needed; release version can not support this debug tool for performance and efficiency.
Media starts to switch to device-based and modularized user setting from media driver commit 3cd7bff13eb1e702762610a3b5b1ea90de1099be.
$vim /etc/igfx_user_feature_next.txt (Add below Key path if it's not exist.[Config] section is the registry key media driver to read. [report] section is the key media driver reported. Each item in the format "registry keys name"="keyValue" represents a registry key.)
[config]
[report]
$mkdir -p /data/vp_dump (Surfaces will be dumped in this file folder, please make sure this file folder is writable.)
Add below keys to /etc/igfx_user_feature_next.txt under "[config]".
- "preAll" means the input surface of video processing, "postAll" means the output surface of video processing.
- If the input surface "preAll" is correct, but the output surface "postAll" is corrupted, probably the issue is in video processing driver.
- If the input surface "preAll" is corrupted, please check the component of the pipeline before video processing.
- If the output surface "postAll" is correct, please check the component of the pipeline after video processing.
[config] outfileLocation=/data/vp_dump/ dumpLocations=preAll,postAll
$mkdir -p /data/vp_dump (HLT log will be dumped in this file folder, please make sure this file folder is writable.) Add below keys to /etc/igfx_user_feature_next.txt under "[config]". It will saved HLG log to /data/vp_dump/igd_xxxx.log, which will give you some hints about driver behavior.
[config] Message Print Enabled=1 Message HLT Enabled=1 Codec Message Tags=7 VP Message Tags=7 DDI Message Tags=7 Mhw Message Tags=7 Message HLT Output Directory=/data/vp_dump/
This tool dump the parameters in video processing driver device interface(DDI). It will help you to check if the parameters is expected(which app or media framework passed to driver).
$mkdir /data $export VPDDI_TRACE=/data/vpddi.log
- Build & Install
- GPU HW acceleration enabling
- Known Issues
- Debug Tool