# Overlay: 1080p video preview with date and time 

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

1. To apply date and time 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-date="date0,date-format=\"10122023\", time-format=\"101010_24HR\",color=(uint)0xFF00FFFF, dest-rect=<0, 0, 256, 80>;" ! 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-date="date0,date-format=\"10122023\", time-format=\"101010_24HR\",color=(uint)0xFF00FFFF, dest-rect=<0, 0, 256, 80>;" ! waylandsink x=0 y=0 width=1920 height=1080 sync=falseCopy 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 date and time given as the overlay-date property value on to the stream, and then 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 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) [Next Topic
Overlay: 1080p video preview with user text](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/51_1080p_video_preview_with_user_text_overlay.md)