# AI smart codec

The **gst-ai-smartcodec-example** application reduces network bandwidth and storage resources for input from a camera or a file source.

## Sample model and label files

Table : Sample model and label files for gst-ai-smartcodec-example

| Runtime | Model files | Label files |
| --- | --- | --- |
| LiteRT | *YOLOv8-Detection-Quantized.tflite* | *coco\_labels.txt* |

## Run the application on the target device

For model and label files, see [Sample model and label files](https://docs.qualcomm.com/doc/80-80022-55/topic/ai-smart-codec.html#section-lb3-1th-4dc).

1. Ensure that you complete the [Prerequisites](https://docs.qualcomm.com/doc/80-80022-55/topic/download-model-and-label-files.html).
2. Use one of the following sources to run the application:

    - Run the application with a camera source:

gst-ai-smartcodec-example -w 640 -h 480 -o output.mp4 -m /etc/models/YOLOv8-Detection-Quantized.tflite -l /etc/labels/coco_labels.txt
            Copy to clipboard
    - Run the application with a file source:

gst-ai-smartcodec-example -i /etc/media/video.mp4 -o output.mp4 -m /etc/models/YOLOv8-Detection-Quantized.tflite -l /etc/labels/coco_labels.txt
            Copy to clipboard
3. To display the available help options, run the following commands in the SSH shell:

gst-ai-smartcodec-example --help
        Copy to clipboard
4. To stop the use case, use **CTRL + C**.

## Expected output

The application generates the output as an encoded MP4 file.

## Related information

[Smart codec](https://docs.qualcomm.com/doc/80-80022-55/topic/smart-codec.html)

Last Published: May 17, 2026

[Previous Topic
Multistream batch inference](https://docs.qualcomm.com/bundle/publicresource/80-80022-55/topics/multistream-batch-inference.md) [Next Topic
Face detection](https://docs.qualcomm.com/bundle/publicresource/80-80022-55/topics/gst-ai-face-detection.md)