Linux command
pw-dot 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
pw-dot
Example
pw-dot -j [path/to/file.json]
Example
pw-dot -o [path/to/file.dot] -a
Example
pw-dot -o - -d
Example
pw-dot -r [remote_name] -s
Example
pw-dot -L
Example
pw-dot -9
Example
pw-dot && dot -Tpng pw.dot -o [pw-graph.png]
说明
pw-dot generates Graphviz DOT files from the PipeWire graph, visualizing the connections between nodes, ports, and devices. The output can be rendered to images using the dot command from Graphviz. This is useful for understanding audio/video routing, debugging connection issues, and documenting system audio configurations.
参数
- -o, --output _file_
- Output file (default: pw.dot, use - for stdout)
- -a, --all
- Show all object types
- -s, --smart
- Show only linked objects
- -d, --detail
- Show all object properties
- -r, --remote _name_
- Connect to remote PipeWire instance
- -j, --json _file_
- Read objects from pw-dump JSON file
- -L, --lr
- Lay graph left to right
- -9, --90
- Use 90-degree angles for edges
- -h, --help
- Display help message
FAQ
What is the pw-dot command used for?
pw-dot generates Graphviz DOT files from the PipeWire graph, visualizing the connections between nodes, ports, and devices. The output can be rendered to images using the dot command from Graphviz. This is useful for understanding audio/video routing, debugging connection issues, and documenting system audio configurations.
How do I run a basic pw-dot example?
Run `pw-dot` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -o, --output _file_ do in pw-dot?
Output file (default: pw.dot, use - for stdout)