How to add overlay like CCTV in OBS?

hoandt

New Member
How can I turn my webcam into a CCTV-style feed with a timestamp that updates every second?
For example:
2025-05-03 15:35:20
I want this timestamp to overlay on my webcam input and broadcast it as a virtual webcam.

Is this possible to do in OBS?
 

swifttrack

New Member
Have you tried HTML file?
 

Attachments

  • 1746252660149.png
    1746252660149.png
    47.9 KB · Views: 13

hoandt

New Member
Thanks for the suggestion! I gave it a try — it's a great solution, but I'm experiencing some lag during recording. There's occasionally a delay of a few seconds, especially when I switch to other tasks. I’d prefer using Python or something similar for better performance.
 

swifttrack

New Member
I can try a lua script like cctv.lua, search online: https://swifthub.net/en/ecom-en/how-to-add-datetime-dd-mm-yyyy-to-obs/
  • Set Up OBS:
    • Open OBS Studio.
    • Create a scene and add your webcam as a Video Capture Device source.
    • Add a Text (GDI+/FreeType2) source (e.g., named “Timestamp”) and configure its appearance (e.g., font: Courier New, white text, black outline, positioned in the top-left corner).
  • Load the Script:
    • Go to Tools > Scripts in OBS.
    • Click the “+” button, select cctv.lua, and load it.
    • In the script properties, set the “Text Source” to your text source (e.g., “Timestamp”).
 

Suslik V

Active Member
OBS resources (including scripts):

Example of the discussion thread for heavily customizable digital watches for OBS:
 
Top