Skip to content

How to record streams as HLS files and prevent them from getting overwritten in case of any network disruptions? #4875

Answered by yashtandon113
Mohit-3196 asked this question in FAQs
Discussion options

You must be logged in to vote

Thank you for your question. Let me answer this question for two scenarios.

1. Add new .ts files to previously recorded files to have a single recording.
The.ts files with the same streamId can be appended to the same .m3u8 file. To do so, edit and add the following hlsflag setting to the red5-web.properties file under _/usr/local/antmedia/webapps/app-name/WEB-INF/ directory.

settings.hlsflags=+append_list

For HLS recording, make sure that below properties are also added.

settings.hlsPlayListType=event
settings.deleteHLSFilesOnEnded=false

Then, restart the AMS with sudo service antmedia restart

2. Record the stream with same streamId but without appending to old files.
If you don't want…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Mohit-3196
Comment options

Mohit-3196
Dec 21, 2023
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@sweetgoomba
Comment options

@yashtandon113
Comment options

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