# GStreamer 命令行用例

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

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

## 前提条件

- 要访问您的主机设备，请启用 SSH。相关说明，可参见[使用 SSH 登录](https://docs.qualcomm.com/bundle/publicresource/topics/80-70017-254/how_to.html#use-ssh)。
注释： 如果启用了 SSH，则可以跳过此先决条件。
- 进入 SSH shell 并运行用例：

        ssh root@<ip-addr of the target device>Copy to clipboard
- 启用显示屏：

        export XDG_RUNTIME_DIR=/dev/socket/weston && export WAYLAND_DISPLAY=wayland-1Copy to clipboard
- 从 Linux 主机推送文件：

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

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

## 示例应用程序支持的输入源

Table : 支持的输入源

| SoC | 摄像头输入 | 文件输入 | RTSP 输入 |
| :--- | :--- | :--- | :--- |
| QCS6490 | ✔ | ✔ | ✔ |
| QCS9075 | ❌ | ✔ | ✔ |
| QCS8275 | ❌ | ✔ | ✔ |

注释： 对于 QCS8275，不支持音频用例。

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

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

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

Last Published: Nov 11, 2025

[Previous Topic
将 Qualcomm IM SDK 部署为容器](https://docs.qualcomm.com/bundle/publicresource/80-70017-50SC/topics/application-deployment-within-container-api-gstd.md) [Next Topic
机器学习用例](https://docs.qualcomm.com/bundle/publicresource/80-70017-50SC/topics/machine-learning-use-cases.md)