# Overlay: 1080p video preview with inverse circular privacy mask

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

To apply inverse 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-mask="mask0,circle=<960,540, 540>, inverse=true, dest-rect=<0, 0, 1920, 1080>,color=0x202020FF" ! waylandsink x=0 y=0 width=1920 height=1080 sync=falseCopy to clipboard
- Linix
          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-mask="mask0,circle=<960,540, 540>, inverse=true, 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 inverted privacy mask. Hence, only the region specified in the circle is visible while the rest of the region is masked out by the color specified, and then passes it to the `waylandsink` element for rendering on display.
3. 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 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) [Next 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)