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

how to config videoEncoder that output frame is annexB not avcC? #797

Closed yangfangfang1204 closed 3 weeks ago

yangfangfang1204 commented 3 weeks ago

i input frame to videoEncoder ,an output 264 encode frame , and i find the format is avcC ,we need annexB, so could we config videoEncoder to output annexB frame?

the second question: i find the videoEncoder output don't have SPS and PPS, so how to config videoEncoder, we could get the SPS and PPS?

padenot commented 3 weeks 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.

That said, this is explained in this document, linked from the standard.