How to record streams as HLS files and prevent them from getting overwritten in case of any network disruptions? #4875
-
I have a use case where a streamId will be reused but when I republish it overwrites previously recorded HLS files. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
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.
For HLS recording, make sure that below properties are also added.
Then, restart the AMS with 2. Record the stream with same streamId but without appending to old files.
The result will be as follows: https://antmedia.io/docs/guides/playing-live-stream/hls-playing/#save-hls-records |
Beta Was this translation helpful? Give feedback.
-
Hi All, For more details check the application configuration document https://antmedia.io/docs/guides/configuration-and-testing/ams-application-configuration/ Thank you. |
Beta Was this translation helpful? Give feedback.
-
Hi @Mohit-3196 @yashtandon113 , |
Beta Was this translation helpful? Give feedback.
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.
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…