# Overlay: 1080p video preview with user text

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

**Prerequisite**: Ensure that Weston is running.

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

        export XDG_RUNTIME_DIR=/run/user/root && 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>;" ! waylandsink x=0 y=0 width=1920 height=1080 sync=falseCopy to clipboard
2. The `qtiqmmfsrc` element is used to generate the 1080p resolution YUV stream.
3. The `qtioverlay` plug-in, receives the YUV stream, applies the user text given as the overlay-text property value on to the stream, and passes it to the `waylandsink` element for rendering on display.
4. To stop the use case, press CTRL + C.

**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
Overlay: 1080p video preview with date and time](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/52_1080p_video_preview_with_date_and_time_overlay_.md) [Next Topic
Update video encode parameter use case](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/57_Update_video_encode_parameter_use_case.md)