Mohit Posted September 6, 2021 Share Posted September 6, 2021 Hi Diego Aguirre,When there is no ABR and S3 recording is enabled, there's just one recording in that case and the same is uploaded to the S3 bucket. When ABR is enabled you can use User defined scripts to customize and choose which bitrate you want to save. You can see such an example here https://stackoverflow.com/questions/69044739/how-can-we-customize-mp4-savings-when-abr-is-enabled if there is a way to configure the server so it won't create a room if it doesnt exist when I execute the publish method?Sorry but I couldn't understand this exactly, can you please provide some explanation. -- Best Regards, Mohit Dubey Link to comment Share on other sites More sharing options...
0 Diego Aguirre Posted September 6, 2021 Share Posted September 6, 2021 Hello Mohit. First of all, thank you so much for your answer! I have seen that possibilty. But it just execute the script when the video is converted to mp4, right? In my case i just want to save m3u8 and ts files in s3. Now my antmedia instance is configured to save all the files of all streams in s3 and erase them when it finishes. But, the problem is that all the streams are being uploaded to the s3 so I would like to upload just the "merged streams". Do you know if there is a way to execute a script file when a transmission finishes without the necessityof convert them in .mp4? About the other question, if i am not wrong, when I publish a stream in a conference room that doesnt exist the server will create that automatically. For that reason, according to the documentation, the use of the api endpoint for creating a room is optional. I am controlling that creation in the client side but I would like to know if there is a way to validate it in the server side. So a stream couldnt be published in a room that doesnt exist. Diego Aguirre Link to comment Share on other sites More sharing options...
0 Mohit Posted September 6, 2021 Author Share Posted September 6, 2021 Hi Diego,Yes, user defined script will initialize after the MP4 muxing process is finished. I'm not sure of how to meet your requirement. Let me escalate this ticket to L2 and they might be able to suggest something. You can get the conference room list using REST API as well https://antmedia.io/rest/#/BroadcastRestService/getConferenceRoomList and can create/delete streams from them accordingly. -- Best Regards, Mohit Dubey Link to comment Share on other sites More sharing options...
0 Diego Aguirre Posted September 6, 2021 Share Posted September 6, 2021 Thank yo so much, Mohit! I appreaciate your help. Diego Aguirre Link to comment Share on other sites More sharing options...
0 Tahir Posted September 7, 2021 Share Posted September 7, 2021 Hi Diego, You can use the recording on mergedStream only for your purpose. With the REST api you can control which streams will be recorded, which streams will be not: https://antmedia.io/rest/#/BroadcastRestService/enableRecordingIf you want to record everything to the server but only push merged stream to the s3, it requires custom development as it is a specific requirement, there are no configuration for that. Maybe you can create a feature request on github to selectively upload some of the streams to s3, if the management decides there are enough resources it can be done: https://github.com/ant-media/Ant-Media-Server/issues You can disable Accept Undefined Streams from the settings of Ant Media which then only the pre-defined streams can publish to your server meaning that to your room. Cheers. Link to comment Share on other sites More sharing options...
Question
Mohit
When there is no ABR and S3 recording is enabled, there's just one recording in that case and the same is uploaded to the S3 bucket.
Sorry but I couldn't understand this exactly, can you please provide some explanation.
Link to comment
Share on other sites
Top Posters For This Question
2
2
1
Popular Days
Sep 6
4
Sep 7
1
Top Posters For This Question
Mohit 2 posts
Diego Aguirre 2 posts
Tahir 1 post
Popular Days
Sep 6 2021
4 posts
Sep 7 2021
1 post
Posted Images
4 answers to this question
Recommended Posts