Sample rate for audio capture always 44100 Hz

macOS specific usage questions
hangthecode
New Cone
New Cone
Posts: 1
Joined: 22 Nov 2022 18:04

Sample rate for audio capture always 44100 Hz

Postby hangthecode » 22 Nov 2022 18:30

I'm using VLC as a preamp for remote volume control in my smart home setup. Basically, I'm opening a virtual capture device which has been configured to use 96000 Hz in Audio MIDI Setup. The output device is a DAC which is also configured to use 96000 Hz. No matter what setting is applied, VLC always uses 44100 Hz. I have tried with other capture devices, as well as CLI commands, e.g.:

Code: Select all

/Applications/VLC.app/Contents/MacOS/VLC -I rc --demux=rawaud --rawaud-channels 2 --rawaud-samplerate 48000 avaudiocapture://BlackHole2ch_UID

I turned off resampling because I want no changes to the signal beyond volume control, and everything should already be using the correct/desired sample rate. See below for log output. Any help is appreciated, thanks!

Code: Select all

main debug: processing request item: avaudiocapture://BlackHole2ch_UID, node: Playlist, skip: 0 main debug: rebuilding array of current - root Playlist main debug: rebuild done - 2 items, index 1 main debug: starting playback of new item main debug: resyncing on avaudiocapture://BlackHole2ch_UID main debug: avaudiocapture://BlackHole2ch_UID is at 1 main debug: creating new input thread main debug: Creating an input for 'avaudiocapture://BlackHole2ch_UID' main debug: requesting art for new input thread main debug: using timeshift granularity of 50 MiB main debug: using default timeshift path main debug: `avaudiocapture://BlackHole2ch_UID' gives access `avaudiocapture' demux `rawaud' path `BlackHole2ch_UID' main debug: creating demux: access='avaudiocapture' demux='rawaud' location='BlackHole2ch_UID' file='(null)' main debug: looking for access_demux module matching "avaudiocapture": 14 candidates main debug: looking for meta fetcher module matching "any": 1 candidates avaudiocapture debug: avcapture uid = BlackHole2ch_UID lua debug: Trying Lua scripts in /Users/htmac/Library/Application Support/org.videolan.vlc/lua/meta/fetcher avaudiocapture debug: avcapture 0/8 USBStreamer:2752:0016 AppleUSBAudioEngine:miniDSP:USBStreamer:0001:1,2 avaudiocapture debug: avcapture 1/8 BlackHole2ch_ModelUID BlackHole2ch_UID main debug: no meta fetcher modules matched main debug: looking for art finder module matching "any": 2 candidates avaudiocapture debug: Check user consent for access to the audio device main debug: no art finder modules matched main debug: selecting program id=0 avaudiocapture debug: AVCapture: Audio device ready! main debug: using access_demux module "avaudiocapture" main debug: Can't deduce slave type of "avaudiocapture://BlackHole2ch_UID" with file extension. main debug: loading audio-es slave: avaudiocapture://BlackHole2ch_UID (forced: 1) main debug: `avaudiocapture://BlackHole2ch_UID' gives access `avaudiocapture' demux `rawaud' path `BlackHole2ch_UID' main debug: creating demux: access='avaudiocapture' demux='rawaud' location='BlackHole2ch_UID' file='(null)' main debug: looking for access_demux module matching "avaudiocapture": 14 candidates avaudiocapture debug: avcapture uid = BlackHole2ch_UID avaudiocapture debug: avcapture 0/8 USBStreamer:2752:0016 AppleUSBAudioEngine:miniDSP:USBStreamer:0001:1,2 avaudiocapture debug: avcapture 1/8 BlackHole2ch_ModelUID BlackHole2ch_UID avaudiocapture debug: Check user consent for access to the audio device main debug: removing module "bonjour" bonjour info: stopped discovery main debug: Buffering 0% main debug: Stream buffering done (5 ms in 4 ms) main debug: Decoder wait done in 0 ms main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 0 ms) main debug: ES_OUT_RESET_PCR called main debug: Buffering 0% main debug: Stream buffering done (5 ms in 5 ms) main debug: Decoder wait done in 0 ms avaudiocapture debug: AVCapture: Audio device ready! main debug: using access_demux module "avaudiocapture" main debug: looking for audio decoder module matching "any": 21 candidates araw debug: samplerate:44100Hz channels:2 bits/sample:32 main debug: using audio decoder module "araw" main debug: looking for meta reader module matching "any": 2 candidates main debug: no meta reader modules matched main debug: looking for meta reader module matching "any": 2 candidates main debug: no meta reader modules matched main debug: `avaudiocapture://BlackHole2ch_UID' successfully opened main error: demux doesn't like DEMUX_GET_TIME main debug: reusing audio output main debug: VLC is looking for: 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes auhal debug: attempting to use device 103 auhal debug: Current device has a latency of 3265 us auhal debug: output layout of AUHAL is Stereo auhal debug: selected 2 physical channels for device output auhal debug: VLC will output: Stereo auhal debug: Current AU format: [44100.000000][mcpl][9][8][1][8][2][32] auhal debug: analog output successfully opened main debug: output 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes main debug: looking for audio volume module matching "any": 2 candidates main debug: using audio volume module "float_mixer" main debug: input 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes main debug: conversion: 'f32l'->'f32l' 44100 Hz->44100 Hz Stereo->Stereo main debug: conversion pipeline complete main debug: looking for audio resampler module matching "none": 3 candidates main debug: no audio resampler modules matched

Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 15 guests