After 2.4.0.2 upgrade, all HLS files always saving to S3

186 views
Skip to first unread message

Doni

unread,
Oct 5, 2021, 2:33:12 PM10/5/21
to Ant Media Server
AMS Enterprise Edition 2.4.0.2 (upgraded from 2.3.3.1)
HLS streaming enabled
Record live stream to MP4 enabled
S3 recording enabled
settings.deleteHLSFilesOnEnded=true

In 2.3.3.1, only MP4 files were saved to S3. Now after upgrading to 2.4.0.2 it is saving MP4, TS, and M3U8 files all to S3, it's not deleting HLS files on livestream end. And when I delete VoD from the console, it only deletes the MP4 objects from S3, leaving all the TS & M3U objects orphaned.

Thanks, Doni

Mohit Dubey

unread,
Oct 6, 2021, 1:38:06 PM10/6/21
to Ant Media Server
Hi Doni,
Yes, It is saving the .ts segments as well along with MP4 files. Let me check on this and I will get back to you with an update.

--
Best Regards,
Mohit Dubey

Mohit Dubey

unread,
Oct 11, 2021, 11:53:09 AM10/11/21
to Ant Media Server
Hi Doni,
A workaround for this is that you can create a custom script which after the MP4 muxing  is finished it can delete the .ts files on the S3 side by running CLI commands.
Also, I have created an issue for this and hopefully we can schedule it and provide a script or some flag to delete the .ts files from S3 storage.

--
Best Regards,
Mohit Dubey

Mohit Dubey

unread,
Oct 12, 2021, 1:46:15 PM10/12/21
to Ant Media Server
Hi Doni,
You can check the fix provided by my colleague on the GitHub Issue https://github.com/ant-media/Ant-Media-Server/issues/3660#issuecomment-940978187

--
Best Regards,
Mohit Dubey

Doni

unread,
Oct 19, 2021, 9:04:58 AM10/19/21
to Ant Media Server
Mohit, any word on when this new setting will be released? Looks great.

Thanks. Doni

Mohit Dubey

unread,
Oct 20, 2021, 9:06:36 AM10/20/21
to Ant Media Server
Hi Doni,
It is in PR and will be released soon with the next update.

--
Best Regards,
Mohit Dubey

Reply all
Reply to author
Forward
0 new messages