{"id":14155337,"url":"https://github.com/voc/srtrelay","last_synced_at":"2026-01-12T02:56:40.908Z","repository":{"id":37986067,"uuid":"300444128","full_name":"voc/srtrelay","owner":"voc","description":"SRT relay server for distributing media streams to multiple clients.","archived":false,"fork":false,"pushed_at":"2024-06-11T10:58:09.000Z","size":205,"stargazers_count":149,"open_issues_count":12,"forks_count":37,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-11-23T15:43:38.528Z","etag":null,"topics":["ffmpeg","multiplexer","relay","srt","streaming"],"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/voc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/Contributing.md","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}},"created_at":"2020-10-01T22:48:56.000Z","updated_at":"2024-11-18T16:37:39.000Z","dependencies_parsed_at":"2024-06-11T11:13:27.295Z","dependency_job_id":"e0c4ecbe-0fb5-43df-a435-91033b4196e0","html_url":"https://github.com/voc/srtrelay","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voc%2Fsrtrelay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voc%2Fsrtrelay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voc%2Fsrtrelay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voc%2Fsrtrelay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voc","download_url":"https://codeload.github.com/voc/srtrelay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228821404,"owners_count":17977166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ffmpeg","multiplexer","relay","srt","streaming"],"created_at":"2024-08-17T08:02:52.046Z","updated_at":"2026-01-12T02:56:40.863Z","avatar_url":"https://github.com/voc.png","language":"Go","funding_links":[],"categories":["streaming"],"sub_categories":[],"readme":"# srtrelay ![CI](https://github.com/voc/srtrelay/workflows/CI/badge.svg)\nStreaming-Relay for the SRT-protocol\n\nUse at your own risk.\n\n## Quick start\nRun with docker (**Note:** nightly image not recommended for production)\n```bash\ndocker run ghcr.io/voc/srtrelay/srtrelay:latest\n\n# start publisher\nffmpeg -i test.mp4 -c copy -f mpegts srt://localhost:1337?streamid=publish/test\n\n# start subscriber\nffplay -fflags nobuffer srt://localhost:1337?streamid=play/test\n```\n\nStart docker with custom config. See [config.toml.example](config.toml.example)\n```bash\n# provide your own config from the local directory\ndocker run -v $(pwd)/config.toml:/home/srtrelay/config.toml ghcr.io/voc/srtrelay/srtrelay:latest\n```\n\n## Run with docker-compose\n\nIn your `docker-compose.yml`:\n\n```yaml\n   srtrelay:\n     image: ghcr.io/voc/srtrelay/srtrelay:latest\n     restart: always\n     container_name: srtrelay\n     volumes:\n       - ./srtrelay-config.toml:/home/srtrelay/config.toml\n     ports:\n       - \"44560:1337/udp\"\n```\n\nThis will forward port `44560` to internal port `1337` in the container. Importantly, forwarding UDP is required.\nIt will also copy a `srtrelay-config.toml` file in the same directory into the container to use as config.toml\n\nStart the server with the usual\n\n```bash\ndocker-compose up -d\n```\n\n## Build with docker\nYou will need atleast docker-20.10\n\n```bash\ndocker build -t srtrelay .\n\n# run srtrelay\ndocker run --rm -it srtrelay\n```\n\n## Build without docker\n### Install Dependencies\nRequires \u003e=libsrt-1.4.2, golang and a C compiler\n\n**Ubuntu**\n  - you will need to [build libsrt yourself](https://github.com/Haivision/srt#build-on-linux)\n\n**Debian 10**:\n  - use libsrt-openssl-dev from the [voc repository](https://c3voc.de/wiki/projects:vocbian)\n  - or [build it yourself](https://github.com/Haivision/srt#build-on-linux)\n\n**Gentoo**:\n  - emerge net-libs/srt\n\n### Build\n```bash\ngo build -o srtrelay\n\n# run srtrelay\n./srtrelay\n```\n\n## Usage\n### Commandline Flags\n```bash\n# List available flags\n./srtrelay -h\n```\n\n### Configuration\nPlease take a look at [config.toml.example](config.toml.example) to learn more about configuring srtrelay.\n\nThe configuration file can be placed under *config.toml* in the current working directory, at */etc/srtrelay/config.toml* or at a custom location specified via the *-config* flag.\n\n### API\nSee [docs/API.md](docs/API.md) for more information about the API.\n\n## Contributing\nSee [docs/Contributing.md](docs/Contributing.md)\n\n## Credits\nThanks go to\n  - Haivision for [srt](https://github.com/Haivision/srt) and [srtgo](https://github.com/Haivision/srtgo)\n  - Edward Wu for [srt-live-server](https://github.com/Edward-Wu/srt-live-server)\n  - Quentin Renard for [go-astits](https://github.com/asticode/go-astits)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoc%2Fsrtrelay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoc%2Fsrtrelay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoc%2Fsrtrelay/lists"}