Resource icon

OBS Lua OBS Stats on Stream v0.9

OBS Stats on Stream

The script allow to shows OBS stats on stream as Text Source and/or prints 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. Audio Bitrate;
  15. Recording Bitrate;
  16. 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!
Author
GreenComfyTea
Downloads
855
Views
4,686
First release
Last update
Rating
5.00 star(s) 1 ratings

Latest updates

  1. Release v0.9

    Added support for: encoder, output mode, canvas resolution, output resolution, target fps...
  2. Release v0.82

    Fixed Average Congestion showing as NaN.
  3. Release v0.81

    Fixed Channel Nickname not working correctly.

Latest reviews

works as intended ! thanks
Top