Raspberry Pie Large Video

Asked 2 years ago, Updated 2 years ago, 44 views

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

2022-09-22 18:43

1 Answers

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?


2022-09-22 18:43

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.