What is the codec string for PCM? #792
-
Hi, thanks for this amazing project. I've been wanting to use the pass-through pcm audio decoder, described here https://www.w3.org/TR/webcodecs-pcm-codec-registration/#audiodecoderconfig-description . FFmpeg reports the codec_id as pcm_s16le, so I tried to use "pcm-s16" as the codec string, but I get the error "Unknown or ambiguous codec string" when configuring the decoder, what is the correct codec string to use here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
pcm-s16
is the correct codec string, but I don't think it is implemented in any browser (at least there are no WPT tests and Chrome doesn't implement it). As an alternative, you should be able to directly construct anAudioData
from the same bytes.