Skip to content

audioConstraints on mimeType: 'audio/webm;codecs=pcm', #166

@ddaydd

Description

@ddaydd

Hello,

I record a stream with these options

options: {
      audio: true,
      video: false,
      mimeType: 'audio/webm;codecs=pcm',
      audioConstraints: {
        mandatory: {
          sampleRate: { exact: 16000 },
          channelCount: { exact: 1 },
        },
      },
    },

and when I do a

ffprobe ./debug_audio.webm

on the output file, I get this result

Stream #0:0(eng): Audio: pcm_f32le, 44100 Hz, 2 channels, flt , 2822 kb/s (default)

What am I missing, the sampleRate and channelCount are not what I expect?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions