# 示例程序

Source: [https://docs.qualcomm.com/doc/80-70015-20SC/topic/samples.html](https://docs.qualcomm.com/doc/80-70015-20SC/topic/samples.html)

通过使用 V4L2 接口或使用 [IM SDK](https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-50/overview.html) 框架，可以在原生层有效地使用视频功能。Qualcomm 提供基于 V4L2 和 GStreamer 的示例应用程序，使您能够运行示例用例。

**V4L2 示例**

`iris_v4l2_test` 是一个示例视频测试程序，它使用 Linux V4L2
                接口来模拟几个基本的编码器和解码器行为。有关详细信息，参见[示例 V4L2 应用程序](https://github.com/quic/v4l-video-test-app)。

**GStreamer 示例**

用于视频播放的示例 GStreamer 应用程序是 [IM SDK](https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-50/overview.html) 的一部分。若要详细了解 GStreamer
                应用程序的先决条件，请参阅[示例程序](https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-50/example-applications.html)。

下表列出了方法和示例视频测试用例：

| 方法 | 用例 |
| --- | --- |
| 使用 `gst-launch-1-0` | [仅视频播放](https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-50/video-playback-use-cases.html) |
| 使用 `gst-launch-1-0` | [音频和视频播放](https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-50/audio-video-playback.html) |
| 使用 `gst-launch-1-0` | [视频录制](https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-50/camera-and-video-encode.html) |
| 使用 GStreamer 应用程序 | [视频播放和录制](https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-50/gst-video-playback-example.html) |
|  |  |
|  |  |

Last Published: Dec 03, 2024

[Previous Topic
验证](https://docs.qualcomm.com/bundle/publicresource/80-70015-20SC/topics/bring-up.md) [Next Topic
配置](https://docs.qualcomm.com/bundle/publicresource/80-70015-20SC/topics/configure.md)