Hi,
Very excited about webcodecs and using them to encode and decode videos in the browser.
Goal - Generate VideoFrames from a HTML Canvas Element, encode chunks using the VideoEncoder with format{avc:avc} and mux the chunks into a h264/mp4.
I have recently hit a roadblock and there are no demos, documentation is vague around the avc formats output in the Video Encoder.
The chunks that I get from the VideoEncoder when format:{avc:avc} is used, cannot be muxed into a h264, throws up an error.
My source is a set of VideoFrames generated from a html canvas.
I did some reading and I understand that some extra data needs to be appended to each chunk for decoding.
I assumed this would be generated by the encoder and I printed the meta along with the chunk but the description is empty but there is other meta data inside the decoderConfig (colors, width, height, hardware-preference and so on)
PS - The annexb chunks work fine , but the quality is very bad with pixelation.
Any help or pointers would be appreciated.
Thanks,
Amit Deshpande