# Live snapshot
Source: [https://docs.qualcomm.com/doc/80-70022-50/topic/gst-snapshot-stream-example.html](https://docs.qualcomm.com/doc/80-70022-50/topic/gst-snapshot-stream-example.html)
The **gst-snapshot-stream-example** application allows you to generate two
streams: a preview stream for live display and a snapshot stream that captures images and
saves them as JPEG files.
Note: This sample application isn't supported on Dragonwing
IQ-8275 and Dragonwing IQ-9075.
For the snapshot stream, you can determine the number of snapshots.
The following figure shows the pipeline, which allows for simultaneous live preview and
snapshot capture from the same video source.
For more information, see [Pipeline flow](https://docs.qualcomm.com/doc/80-70022-50/topic/gst-snapshot-stream-example.html#gst-snapshot-stream-example__section_lny_sly_nbc).
Figure : gst-snapshot-stream-example pipeline
## 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 use
case. Specify the application with parameters, such as camera width, height, and
the maximum snapshot count for dumping JPEG
files.
gst-snapshot-stream-example -W 1280 -H 720 -w 3840 -h 2160 -c 5Copy to clipboard
3. To stop the use case, use CTRL +
C.
4. In the terminal of the target device, run the following command in the SSH shell
to display the available help
options:
gst-snapshot-stream-example --helpCopy to clipboard
## Expected output
The application generates an output for preview on the display and dumps the JPEG
files in the respective location on the device.
After the use case stops, the snapshot output files are available at the
`/etc/media/` path.
## Pipeline flow
The following table lists the plugins used in the live snapshot
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 constraints on the raw video data are enforced,
and then the video data is sent to [Waylandsink](https://docs.qualcomm.com/doc/80-70022-50/topic/waylandsink.html) for live preview. |
| Capsfilter |