Jump to content
  • 0

Ticket Assigned - AntMedia Recordings in s3


Mohit
 Share

Question

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

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Posted Images

4 answers to this question

Recommended Posts

  • 0

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

  • 0

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

  • 0

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/enableRecording

If 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.

 

 

 

1567099575_Screenshotfrom2021-09-0718-31-38.png.b217bcc041fa87b9106a8a939e8d044d.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...