# Overlay: 1080p video preview with static image and circular privacy mask

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

To apply static image overlay with the privacy mask overlay on 1080p live video preview, run
      the following command: 
- Linux
          Ubuntu:

        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-simg="image0,image=\"/data/overlay_test_464_109.rgba\", resolution=<464, 109>, dest-rect=<1300, 800, 464, 109>;" overlay-mask="mask0, circle=<960, 540,400>, dest-rect=<0, 0, 1920, 1080>, color=0x202020FF" ! waylandsink x=0 y=0 width=1920 height=1080 sync=falseCopy to clipboard
- Linux
          Embedded:

        export WAYLAND_DISPLAY=wayland-1 && 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-simg="image0,image=\"/data/overlay_test_464_109.rgba\", resolution=<464, 109>, dest-rect=<1300, 800, 464, 109>;" overlay-mask="mask0, circle=<960, 540,400>, dest-rect=<0, 0, 1920, 1080>, color=0x202020FF" ! waylandsink x=0 y=0 width=1920 height=1080 sync=falseCopy to clipboard

1. The `qtiqmmfsrc` element is used to generate one 1080p resolution YUV stream.
2. The YUV stream is received by the `qtioverlay` plug-in, which applies the privacy mask, meaning only the region specified in the circle is masked out by the color specified, also lays the static image at the specified location.
3. The `qtioverlay` plug-in then passes frames with overlay on 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 with user text overlay stored to file](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/56_1080p_video_with_user_text_overlay_stored_to_file.md) [Next Topic
Overlay: 1080p video preview with inverse circular privacy mask](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/53_1080p_video_preview_with_inverse_circular_privacy_mask_overlay.md)