# Camera encoding
Source: [https://docs.qualcomm.com/doc/80-70015-50/topic/camera-encode.html](https://docs.qualcomm.com/doc/80-70015-50/topic/camera-encode.html)
The **gst-camera-encode-example** application allows you to record and encode a
single camera stream.
## Use cases
1. Ensure that you complete the [Prerequisites](https://docs.qualcomm.com/doc/80-70015-50/topic/python-sample-applications.html#python-sample-applications__section_gm5_s5j_bdc).
2. Run the camera encode
script:
python3 /usr/bin/gst-camera-encode.pyCopy to clipboard
## Expected output
The output is saved to a file at
/opt/data/recording\_720p.mp4.
## Pipeline flow
Figure : Pipeline for camera encoding

The table lists the plugins used in the camera encoding pipeline:| Plugin | Description |
| :--- | :--- |
| [qtiqmmfsrc](https://docs.qualcomm.com/doc/80-70015-50/topic/qtiqmmfsrc.html) | Captures the camera live stream.
Capsfilter is applied to
enforce constraints on the raw video data. |
| [v4l2h264enc](https://docs.qualcomm.com/doc/80-70015-50/topic/v4l2h264enc.html) | Encodes the video using the H.264 format. |
| H264parse | Parses the video. |
| Mp4mux | Multiplexes the video into an MP4 container. |
| Filesink | Writes the video to a file. |
**Parent Topic:** [Python sample applications](https://docs.qualcomm.com/doc/80-70015-50/topic/python-sample-applications.html)
Last Published: Oct 27, 2025
[Previous Topic
Python sample applications](https://docs.qualcomm.com/bundle/publicresource/80-70015-50/topics/python-sample-applications.md) [Next Topic
Object detection and display](https://docs.qualcomm.com/bundle/publicresource/80-70015-50/topics/camera-detection-display.md)