mp4box.js
mp4box.js copied to clipboard
How do I extract images as base64url from video
Can anyone provide code snippet to extract all the images from a video using mp4box?
how is it going now
A way to resolve this is use EncodedVideoChunk and videoDecoder , like this
videoDecoder = new VideoDecoder({
output: videoFrame => {
createImageBitmap(videoFrame).then(img => {
videoFrames.push({
img,
duration: videoFrame.duration,
timestamp: videoFrame.timestamp,
})
videoFrame.close()
})
},
error: err => {
console.error('videoDecoder错误:', err)
},
})`
you now can get img from videoFrame