I'm developing a app in GCP that process a video file in Cloud Run for get the frames and storage the frames in other Bucket.
But my Cloud Run application need to download the whole file and save it in the container instance, and process the video frame by frame.
So, i changed to process the video in parallel by each instance process in block of frames, but continue downloading the whole video file in each container.
This process is relative fast for short videos, but large videos of 20 GB or more can take a long time and the resources is a bit large.
So, my idea is to only download 500 MB (or less) of the video by container and process this fragment only.
So, my question is:
How can optimize the download of the video for only download the frames necessary without download the whole video?
Can donwload the video of Cloud Storage in streaming by only the need block of frames?