# Video composition use case

Source: [https://docs.qualcomm.com/doc/80-88500-3/topic/58_Video_composition_use_case.html](https://docs.qualcomm.com/doc/80-88500-3/topic/58_Video_composition_use_case.html)

## Prerequisites:

1. Ensure that Weston is running.
2. Run the following command to create a test video. Press CTRL + C
             to stop the recording.

        gst-launch-1.0 -e qtiqmmfsrc name=qmmf camera=0 ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1 ! queue ! qtic2venc ! queue ! h264parse ! mp4mux ! queue ! filesink location=/data/output/mux.mp4Copy to clipboard

- **Picture-in-picture: 1080p camera preview and 1080p recorded H.264 video file playback**
- **Video tiling: Multiple video streams tiled in one output**

**Parent Topic:** Multimedia use cases

Last Published: Sep 26, 2023

Previous Topic
 
Update video encode parameter use case Next Topic

Picture-in-picture: 1080p camera preview and 1080p recorded H.264 video file playback