What is the codec string for PCM? #792
Answered
by
sandersdan
AlexVestin
asked this question in
Q&A
|
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? |
Answered by
sandersdan
May 30, 2024
Replies: 1 comment 1 reply
|
|
1 reply
Answer selected by
AlexVestin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pcm-s16is 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 anAudioDatafrom the same bytes.