{"id":29543836,"url":"https://github.com/e04/srt-live-reporter","last_synced_at":"2026-05-18T17:02:30.787Z","repository":{"id":301822206,"uuid":"1010179204","full_name":"e04/srt-live-reporter","owner":"e04","description":"SRT stream relay with real-time statistics via WebSocket","archived":false,"fork":false,"pushed_at":"2025-08-25T12:53:29.000Z","size":47,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-25T14:46:05.507Z","etag":null,"topics":["obs-studio","srt"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/e04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-28T14:18:28.000Z","updated_at":"2025-08-25T12:53:00.000Z","dependencies_parsed_at":"2025-06-29T03:43:27.928Z","dependency_job_id":"76e0ba28-9ac7-44c7-8121-128f539757bb","html_url":"https://github.com/e04/srt-live-reporter","commit_stats":null,"previous_names":["e04/srt-live-reporter"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/e04/srt-live-reporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e04%2Fsrt-live-reporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e04%2Fsrt-live-reporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e04%2Fsrt-live-reporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e04%2Fsrt-live-reporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e04","download_url":"https://codeload.github.com/e04/srt-live-reporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e04%2Fsrt-live-reporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33184769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["obs-studio","srt"],"created_at":"2025-07-17T14:08:45.857Z","updated_at":"2026-05-18T17:02:30.770Z","avatar_url":"https://github.com/e04.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# srt-live-reporter\n\n```\n                 ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n  SRT Stream ━━━▷┃        srt-live-reporter        ┃━━▷ UDP or SRT Stream\n                 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\n                                  ╎\n                                  ╎  Web Socket\n                                  ╎\n                                  ▽\n                 ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n                 ┃ Stats                          ┃\n                 ┃  ┏━━━━━━━━━━━━━━━━━━━━━━━━━━┓  ┃\n                 ┃  ┃ 1 {                      ┃  ┃\n                 ┃  ┃ 2   MbpsRecvRate: 10,    ┃  ┃\n                 ┃  ┃ 3   MsRTT: 3,            ┃  ┃\n                 ┃  ┃ 4   PktRecvLossRate: 0,  ┃  ┃\n                 ┃  ┃ 5   ....                 ┃  ┃\n                 ┃  ┗━━━━━━━━━━━━━━━━━━━━━━━━━━┛  ┃\n                 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\n```\n\nA lightweight Go application for receiving and relaying SRT (Secure Reliable Transport) live streams with real-time statistics reporting via WebSocket.\n\n## The `go-irl` Stack\n\n`srt-live-reporter` is a core component of **[go-irl](https://github.com/e04/go-irl)**, a complete, modern streaming stack designed for robust IRL broadcasting.\n\nIf you are looking for an easier setup with more advanced features, consider using `go-irl`. It bundles `srt-live-reporter` with other essential tools (`obs-srt-bridge`, `go-srtla`) and provides a simple, one-command launcher.\n\n## Usage\n\n### Basic Command\n\n```bash\n./srt-live-reporter -from \u003csource\u003e -to \u003cdestination\u003e [-wsport \u003cport\u003e]\n```\n\n### Parameters\n\n- `-from`: Source address (srt://, udp://, or `-` for stdin)\n- `-to`: Destination address (srt://, udp://, file://, or `-` for stdout)\n- `-wsport`: WebSocket server port for statistics (default: 8888, 0 to disable)\n\n### Examples\n\n```bash\n./srt-live-reporter -from \"srt://:5001?mode=listener\" -to \"udp://:5002\" -wsport 8888\n```\n\n## WebSocket Statistics\n\nWhen WebSocket is enabled, connect to `ws://localhost:\u003cwsport\u003e/ws` to receive real-time statistics in JSON format:\n\n```typescript\ninterface Statistics {\n  MsTimeStamp: number;\n  Accumulated: {\n    PktSent: number;\n    PktRecv: number;\n    PktSentUnique: number;\n    PktRecvUnique: number;\n    PktSendLoss: number;\n    PktRecvLoss: number;\n    PktRetrans: number;\n    PktRecvRetrans: number;\n    PktSentACK: number;\n    PktRecvACK: number;\n    PktSentNAK: number;\n    PktRecvNAK: number;\n    PktSentKM: number;\n    PktRecvKM: number;\n    UsSndDuration: number;\n    PktRecvBelated: number;\n    PktSendDrop: number;\n    PktRecvDrop: number;\n    PktRecvUndecrypt: number;\n\n    ByteSent: number;\n    ByteRecv: number;\n    ByteSentUnique: number;\n    ByteRecvUnique: number;\n    ByteRecvLoss: number;\n    ByteRetrans: number;\n    ByteRecvRetrans: number;\n    ByteRecvBelated: number;\n    ByteSendDrop: number;\n    ByteRecvDrop: number;\n    ByteRecvUndecrypt: number;\n  };\n\n  Interval: {\n    MsInterval: number;\n\n    PktSent: number;\n    PktRecv: number;\n    PktSentUnique: number;\n    PktRecvUnique: number;\n    PktSendLoss: number;\n    PktRecvLoss: number;\n    PktRetrans: number;\n    PktRecvRetrans: number;\n    PktSentACK: number;\n    PktRecvACK: number;\n    PktSentNAK: number;\n    PktRecvNAK: number;\n\n    MbpsSendRate: number;\n    MbpsRecvRate: number;\n\n    UsSndDuration: number;\n\n    PktReorderDistance: number;\n    PktRecvBelated: number;\n    PktSndDrop: number;\n    PktRecvDrop: number;\n    PktRecvUndecrypt: number;\n\n    ByteSent: number;\n    ByteRecv: number;\n    ByteSentUnique: number;\n    ByteRecvUnique: number;\n    ByteRecvLoss: number;\n    ByteRetrans: number;\n    ByteRecvRetrans: number;\n    ByteRecvBelated: number;\n    ByteSendDrop: number;\n    ByteRecvDrop: number;\n    ByteRecvUndecrypt: number;\n  };\n\n  Instantaneous: {\n    UsPktSendPeriod: number;\n    PktFlowWindow: number;\n    PktFlightSize: number;\n    MsRTT: number;\n    MbpsSentRate: number;\n    MbpsRecvRate: number;\n    MbpsLinkCapacity: number;\n    ByteAvailSendBuf: number;\n    ByteAvailRecvBuf: number;\n    MbpsMaxBW: number;\n    ByteMSS: number;\n    PktSendBuf: number;\n    ByteSendBuf: number;\n    MsSendBuf: number;\n    MsSendTsbPdDelay: number;\n    PktRecvBuf: number;\n    ByteRecvBuf: number;\n    MsRecvBuf: number;\n    MsRecvTsbPdDelay: number;\n    PktReorderTolerance: number;\n    PktRecvAvgBelatedTime: number;\n    PktSendLossRate: number;\n    PktRecvLossRate: number;\n  };\n}\n\ninterface WebSocketMessage {\n  timestamp: string;\n  type: \"reader\" | \"writer\";\n  stats: Statistics;\n}\n```\n\nFor detailed information about the statistics fields, refer to the [gosrt statistics code](https://github.com/datarhei/gosrt/blob/main/statistics.go).\n\n### Viewing Statistics with wscat\n\nTo view real-time statistics in the console, you can use `wscat`:\n\n```bash\nnpm install -g wscat\nwscat -c ws://localhost:8888/ws\n```\n\n## Dependencies\n\n- [github.com/datarhei/gosrt](https://github.com/datarhei/gosrt) - SRT protocol implementation\n  - The implementation is based on the [gosrt client sample application](https://github.com/datarhei/gosrt/tree/main/contrib/client).\n- [github.com/gorilla/websocket](https://github.com/gorilla/websocket) - WebSocket support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe04%2Fsrt-live-reporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe04%2Fsrt-live-reporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe04%2Fsrt-live-reporter/lists"}