'Python: split a video based on file size for streaming

I'm trying to figure out how to stream a video where the video is uploaded to google drive in pieces and downloaded in pieces for streaming. How do I split the video into a file sizes of my choice before uploading? Any module is fine as long as it's fast. Each piece needs to be playable on it's own using pyqt6 media player. I basically want to make this but in python.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source