# Camera stream configuration
Source: [https://docs.qualcomm.com/doc/80-70022-50/topic/camera-stream-configuration.html](https://docs.qualcomm.com/doc/80-70022-50/topic/camera-stream-configuration.html)
The **gst-add-streams-as-bundle-example** application allows you to activate and
configure camera streams as a bundle instead of configuring each stream one at a time thus
reducing the delay in configuring new streams.
The following figure shows the pipeline, which takes the configuration parameters such as
width and height, processes to either display on a screen, or encodes and saves to a
file. For more information about the plugins used in the pipeline, see [Pipeline flow](https://docs.qualcomm.com/doc/80-70022-50/topic/camera-stream-configuration.html#camera-stream-configuration__section_vt5_b1b_pbc).
Figure : gst-add-streams-as-bundle-example pipeline
qtiqmmfsrc
capsfilter
Waylandsink
capsfilter
encoder
h264parse
mp4mux
filesink
Qualcomm
Open source
## Run the application
1. Ensure that you complete the [Prerequisites](https://docs.qualcomm.com/doc/80-70022-50/topic/mm_sample_apps_prerequisites.html).
2. In the terminal of the target device, use the following command to run the
application:
gst-add-streams-as-bundle-example Copy to clipboard
3. Use the following commands to run the application for various use cases:
- Preview the stream:
gst-add-streams-as-bundle-example -o DisplayCopy to clipboard
- Encode the stream and save it to a
file:
gst-add-streams-as-bundle-example -o FileCopy to clipboard
The
encoded stream is saved at
/etc/media/video\_%d.mp4.
4. To stop the use case, use CTRL +
C.
5. In the terminal of the target device, run the following command in the SSH shell
to display the available help
options:
gst-add-streams-as-bundle-example --helpCopy to clipboard
6. In the terminal of the host computer, run the following command to pull the
files from the target
device:
scp root@:/etc/media/Copy to clipboard
## Expected output
One stream is sent to display and the other stream is saved to a file.
Figure : Expected output for gst-add-streams-as-bundle-example application

## Pipeline flow
The following table lists the plugins used in the camera stream configuration
pipeline:
| Plugin | Description |
| --- | --- |
| [qtiqmmfsrc](https://docs.qualcomm.com/doc/80-70022-50/topic/qtiqmmfsrc.html) | Captures the video stream and feeds it into the capsfilter. |
| Capsfilter | Branches the source into two separate pipelines. In one pipeline, the output is sent to [Waylandsink](https://docs.qualcomm.com/doc/80-70022-50/topic/waylandsink.html) for display. |
| Capsfilter | In the other pipeline, the video undergoes the following: Encoded using v4l2h264enc . Parsed with h264parse. Multiplexed into an MP4 format with mp4mux. Written to a file using filesink. |
| | |
**Parent Topic:** [Run sample applications for a camera](https://docs.qualcomm.com/doc/80-70022-50/topic/camera-sample-applications.html)
Last Published: Feb 20, 2026
[Previous Topic
Camera metadata](https://docs.qualcomm.com/bundle/publicresource/80-70022-50/topics/gst-camera-metadata-example.md) [Next Topic
Camera burst capture](https://docs.qualcomm.com/bundle/publicresource/80-70022-50/topics/camera-burst-capture.md)