'How do I stream large videos in Flask [closed]
I have 10 minute videos that I want to be able to stream from my Flask website. How do I do this so that the users don't have to download the entire video before it can play? I am currently running the app through the development server as it is only for a personal project. However, if running through an actual WSGI will fix the issue then I am willing to do so.
Solution 1:[1]
You need to process your videos into an adaptive bitrate format like Apple HLS and then host them like any other static asset. Something like S3. FFMPEG or AWS MediaConvert would work for processing. Then use a video player like video.js and point it at your .m3u8 manifest, and your set.
Disclaimer - I am employed by AWS which provides some of the services mentioned
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Abdur-Rahmaan Janhangeer |
