# AI 智能 codec

Source: [https://docs.qualcomm.com/doc/80-70022-50SC/topic/ai-smart-codec.html](https://docs.qualcomm.com/doc/80-70022-50SC/topic/ai-smart-codec.html)

**gst-ai-smartcodec-example** 应用程序可减少摄像头或文件源的输入的网络带宽和存储资源。

Note: 此应用程序在 Ubuntu Server 上不受支持。

## 示例模型和标签文件

Table : gst-ai-smartcodec-example 的示例模型和标签文件

| Runtime | 模型文件 | 标签文件 |
| :--- | :--- | :--- |
| LiteRT | <var class="keyword varname">YOLOv8-Detection-Quantized.tflite</var> | <var class="keyword varname">coco_labels.txt</var> |

## 在目标设备上运行应用程序

关于模型和标签文件，请参阅[示例模型和标签文件](https://docs.qualcomm.com/doc/80-70022-50SC/topic/ai-smart-codec.html#ai-smart-codec__section_lb3_1th_4dc)。

1. 确保您已完成[前提条件](https://docs.qualcomm.com/doc/80-70022-50SC/topic/download-model-and-label-files.html)。
2. 使用以下源之一运行应用程序：
    - 使用摄像头源运行应用程序：

            gst-ai-smartcodec-example -w 640 -h 480 -o output.mp4 -m /etc/models/YOLOv8-Detection-Quantized.tflite -l /etc/labels/coco_labels.txtCopy to clipboard
    - 使用文件源运行应用程序：

            gst-ai-smartcodec-example -i /etc/media/video.mp4 -o output.mp4 -m /etc/models/YOLOv8-Detection-Quantized.tflite -l /etc/labels/coco_labels.txtCopy to clipboard
3. 请在 SSH shell 中运行以下命令，以显示可用的帮助选项：

        gst-ai-smartcodec-example --helpCopy to clipboard
4. 要停止用例，请按 CTRL +
                            C。

## 预期输出

该应用程序生成一个编码后的 MP4 文件作为输出。

## 相关信息

[智能 codec](https://docs.qualcomm.com/doc/80-70022-50SC/topic/smart-codec.html)

**Parent Topic:** [运行 AI/ML 示例应用程序](https://docs.qualcomm.com/doc/80-70022-50SC/topic/ai-ml-sample-applications.html)

Last Published: Nov 05, 2025

[Previous Topic
多流批量推理](https://docs.qualcomm.com/bundle/publicresource/80-70022-50SC/topics/multistream-batch-inference.md) [Next Topic
人脸检测](https://docs.qualcomm.com/bundle/publicresource/80-70022-50SC/topics/gst-ai-face-detection.md)