Skip to content

Update rtmps.md #550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 45 additions & 18 deletions docs/guides/publish-live-stream/rtmp/rtmps.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,48 @@ keywords: [Ant Media Server Documentation, Ant Media Server Tutorials]
sidebar_position: 1
---

# Publish RTMPS Stream

Please follow the below steps to publish the RTMPS stream to Ant Media Server:

1. Enable SSL on the server. Please check out [here](https://antmedia.io/docs/guides/installing-on-linux/setting-up-ssl/) for SSL installation.

2. Open TCP port 8443 for RTMPS on the firewall where AMS is hosted.

3. Edit `red5-core.xml` file located under the `/usr/local/antmedia/conf` directory and uncomment the RTMPS beans as mentioned in the below links.

[https://github.com/ant-media/Ant-Media-Server/blob/master/src/main/server/conf/red5-core.xml#L139](https://github.com/ant-media/Ant-Media-Server/blob/master/src/main/server/conf/red5-core.xml#L139)
[https://github.com/ant-media/Ant-Media-Server/blob/master/src/main/server/conf/red5-core.xml#L178](https://github.com/ant-media/Ant-Media-Server/blob/master/src/main/server/conf/red5-core.xml#L178)

4. Save the file and restart the server with `sudo service antmedia restart`

5. Now you can publish the stream to the server with

`rtmps://Domain-Name:8443/LiveApp/streamId`
## Enable RTMPS

:::info
In v2.14 and above, now RTMPS can be enabled/disabled via server settings instead of enabling/disabling it from the XML files.

This allows for easy and hassle-free configuration. It also restores even after a server upgrade, whereas previously it did not restore in XML files.
:::

Follow below steps to enable/disable the RTMPS:

- Go to the conf folder under antmedia folder

```bash
cd /usr/local/antmedia/conf/
```

- Edit the red5.properties file

```bash
sudo nano red5.properties
```

- Enable/Disable the RTMPS

```json
rtmps.enabled=true
```

**By default it is enabled now and works on TCP port 8443.**

- After changing the settings, restart the server

```bash
sudo service antmedia restart
```

## Publish RTMPS Stream

To publish the RTMPS stream, follow this [OBS tutorial](https://antmedia.io/docs/guides/publish-live-stream/rtmp/publish-with-obs/) for reference and instead of using the simple RTMP endpoint, use the below RTMPS endpoint.

```json
rtmps://domain-name:8443/live/streamId
```

Check out the [playback guide](https://antmedia.io/docs/category/playing-live-streams/) to play your RTMPS stream with WebRTC, HLS etc.