ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.16k stars 618 forks source link

Adaptive Bitrate VoD recording issue #5623

Open Alex-Denysiuk opened 9 months ago

Alex-Denysiuk commented 9 months ago

Short description

Hi, I have an issue when I enable ABR settings on my server and streaming via JavaScript SDK. After the stream is over, I don't get the recording of the original video, instead I have only 3 ABR videos, but when I have used RTMP source from OBS Studio 29.1.3 (64 bit) I get 4 videos (3 ABR) + 1 original.

Environment

Steps to reproduce

  1. Open https://testdomain.com:5443/#/applications/LiveApp
  2. Set Adaptive Streaming Resolution: 720p, 480p, 240p in Settings.
  3. Open https://testdomain.com:5443/LiveApp/index.html
  4. Click Start Publishing button.
  5. Stop live stream.
  6. Check recorded VoD's.

Expected behavior

When I use the JavaScript SDK after the stream has ended, I want to get a recording of the original video, but instead I only got the recordings of the video resolutions (screen 1) and (screen 2). So I got a WebHook saying that the three videos are ready, but I also need the recording of the original.

It's works when I use OBS Studio or an older version of Android SDK. At the end of the stream, I get the recordings of the resolution video (screen 3) and the original video (screen 4).

I need to have a record of the original .mp4 video in all cases.

I tried the ABR setup on two Enterprise servers versions 2.0.0 20200504 (ubuntu 22.04 LTS) and 2.5.3 20230107 (20.04.4).

Actual behavior

When I use the JavaScript SDK after the stream is finished, I get only recorded resolution videos (screen 1, screen 2) and I get a WebHook that these ABR videos are ready just like when I stream via RTMP through OBS Studio.

My ABR settings (screen 5).

Logs

Logs is here: https://pastebin.com/R2Qeae4Q

screen 1

screen 1

screen 2

screen 2

screen 3

screen 3

screen 4

screen 4

screen 5

screen 5

mekya commented 8 months ago

Hi @Alex-Denysiuk,

Yes, you're right. This issue is related to this one as well -> https://github.com/ant-media/Ant-Media-Server/issues/2587

When we resolve the issue above, this problem is also being resolved.

I've increased the priority of the issue.

Cheers Oguz

radosdaniel commented 5 months ago

That's the exact issue for me as well. I'm looking forward to the fix!