# GStreamer 命令行用例

Source: [https://docs.qualcomm.com/doc/80-70014-50Y/topic/gstreamer-application-use-cases.html](https://docs.qualcomm.com/doc/80-70014-50Y/topic/gstreamer-application-use-cases.html)

GStreamer 提供 [gst-launch-1.0](https://gstreamer.freedesktop.org/documentation/tools/gst-launch.html) 等命令行工具，帮助您执行 AI/ML 和多媒体用例。

## 前提条件

- 在 Permissive 模式下启用 SSH 以安全访问主机设备。相关说明，可参见 [SSH 使用指南](https://docs.qualcomm.com/bundle/publicresource/topics/80-70014-254/how_to.html#how-to-ssh-)
- 使用以下命令进入 SSH shell 并执行用例：

        ssh root@<ip-addr of the target device>Copy to clipboard
- 运行以下命令以启用 Permissive 模式：

        setenforce 0Copy to clipboard
- 运行以下命令，开启显示屏：

        export XDG_RUNTIME_DIR=/dev/socket/weston && export WAYLAND_DISPLAY=wayland-1Copy to clipboard
- 运行以下命令，从主机推送文件：

        scp <filename> root@<IP address of target device>:/opt/Copy to clipboard

- 确保显示器通过 HDMI 端口连接到设备。

- **[机器学习用例](https://docs.qualcomm.com/doc/80-70014-50Y/topic/machine-learning-use-cases.html)**  

TensorFlow Lite runtime 和 Qualcomm Neural Processing SDK runtime 用于机器学习用例中的推理。
- **[多媒体用例](https://docs.qualcomm.com/doc/80-70014-50Y/topic/multimedia-use-cases.html)**  

多媒体用例演示了使用 GStreamer pipeline 的各种多媒体场景。

Last Published: Nov 11, 2025

[Previous Topic
GStreamer 调试工具](https://docs.qualcomm.com/bundle/publicresource/80-70014-50Y/topics/imsdk_debug_gst.md) [Next Topic
机器学习用例](https://docs.qualcomm.com/bundle/publicresource/80-70014-50Y/topics/machine-learning-use-cases.md)