w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.

Home Page:https://w3c.github.io/webcodecs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add some function to list audio/video codecs available with webcodecs on a device

0-mandrixx-0 opened this issue · comments

with the variety of devices and operating systems and the fact the codec implementation is not the same on all platforms, it's quite hard to guess which codec can be used on a device. the only way I've found until now is to check every item in a small list of codec strings I've compiled from examples found accross the internet.

that's why it would be very handy to have a method that lists the audio and video codecs that can be used with webcodecs on a device

thanks

It's not that easy, different codecs can be supported or unsupported in different configurations. (e.g certain SVC modes or bitrate modes).
That's why we have isConfiguSupported() to check support of an entire config rather than a codec.

ok. that's a shame I'm still in the darkness. I have no idea of which codecs I could use. there's no real list of codec strings to test. I'v tried the strings of the specs (like flac, mp3, pcm-f32) and nothing works except the mp4a strings and opus. and its only opus on mobile which not a good option if you want to play the file anywhere.
Would you have any clue to find out the codec strings that could be available on a particular device ?

Currently Chromium only supports Opus and AAC (on Windows and Mac)