From owner-freebsd-multimedia@freebsd.org Fri Oct 20 15:44:25 2017 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ACBEFE39501 for ; Fri, 20 Oct 2017 15:44:25 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail.eeeit.de (mail.eeeit.de [37.120.160.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4586B8072B for ; Fri, 20 Oct 2017 15:44:25 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from localhost (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mike@reifenberger.com) by mail.eeeit.de (Postfix) with ESMTPSA id C84D1730D; Fri, 20 Oct 2017 17:37:04 +0200 (CEST) Received: from ppp-88-217-117-186.dynamic.mnet-online.de (ppp-88-217-117-186.dynamic.mnet-online.de [88.217.117.186]) by mail.eeeit.de (Horde Framework) with HTTPS; Fri, 20 Oct 2017 17:37:04 +0200 Date: Fri, 20 Oct 2017 17:37:04 +0200 Message-ID: <20171020173704.Horde.jj_YkUyt6oyqr6Lqy0qwVD-@mail.eeeit.de> From: Michael Reifenberger To: hps@freebsd.org Cc: freebsd-multimedia@freebsd.org Subject: Advice for audio recording User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Oct 2017 15:44:25 -0000 Hi, I want to digitize some of my good-old records in 24bit/96khz FLAC. For this I found two nice gadgets which play together: An 24bit/192khz ADC (AD24QS): http://beis.de/Elektronik/ADDA24QS/ADDA24QS.html An USBAUDIO 2.0 compatible digital to USB converter (DA2USB): http://beis.de/Elektronik/DA2USB/DA2USB.html (Its a recording-only device) After setting the AD24QS to 96khz professional mode and connecting the DA2USB to the computer, on FreeBSD-11-stable (r322118) the DA2USB device is found as: ugen0.6: at usbus0 uaudio0 on uhub0 uaudio0: on usbus0 uaudio0: No playback. uaudio0: Record: 96000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer. uaudio0: No MIDI sequencer. pcm4: on uaudio0 uaudio0: No HID volume keys found. /dev/dsp4.0 gets created. (zb3)(root) # sysctl -a | grep pcm.4 dev.pcm.4.feedback_rate: 0 dev.pcm.4.bitperfect: 0 dev.pcm.4.buffersize: 0 dev.pcm.4.rec.vchanformat: s16le:2.0 dev.pcm.4.rec.vchanrate: 96000 dev.pcm.4.rec.vchanmode: fixed dev.pcm.4.rec.vchans: 1 dev.pcm.4.hwvol_mixer: vol dev.pcm.4.hwvol_step: 5 dev.pcm.4.%parent: uaudio0 dev.pcm.4.%pnpinfo: dev.pcm.4.%location: dev.pcm.4.%driver: pcm dev.pcm.4.%desc: USB audio (Hmm, why dev.pcm.4.rec.vchanformat: s16le:2.0 , shouldn't it be s24le:2.0?) But how to proceed further? (Preferred would be transcoding from the command line) In audacity when trying to record from dsp4 in (24bit-PCM/96000hz) I get: A popup: ... Error opening sound device. Try changing the audio host, recording device and the project sample rate. ... STDERR: ... Expression 'ioctl( component->fd, streamMode == StreamMode_In ? SNDCTL_DSP_GETISPACE : SNDCTL_DSP_GETOSPACE, &bufInfo )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 1061 Expression 'PaOssStreamComponent_Configure( component, sampleRate, framesPerBuffer, StreamMode_Out, master )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 1145 Expression 'PaOssStream_Configure( stream, sampleRate, framesPerBuffer, &inLatency, &outLatency )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 1251 Expression 'ioctl( component->fd, streamMode == StreamMode_In ? SNDCTL_DSP_GETISPACE : SNDCTL_DSP_GETOSPACE, &bufInfo )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 1061 Expression 'PaOssStreamComponent_Configure( component, sampleRate, framesPerBuffer, StreamMode_Out, master )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 1145 Expression 'PaOssStream_Configure( stream, sampleRate, framesPerBuffer, &inLatency, &outLatency )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 1251 ... And how to transcode on the command-line? BTW: How to play 24bit flac under FreeBSD? I get: ... (zb3)(root) # flac123 test.flac flac123 version 0.0.12 'flac123 --help' for more info ao_oss ERROR: Unsupported number of bits: 24.Error opening ao device 0 Error opening test.flac ... Many thanks in advance! Greetings --- Mike Gruß --- Michael Reifenberger