# GStreamer 命令行用例

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

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

## 前提条件

- 确保[下载并安装 eSDK](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-51/install-sdk.html#download-and-install-esdk-)（如果尚未安装）。
- 要访问您的主机设备，请设置 SSH。有关说明，请参阅[使用 SSH 登录](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-254/how_to.html#use-ssh)。
Note: 如果已设置 SSH，则可以跳过此步骤。
- 从 Linux 主机推送文件。

        scp <filename> root@<IP address of target device>:/etc/media/Copy to clipboard
- 使用 HDMI 端口将显示器连接到设备。有关说明，请参见[设置 HDMI 显示器](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-18/samples.html)。
- 激活显示器：

        export XDG_RUNTIME_DIR=/dev/socket/weston && export WAYLAND_DISPLAY=wayland-1Copy to clipboard
- 连接扬声器以激活音频。有关说明，请参见[设置音频硬件](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-16/enable-audio.html)。

如果您遇到摄像头或显示器问题，请参阅[摄像头故障排查](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-17/troubleshooting.html)和[显示器故障排查](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-18/debug.html)。

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

在机器学习用例中使用 LiteRT 和 Qualcomm Neural Processing SDK runtime 进行推理。
- **[运行多媒体用例](https://docs.qualcomm.com/doc/80-70020-50SC/topic/multimedia-use-cases.html)**  

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

Last Published: Jul 23, 2025

[Previous Topic
在 QIM 容器中运行摄像头用例](https://docs.qualcomm.com/bundle/publicresource/80-70020-50SC/topics/container-use-cases-camera.md) [Next Topic
运行机器学习用例](https://docs.qualcomm.com/bundle/publicresource/80-70020-50SC/topics/machine-learning-use-cases.md)