Coder Social home page Coder Social logo

Comments (2)

jprjr avatar jprjr commented on July 20, 2024

I'll do you one better - I'll just add the username into the stats xml!

I just pushed up version 11.3.0 that scans the stats XML for UUIDs. When it finds them, it inserts the username and stream title, so you'll get output like:

<?xml version="1.0" encoding="utf-8" ?>
<rtmp>
<nginx_version>1.13.6</nginx_version>
<nginx_rtmp_version>1.1.4</nginx_rtmp_version>
<compiler>gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9) </compiler>
<built>Feb 28 2018 13:26:32</built>
<pid>27258</pid>
<uptime>6</uptime>
<naccepted>1</naccepted>
<bw_in>0</bw_in>
<bytes_in>607305</bytes_in>
<bw_out>0</bw_out>
<bytes_out>409</bytes_out>
<server>
<application>
<name>multistreamer</name>
<live>
<stream>
<name>e70dc878-981e-434e-aea0-c9bca97f9574</name>
<user>john</user>
<title>Let's make some stats</title>
<time>3526</time><bw_in>0</bw_in>
<bytes_in>604879</bytes_in>
<bw_out>0</bw_out>
<bytes_out>0</bytes_out>
<bw_audio>0</bw_audio>
<bw_video>0</bw_video>
<client><id>23</id><address>::ffff:192.168.59.1</address><time>3624</time><flashver>FMLE/3.0 (compatible; FMSc/1.0)</flashver><swfurl>rtmp://stream-dev.jrjrtech.com:1935/multistreamer</swfurl><dropped>0</dropped><avsync>7</avsync><timestamp>2306</timestamp><publishing/><active/></client>
<meta><video><width>1280</width><height>720</height><frame_rate>30</frame_rate><codec>H264</codec><profile>High</profile><compat>0</compat><level>3.1</level></video><audio><codec>AAC</codec><profile>LC</profile><channels>2</channels><sample_rate>48000</sample_rate></audio></meta>
<nclients>1</nclients>
<publishing/>
<active/>
</stream>
<nclients>1</nclients>
</live>
</application>
</server>
</rtmp>

This is available at "/stats", like "example.com/stats"

Changing the key format winds up being a good amount of effort, it requires a schema change to the database. This should let you monitor what you need without changing the database schema.

from multistreamer.

k1ck3r avatar k1ck3r commented on July 20, 2024

that's incredible! thank you so much for your time!!!

from multistreamer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.