I tested receiving videos on the web using HTml. I tested it up to 100mb, which is small in capacity, and it went well. However, when I uploaded a large-capacity video of about 2 gigabytes, the video file was created but could not be played, and there was an error in the processing of Python cv2 video. Also, when I upload a video to a remote desktop, only files are created and cannot be played. What's the problem? Also, the reason why Python cv2 has an error is because there is a video but there is no content, so I think it has been stopped.
python html raspberry-pi
If you try to serve video/mp4
that is 2GB
or more, you will encounter all kinds of errors when everything is exceeded. (Script/WebServer Timeout, File Processing Error, Memory/CPU Capper Over...) and so on)
What you want should be streaming. The key is to divide a large file into multiple multiparts and not terminate the request until you send them all. I searched python video server and found this. Can I refer to it?
© 2024 OneMinuteCode. All rights reserved.