I have a video Blob array in Javascript; the array is segmented into 1 second intervals. I want to trim from the beginning and end of the video.
I found this post (how-to-edit-trim-a-video-in-the-browser) describing how to trim my blob, but it only works for the end of the video.
I suspect that removing the beginning of the blob removes the header information and makes the webm invalid.
This works:
// remove 2 seconds from the end of the video
const trimmedVideo = blobArray.slice(0, blobArray.length - 2);
This does not work:
// remove 1 second from the start of the video
const trimmedVideo = blobArray.slice(1, blobArray.length);
How can I trim from the beginning of my video blob?