Skip to content
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

Continuous Streams Broadcasting #6820

Open
invyu-automator opened this issue Nov 22, 2024 · 1 comment
Open

Continuous Streams Broadcasting #6820

invyu-automator opened this issue Nov 22, 2024 · 1 comment

Comments

@invyu-automator
Copy link

Short description

We need to Continuously Broadcast the streams, and play live Streams, and need HLS recording.

The Streams will stop after few minutes, and we can play it in again in Ant Media management console, nor in our frontend with Web Player, and the HLS recording will also be stopped.

Environment

  • Operating System: Ubuntu 24.04 LTS
  • Java version: openjdk 17.0.13 2024-10-15
    OpenJDK Runtime Environment (build 17.0.13+11-Ubuntu-2ubuntu124.04)
    OpenJDK 64-Bit Server VM (build 17.0.13+11-Ubuntu-2ubuntu124.04, mixed mode, sharing)
  • Ant Media Server version: Enterprise Edition 2.11.3 20240906_0602
  • Browser name and version: Version 131.0.2903.51 (Official build) (64-bit)

Steps to reproduce

  1. Add new live stream, stream source with RTSP
{
  "streamId": "streamid",
  "name": "streamname",
  "streamUrl": "rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0",
  "type": "streamSource",
  "mp4Enabled": 0,
  "playlistLoopEnabled": False,
  "autoStartStopEnabled": False,
  "plannedStartDate": 0,
  "playListItemList": [],
  "hlsViewerCount": 0,
  "dashViewerCount": 0,
  "webRTCViewerCount": 0,
  "rtmpViewerCount": 0,
  "hlsViewerLimit": 20,
  "webRTCViewerLimit": 20,
  "status": "broadcasting"
}
  1. started the broadcast by
curl -X POST "https://<ams_url>:5443/<appname>/rest/v2/broadcasts/<stream_id>/start" -H "accept: application/json" -H "Content-Type: application/json" -d "{}"
  1. It will play for some time and stops, the stream status will still shows "status": "broadcasting".
GET' 'http://localhost:5080/<app>/rest/v2/broadcasts/<stream>' has "status": "broadcasting" but "anyoneWatching": "false"
  1. Broadcasting 50+ streams via API spikes CPU to 100% and crashes the server.

Expected behavior

It needs to Continuously broadcast, and play live streams continuous and generate ts and update m3u8 file continuously, even with not viewers, since "autoStartStopEnabled" is False, but the stream will stop playing and generating ts, m3u8 file.

The Ram usage is increase when we enabled s3 recording.
image

@invyu-automator
Copy link
Author

  • We narrowed down the issue: when broadcasting 35+ cameras, the RAM usage gradually increases and exceeds 70%, causing WebRTC WebSocket disconnections and stream will stop.
  • Broadcasting 35+ streams at a time via API spikes CPU to 100% and crashes the server.
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant