Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Mountain View desk4 min

How to Add an On-Screen Clock to an FFmpeg YouTube 24/7 Stream

Add a local-time or UTC clock to an FFmpeg YouTube stream with drawtext, then verify font support, escaping, timezone and video encoding.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use FFmpeg’s drawtext video filter to burn a clock into the frames sent to YouTube. Choose localtime to display the FFmpeg host’s local time or gmtime for UTC, then set the font, position and contrast. The overlay is part of the outgoing video, so the video must be filtered and encoded rather than copied unchanged.

Choose what time viewers should see

  • Host local time: Use localtime when the display should follow the timezone configured on the computer or server running FFmpeg.
  • UTC: Use gmtime when viewers should see Coordinated Universal Time regardless of the host’s local timezone.

These are wall-clock readings, not elapsed time or a timestamp derived from the media. The filter relies on the host’s clock; it does not synchronize that clock or verify the timezone. Check both settings on the machine that will run the continuous stream.

As an Amazon Associate I earn from qualifying purchases.

Add the clock with drawtext

A schematic filter for a date-and-time clock is:

drawtext=fontfile=/path/to/font.ttf:text='%{localtime:%Y-%m-%d %H\:%M\:%S}':x=20:y=20:fontsize=32:fontcolor=white:box=1:[email protected]

This example uses local time, places the text near the upper-left corner, and puts a translucent dark box behind it. Replace /path/to/font.ttf with a font file that exists and is readable by the FFmpeg process. To show UTC instead, use the gmtime expansion in place of localtime.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The sample illustrates syntax; it is not a complete streaming command or a tested command for every shell. FFmpeg filter arguments can require multiple layers of escaping, and the colons in the clock format are a common source of errors. Test the exact filter in the shell and command-building method you intend to use. FFmpeg’s drawtext reference documents the filter and its clock expansions; its filtergraph syntax documentation explains how filtergraphs are assembled. Using a text file for the overlay text can avoid some escaping difficulties.

#1 Best Overall
Sale
Netzu 3-in-1 Digital Clocks for Living Room, Small & Compact Alarm Clock | Temperature, Date & Time Display, 4 Birghtness, 3 Volumes, Plug-in, for Bedroom, Office
  • Small & Compact Plug-in Alarm Clock for Every Room: Perfect for modern homes ditching cable boxes—place it under your living room TV to replace the lost clock display, or use it as a sleek bedside alarm in the bedroom. Also ideal for home offices, gyms, or dorm desks.
  • 3-in-1 Multispace Display: Stay organized with a bright, easy-to-read display showing time, date, and indoor temperature—no more switching apps or devices.Its compact design fits seamlessly into any space, keeping you on schedule whether you’re streaming, working, or sweating.
  • Adjustable Brightness for Day & Night: Adjust screen brightness in 4 levels+OFF with a single touch of the top-mounted button—no confusing menus. Keep it dim for a distraction-free bedroom at night or boost it for clear visibility in bright gyms or sunlit home offices.
  • Plug-in Power Clock: This alarm runs on AC power (cable included), ensuring it’s always on and accurate.
  • Sleek, User-Friendly Design:Designed with simplicity in mind: a single top button controls brightness, while the clean, modern look complements any decor—from minimalist living rooms to industrial-style home gyms. Its intuitive interface works for all ages.

Put the filter in the video path

For a simple video filter, integrate the value with -vf. For a more complex graph, use -filter_complex. Preserve or explicitly map the audio stream as required by your existing command. The input, output protocol, codecs, frame rate, bitrate and YouTube ingest settings depend on your setup; this clock example does not prescribe them.

Check FFmpeg and the font before relying on the stream

The documented drawtext filter uses libfreetype. The FFmpeg filter reference lists --enable-libfreetype and --enable-libharfbuzz as build requirements. A font file can be selected with fontfile; using font names and fallback depends on additional fontconfig support. Text shaping depends on fribidi.

Rank #2
Amazon Basics Small Digital Oval Alarm Clock with LED Display, Nightlight, Snooze Function & Battery Backup, Black, 4.5 x 3.5 x 2.4 Inches
  • Digital alarm clock with a 0.7-inch green LED display for easily checking the time at a glance
  • Built-in nightlight gently illuminates a dark room
  • Repeating snooze function makes it possible to sleep a little longer
  • AC powered with integrated power supply. Batteries may be used as a backup power source to ensure time and alarms are retained in memory for 8 hours (refer to User Manual for details)
  • Measures 4.5 x 3.5 x 2.4 inches (LxWxH); weighs 0.4 pounds (6.6 oz) Note: Batteries are not included

Before deploying, confirm that the actual FFmpeg executable has the filter and required libraries, and that the process account can read the font at the configured path. FFmpeg’s online documentation is regenerated nightly and may differ from an older or specially built local version; consult the documentation for your installed build as well as the FFmpeg release documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Make the clock readable and stable for a 24/7 stream

  • Choose a font size appropriate to the outgoing resolution; the example’s size is not a universal recommendation.
  • Use high-contrast text and a background box or border if the picture behind the clock changes. The filter supports positioning, size, color, borders, shadows and a box.
  • Keep the clock within the visible safe area rather than at the extreme edge.
  • Use a stable font path accessible to the account that runs FFmpeg. If the host is moved or reconfigured, localtime may show a different timezone. UTC avoids dependence on the local timezone setting, but still depends on the host clock being correct.
  • Because the overlay is rendered into the outgoing frames, the video has to be filtered and encoded; it cannot be passed through as an unchanged encoded video stream.

Troubleshoot common clock-overlay problems

FFmpeg reports that drawtext is unavailable

