I need to download a partial video from Amazon S3 Bucket in node given a certain time range from the video.
For example, Download the video starting from 3 seconds into the video and stopping at 15 seconds.
From what I have gathered so far, I can make a byte-range request using the getObject function on an S3 bucket. But, I do not know how I would go about converting a time range to a byte range in order to make that request.
Additional information:
The mp4 format video is already being displayed. Then, there would be an option to download (not display) a clip of that video by selecting a desired start time and end time.
I am assuming that a new request would need to be sent to retrieve the partial video for the user to download.