Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delaying live streaming to AWS Medialive #1411

Open
nirmala-ncompass opened this issue Feb 26, 2024 · 5 comments
Open

Delaying live streaming to AWS Medialive #1411

nirmala-ncompass opened this issue Feb 26, 2024 · 5 comments

Comments

@nirmala-ncompass
Copy link

Is it possible to store the video data to local and send it to media live with few seconds delay?

@pedroSG94
Copy link
Owner

Hello,

It is possible but currently it is not supported by the library but you can implement it in server side or player side too.

@nirmala-ncompass
Copy link
Author

Thanks @pedroSG94
Can we have a delay for sending video packets to live stream (RTMP URL)in this library without storing in local?

@pedroSG94
Copy link
Owner

I think no, You need cache all packets and wait until your cache is filled with desired packets (depend of delay selected).
After that, you need calculate the correct way to send cache packets without produce timestamps problems.

The problem is related with the memory. For example:
If you want 5min delay with 20mbps of bitrate = 750 mega bytes of cache size

This maybe is an extreme case bu you need program with this cases in mind. I think that this size is not recommendable and the performance using a cache with that size could be bad.

@nirmala-ncompass
Copy link
Author

Thanks @pedroSG94 How to get video and audio buffer data (video packets) in openGLRtmpActivity?

@pedroSG94
Copy link
Owner

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

No branches or pull requests

2 participants