w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.
https://w3c.github.io/webcodecs/
Other
937 stars 131 forks source link

Video frames on demand #806

Closed jrafaaael closed 1 week ago

jrafaaael commented 1 week ago

Hello there! I'm building an app where I need to get frames from a video. Right now I'm using the implementation of this repository (https://github.com/w3c/webcodecs/blob/main/samples/video-decode-display/demuxer_mp4.js) and all works fine.

However, for my web app, I don't need all frames at once; instead I prefer to get frames "on demand", by chunks (let's say chunks of 10 frames). Any help or insaight is appreciated! Thanks in advance!

padenot commented 1 week ago

This repository is home to the Web Codecs specification.

Questions on how to do something with Web Codecs are better suited to Stack Overflow.