The executable may have been built without the needed support or may differ from the online documentation. Verify the installed build’s filter support and its FreeType and HarfBuzz configuration; use a build with the required libraries if necessary.

Rank #3
Sale
WallarGe Self-Setting Atomic Digital Wall Clock with Auto DST | Battery Operated, Large Display with Temperature, Date and Day, 4 Time Zones, Wall Mount/Desktop Clock for Classroom, Office
  • Atomic Clock Digital - The clock has a built-in receiver that automatically synchronizes itself with WWVB radio broadcast, which will set and update time automatically every midnight, no need to set manually. It has four time zones selectable: EST, PST, MST, CST.
  • Digital Wall Clock Battery Operated - This digital clock is supported by 3xAAA battery (Not included). No wires make it can be placed anywhere; and the low battery symbol reminds you to replace the battery in time to avoid getting the wrong time due to low power.
  • Digital Wall Clock Large Display - The LCD screen measures 6.2 in x 3.7 in and it displays time, indoor temperature, day and date. Each section is showed separately, allows you to read the content easily and quickly.
  • Atomic Clock with Auto DST - With DST on, the time would go forward or backward one hour automatically in daylight saving time, no worry about time changing on that day. If for no need, it could also be turned off, then “AUTO DST” disappears from screen.
  • Digital Alarm Clock - The alarm could be turned on or off according to your need, just click the button to set. When alarm is set on, there is a bell icon staying on screen. The icon will disappear if alarm is set off. When alarm goes off, just click any button to stop it on the day.

The command fails near a colon or percent sign

Filtergraph, shell and command-construction escaping rules can each apply. Test the filter in the exact environment used for the stream, paying particular attention to the clock-format colons. Consider supplying text through a file to reduce escaping complexity.

The font is missing or the text does not render

Check that the fontfile path is valid on the streaming host and readable by the FFmpeg process account. A path on your desktop will not necessarily exist on a server.

Rank #4
Sale
DreamSky Small Digital Alarm Clock for Bedroom, Large Big Numbers Display
  • Large Display Electric Alarm Clock with Brightness Dimmer: Corded plug in clock with compact streamline design yet large number display. 2 inches jumbo illuminated LED digits ensure the time is easy to see even for impaired vision people. The brightness dimmer allows you set the brightness of display, needless worry the brightness, either too bright thus affecting your sleep or too dark to read time.
  • Adjustable Alarm Sound: Single alarm setting with 9 minutes snooze. The beep alarm sound can be set from 30-90 DP as preference. Needless worry about too loud alarm sound frightening you or too low to wake you up from deep sleeping. One simple ON/OFF button allows you disable the alarm on weekend.
  • USB Charging Port: Convenient USB port allows you to charge your smartphone or other electric device without plug in wall, handy, convenient and organized.
  • Easy Operation Alarm Clock: Intuitive setting button, experience zero stress when setting the time or alarm. Easy for kids, seniors and the elderly.
  • Adapter Powered Only and Battery for Memory: Plug in to power the clock with the included DC adapter (with 59 inches USB cord). 2 x AAA batteries (not included) needed for storing time and alarm settings in case of power outage. With battery power source only, the screen will go blank and alarm will not sound.

The displayed hour is wrong

Confirm whether you selected localtime or gmtime, then verify the host’s timezone and system clock. The filter does not set either one.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The clock is hard to read or is cut off

Adjust the filter’s position, font size and color, and enable a box or border for contrast. Check the result at the actual output resolution and ensure the text is inside the visible frame.

Best Value
Sale
WallarGe 14.5'' Large Digital Wall Clock Battery Operated
  • Large Digital Wall Clock with Big Numbers - Easy to Read: WallarGe digital wall clock has a high-definition LCD screen measures 14x6 inch and the time display is 8.1x4.3 inch, the large display helps you read the time from many angles at a room distance. You can also read the indoor temperature and date on screen for full information
  • Digital Wall Clock Battery Operated - Easy to Setup: The clock is supported by 4xAA battery (not included). There is a low battery indicator display on screen when battery is not power enough, no more worries about forgetting to replace new batteries. The function buttons are at the back which are easily to set
  • Day and Temp Display Switchable: There are three modes optional for the day/temp display: Day only, Temp only, Day and Temp display in turns every 10s. Just click the button at back to choose the display mode you favored. No matter which mode of day/temp you choose, the time and date will not change
  • Wall Mount Large Digital Clock with Fold-out Stand - Digital Clock for Wall or Desk: The clock comes with a mounting template ruler showing 8.7 inches distance between two mounting holes, so you don't need to measure holes on wall. If you intend it to be placed on desk with no holes on wall, you can just unfold the fold-out stand
  • Wall Clock Large Display with AUTO DST: The clock will automatically adjust time in Daylight Saving Time with AUTO DST on. It has two time display modes (Military time and Standard time), just click 12/24 button to switch. And the alarm is optional, it can be turned off manually if for no need

The stream stops after adding the filter

The filter changes the video path, so the existing command must encode the filtered frames rather than stream-copying the original video. Check the command’s video mapping and encoding settings while preserving the audio mapping. Choose ingest and encoder settings for your configuration and verify current requirements in YouTube’s live encoder guidance; this article does not prescribe numeric bitrate values.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or let it run in the cloud

If your goal is a continuous YouTube stream rather than managing a local FFmpeg host, StreamNeo keeps uploaded videos looping from the cloud. Upload a recording or build a playlist, add your YouTube stream key, and go live. Your computer and home connection do not have to stay on; each slot streams the uploaded quality up to 4K 60fps at one flat price, and StreamNeo automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly pricing is $9.99 per month.

Start your free StreamNeo day.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.