# Overlay: 1080p video with user text overlay stored to file

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

1. To apply user text overlay on 1080p video, run the following command:

        gst-launch-1.0 -e qtiqmmfsrc name=qmmf camera=0 ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1 ! qtioverlay overlay-text="text0,text=\"Qualcomm\ Intelligence\", color=(uint)0xFFFF00FF, dest-rect=<160,624, 944, 50>;" ! queue ! qtic2venc ! queue ! h264parse ! mp4mux ! queue ! filesink location=/data/output/mux.mp4Copy to clipboard
2. The `qtiqmmfsrc` element is used to generate one 1080p resolution YUV stream.
3. The YUV stream is received by the `qtioverlay` plug-in, which applies the user text given as the overlay-text property value on to the stream.
4. The YUV stream with overlay is then processed by `h264parse` and encoded by the `qtic2venc` plug-in.
5. The `mp4mux` plug-in packages the encoded stream in the MP4 container.
6. The `filesink` element stores it in a file on the device.
7. To stop the use case, press CTRL + C, and pull
        the recorded content out from the device using the following `adb pull`
        command, and then play the content on a host PC.

        adb pull /data/mux.mp4Copy to clipboard

**Parent Topic:** [Multimedia use cases](https://docs.qualcomm.com/doc/80-88500-3/topic/28_Multimedia_use_cases.html)

Last Published: Sep 26, 2023

[Previous Topic
Capture snapshot during video recording](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/49_Snapshot.md) [Next Topic
Overlay: 1080p video preview with static image and circular privacy mask](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/54_1080p_video_preview_with_static_image_and_circular_privacy_mask_overlay_.md)