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.27k stars 628 forks source link

The playlist freezes and .ts files are missing for uploaded VODs. #4468

Closed Mohit-3196 closed 7 months ago

Mohit-3196 commented 2 years ago

Short description

When creating a playlist from the uploaded VODs and playing as HLS, the playback freezes intermittently and also some .ts files are missing in the directory. This is happening for certain files.

Environment

Steps to reproduce

  1. Create a playlist with attached MP4 files.

https://user-images.githubusercontent.com/86982446/195672039-b1c4532d-11fe-48d7-a159-3c507d351448.mp4

https://user-images.githubusercontent.com/86982446/195672051-9af0b594-c510-4b59-8272-54d5d9d7fa08.mp4

  1. Open the properties file of the application /usr/local/antmedia/webapps/{YOUR_APP}/WEB-INF/red5-web.properties and add below properties: settings.hlsflags=delete_segments+append_list+omit_endlist settings.deleteHLSFilesOnEnded=false Save the settings and restart the server sudo service antmedia restart

  2. Start the playlist and play the .m3u8 file

Expected behavior

The hls playback should be fine and the transitions between files should be smooth.

Actual behavior

The transition is not smooth and stream freezes unless the player is reloaded. Also in the application streams directory, certain .ts files are missing. missing  ts files

Join community.antmedia.io and be a part of Ant Media Server Community.

ivancduran commented 1 year ago

I have the similar issue, every time the next video start, the stream goes down and restart with the next video and the HLS stream start the chunks from the beginning (starts counting from 0.ts).

I already tried adding the same video multiple times to discard any compatibility issue between videos and the problem persist.

Every time the video finish, the server restart the stream automatically to start with the new video. will be good if the server can make only one stream to play all the videos continuously without break the transmition to start the new video.

mekya commented 7 months ago

Hi Guys,

We've provided a workaround solution https://github.com/orgs/ant-media/discussions/6158

Please try and let me know if you encounter any issue

Regards