Resource icon
OBS Stats on Stream

The script allow to show OBS stats on stream as Text Source and/or print in chat.

Supported data:
  1. Encoder;
  2. Output mode;
  3. Canvas resolution;
  4. Output resolution;
  5. Missed frames due to rendering lag;
  6. Skipped frames due to encoding lag;
  7. Dropped frames;
  8. Congestion;
  9. Average frame time;
  10. FPS;
  11. Memory usage;
  12. CPU cores;
  13. CPU usage;
  14. Streaming and Recording Duration;
  15. Audio Bitrate;
  16. Recording Bitrate;
  17. Bitrate.
How to use
  1. Download the script files. You only need OBS-Stats-on-Stream.lua and ljsocket.lua. These two files must be placed in the same folder.
  2. Add a text source to your scene. This source will be used to display the data.
  3. Open Tools -> Scripts. Add the OBS-Stats-on-Stream.lua script (only this one).
  4. Configure the script.
    • If you don't need Bot functionality, uncheck Enable Bot mark.
    • Update Delay determines how often the data will be updated. 1000 ms means once a second. 100 ms means 10 times a second.
    • Bot Delay determines how often the bot will read chat and write to it.
    • Enter bot's (or your own) nickname in Bot Nickname field.
    • Enter OAuth Password for the bot's (or your own) twitch account. You can get it here: click.
    • Enter Channel Nickname your bot gonna join (it gonna accept commands from this chat and print there). PLEASE, ONLY JOIN YOUR OWN CHANNEL. DO NOT TRY TO JOIN OTHER CHANNELS.
    • Link your created text source.
    • Modify Text Formatting if needed. all $name are variables and are replaced with actual values.
  5. You are ready to go!
NOTE: If you don't need Text Source functionality, you don't need to add a text source and link it in the script.
NOTE: If you don't need Bot functionality, you can use Enable Bot checkbox to disable it. You also don't need to type Nickname and OAuth Password in that case.

Contribution
Big thanks to jammehcow for helping me with figuring out Socket functionality in Lua!

OBS Docs are very confusing. If you want to contribute feel free to message me, make a pull request or open an issue!
  • Like
Reactions: Monsteer
Author
GreenComfyTea
Downloads
3,227
Views
10,530
First release
Last update
Rating
5.00 star(s) 3 ratings

Latest updates

  1. Fix

    Fix NaN in json.
  2. Release v1.3

    Added Debug Mode (logging all data to SCRIPT_LOCATION/obs-stats_DATE.log in append mode). Added...
  3. Release v1.2

    Added !streaming_duration, !recording_duration, !streaming_status and !recording_status...

Latest reviews

It works very well and is nice to have. Read the Doc and is easy to format the display. Thanks lot für your work!
If you implement YouTube Chat I will celebrate it :-)
Great work
works as intended ! thanks
Top