https://github.com/dfpc-coe/media-infra
https://github.com/dfpc-coe/media-infra
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dfpc-coe/media-infra
- Owner: dfpc-coe
- License: agpl-3.0
- Created: 2023-10-11T20:44:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-03-31T14:37:09.000Z (3 months ago)
- Last Synced: 2026-03-31T16:33:24.566Z (3 months ago)
- Language: TypeScript
- Size: 1.44 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
TAK Media Server Infra
Infrastructure to support a TAK Compatible Media Server
## Persistance
MediaMTX currently does not persist API operations to the config file, as such the Dockerfile is bundled with a
persistance script that will convert the API response and push it to the mediamtx.yml file on change
## Ports
| Port | Notes |
| ---- | ----- |
| 8554 | RTSP `rtsp://:8554/` |
| 8889 | WebRTC `http://:8889//publish` |
| 8890 | SRT `srt://localhost:8890?streamid=publish:mystream&pkt_size=1316` |
## Local Development
To run the media server locally, you can use Docker. First ensure that you have a local CloudTAK instance running and then run:
```sh
docker build -t mediamtx .
```
```
docker run --network='host' -e API_URL='http://localhost:5001' -e SigningSecret='' mediamtx:latest
```
## AWS Deployment
### Media Deployment
From the root directory, install the deploy dependencies
```sh
npm install
```
Deployment to AWS is handled via AWS Cloudformation. The template can be found in the `./cloudformation`
directory. The deployment itself is performed by [Deploy](https://github.com/openaddresses/deploy) which
was installed in the previous step.
The deploy tool can be run via the following
```sh
npx deploy
```
To install it globally - view the deploy [README](https://github.com/openaddresses/deploy)
Deploy uses your existing AWS credentials. Ensure that your `~/.aws/credentials` has an entry like:
```
[coe]
aws_access_key_id =
aws_secret_access_key =
```
Deployment can then be performed via the following:
```
npx deploy create
npx deploy update
npx deploy info --outputs
npx deploy info --parameters
```
Stacks can be created, deleted, cancelled, etc all via the deploy tool. For further information
information about `deploy` functionality run the following for help.
```sh
npx deploy
```
Further help about a specific command can be obtained via something like:
```sh
npx deploy info --help
```