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

Android video file upload #19

Closed
arianaa30 opened this issue Oct 3, 2021 · 6 comments
Closed

Android video file upload #19

arianaa30 opened this issue Oct 3, 2021 · 6 comments

Comments

@arianaa30
Copy link

I'm new to SRT. Looks very promising protocol. I have a video delivery app on Android that captures video from camera, then uploads the video file to the server and another device can use it for playback later.

Will use of this protocol help with faster uploads/downloads? And do we have an example Android app and server for this purpose that I can use?

@ThibaultBee
Copy link
Owner

Hi,

For an upload SRT might be faster. It depends of your upload protocol. As SRT is a UDP-based protocol, it will be faster by design than most TCP-based protocol. Your question is SRT specific, for this type of question you should directly reach SRT developers on their github or slack.

Anyway, it shouldn't be difficult to create quickly an Android app (all you need is Socket.sendFile. For the server, you should look at SRT examples.

You should know the main use case of SRT is livestreaming. For a livestreaming Android app, you can have a look at my other project StreamPack.

@arianaa30
Copy link
Author

arianaa30 commented Oct 3, 2021

Thanks. So in my usecase, I should deal with it like a file transfer (which still is faster). It doesn't matter if the file is actually a mp4 video file or any other file. Is it right?

And second question: I'm thinking to chunk up the video file into 5s chunks and send them in parallel. Do you think it will help with faster uploads?

@ThibaultBee
Copy link
Owner

ThibaultBee commented Oct 3, 2021

Thanks. So in my usecase, I should deal with it like a file transfer (which still is faster). It doesn't matter if the file is actually a mp4 video file or any other file. Is it right?

No, it doesn't matter. You can send any type of file with sendFile.

And second question: I'm thinking to chunk up the video file into 5s chunks and send them in parallel. Do you think it will help with faster uploads?

Not sure it will be faster as the limit here is the bandwidth. If you send one file or multiple files, you are still limited by the same bandwidth (it won't increase your bandwidth). The advantage of chunking video file into multiple chunk is if you want to stop/restart to send the file, you don't have to send the whole file each time, you have to send only the chunk that wasn't received. But this is something you will have to implement on your own.

@arianaa30
Copy link
Author

I see. So wondering, how do download accelerators cause faster downloads by creating multiple parallel threads?

@ThibaultBee
Copy link
Owner

ThibaultBee commented Oct 3, 2021 via email

@ThibaultBee
Copy link
Owner

No news question -> closing the issue

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