You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm evaluating SRT for stream contribution, and the early results with using the built-in live transmit tool has been promising once I found out where to put the latency argument. My use case is using the srt-live-transmit as a process spawned from a central management system, and for that good monitoring information is important.
However, I have noticed the statistics option for srt-live-transmit does not output all monitoring data it has access to, and the format – while good for human readability and debugging – is not very suited for parsing by client programs.
I have added an option for that in a local copy of the repo that prints in a JSON format (except not prettified like the example below), but I want to see what you think about this before cleaning that code up and sending a pull request.
The text was updated successfully, but these errors were encountered:
gissleh
changed the title
Statistical output for srt-live-transmit is lacking in parameters and parsability.
Improvements to statistical output from srt-live-transmitApr 17, 2018
The output in that PR is a json stream where each output is an object that spans just one line, making it compatible with parsers that reads newline-delimited json streams and concatenated json streams. It's best used with -q to avoid having to filter out non-json output from stderr. Since there are no string values, writing JSON without an external library should be safe.
* Added -pf option with values json and default
* Changed PrintSrtStats (transmitmedia.cpp) to use a stringstream to build the output before printing it.
I'm evaluating SRT for stream contribution, and the early results with using the built-in live transmit tool has been promising once I found out where to put the latency argument. My use case is using the
srt-live-transmit
as a process spawned from a central management system, and for that good monitoring information is important.However, I have noticed the statistics option for
srt-live-transmit
does not output all monitoring data it has access to, and the format – while good for human readability and debugging – is not very suited for parsing by client programs.I have added an option for that in a local copy of the repo that prints in a JSON format (except not prettified like the example below), but I want to see what you think about this before cleaning that code up and sending a pull request.
The text was updated successfully, but these errors were encountered: