by fredleblanc · 5y ago · 0 comments
I also have shortcuts to pull in live weather conditions, our company stock price, crypto prices for fun, a 1- and 3- and 5-minute timer, as well as a countdown of days until important work events.
It’s fun, and all just a bit of HTML and CSS and JS. (And PHP/cURL/cron to pull stock and weather prices in the background.) All this for free with OBS.
Easily a top 5 app for me.
It was trivially easy to get it formatted properly without me having to know anything about the GUI programming language OBS uses. Definitely an enlightening moment when I realized you can overlay anything with HTML!
I'm surprised "simple overlays" aren't a thing in any of the video conference software yet.
Is it just me?
There is a lot that you can do to optimize OBS streams before you may need to jump to Windows, however :)
But you should check to see if you have activated hardware encoding. Go to "Settings" and "Output", select "Output Mode: Advanced" and then in the "Encoder"-dropdown you should now see an option called "Apple VT H264 Hardware Encoder". That should hopefully help somewhat with CPU.
It crashed the first time I tried to set up the most basic stream on Mac, so I never tried again.
But basically, anything you can render in a browser can happen on the screen. Get JavaScript to show your current time in a browser, then pull in that URL into your OBS scene. The background will be transparent.
I think it's using Blink to render things underneath, that's what it seems like at least.
I wouldn't call it passive-aggressive; it's a pertinent bit of information that could be easily missed by some otherwise.
https://www.nextofwindows.com/how-to-use-obss-virtual-camera
(There are other articles that talk about using a plugin, that isn't required after OBS v25, they integrated the feature).
But generally speaking, if you can get JavaScript to display the current time in a browser, you can pull in that file via a browser source (using a file:// protocol) and show it on the screen. From there, it's a matter of doing anything else you can get JS to show in a browser. Or, if you have a local server running, you can display entire websites along side your face.
At that point, it's an interesting shift in mindset — you're not designing stuff for the browser, but to be displayed next to you.