Does Ant Media Server support RTMP playback? #4874
-
I use OBS encoder to publish an rtmp stream to Ant Media Server. I can publish the stream easily but if I try to play the same rtmp stream URL with VLC or any other player, the rtmp can not be played. How can I play RTMP with Ant Media Server or is there any workaround solution? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Ant Media Server does not recommend RTMP stream playback because it is no longer maintained. Instead, you can use WebRTC (0.5 seconds), Dash (3-5 sec), or HLS (8-10 sec) playback options. RTMP playback is disabled by default in v2.5.1 and above. To enable it, edit and add the below flag to the /usr/local/antmedia/webapps/LiveApp/WEB_INF/red5-web.properties file.
After saving the changes, please restart the server with You can also set this from the Advanced Settings on the web panel starting AMS v2.6.2. Now, one should be able to play RTMP stream. |
Beta Was this translation helpful? Give feedback.
-
Hi @yashtandon113
The error I was facing is : I tried to download one frame from ffmpeg command too but it kept on saying the same error. Below is the screenshot of the error I was facing: |
Beta Was this translation helpful? Give feedback.
Ant Media Server does not recommend RTMP stream playback because it is no longer maintained. Instead, you can use WebRTC (0.5 seconds), Dash (3-5 sec), or HLS (8-10 sec) playback options.
RTMP playback is disabled by default in v2.5.1 and above. To enable it, edit and add the below flag to the /usr/local/antmedia/webapps/LiveApp/WEB_INF/red5-web.properties file.
settings.rtmpPlaybackEnabled=true // By default, it is false.
After saving the changes, please restart the server with
sudo service antmedia restart
You can also set this from the Advanced Settings on the web panel starting AMS v2.6.2.
https://antmedia.io/docs/guides/configuration-and-testing/ams-application-configuration/
Now, o…