I’m using a Magewell XI100DUSB-HDMI to pull HDMI video into my oF app. I’d like to also pull in and play the audio from that feed. So far, I can’t seem to get audio output using ofSoundstream. When I run the audioOutputExample, I get this:
HOST_OS=Linux
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl gl glu glew gtk+-3.0 libmpg123
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
[notice ] ofBaseSoundStream::printDeviceList:
[0] hw:HDA Intel PCH,0 [in:2 out:4] (default in) (default out)
[1] hw:HDA Intel PCH,1 [in:0 out:2]
[2] hw:HDA Intel PCH,3 [in:0 out:8]
[3] hw:XI100DUSB-HDMI,0 [in:2 out:0]
[4] default [in:32 out:32]
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
RtApiAlsa: dump hardware params just after device open:
ACCESS: MMAP_INTERLEAVED RW_INTERLEAVED
FORMAT: S16_LE S32_LE
SUBFORMAT: STD
SAMPLE_BITS: [16 32]
FRAME_BITS: [32 64]
CHANNELS: 2
RATE: [44100 192000]
PERIOD_TIME: (83 185760)
PERIOD_SIZE: [16 8192]
PERIOD_BYTES: [128 65536]
PERIODS: [2 32]
BUFFER_TIME: (166 371520)
BUFFER_SIZE: [32 16384]
BUFFER_BYTES: [128 65536]
TICK_TIME: ALL
RtApiAlsa: dump hardware params after installation:
ACCESS: RW_INTERLEAVED
FORMAT: S32_LE
SUBFORMAT: STD
SAMPLE_BITS: 32
FRAME_BITS: 64
CHANNELS: 2
RATE: 44100
PERIOD_TIME: (11609 11610)
PERIOD_SIZE: 512
PERIOD_BYTES: 4096
PERIODS: 4
BUFFER_TIME: (46439 46440)
BUFFER_SIZE: 2048
BUFFER_BYTES: 16384
TICK_TIME: 0
RtApiAlsa: dump software params after installation:
tstamp_mode: NONE
tstamp_type: MONOTONIC
period_step: 1
avail_min: 512
start_threshold: 512
stop_threshold: -1
silence_threshold: 0
silence_size: 4611686018427387904
boundary: 4611686018427387904
I get similar jack-related errors when I try to run an instance of ofSoundstream with the Magewell video feed (which tends to act like a webcam). ofVideoPlayer and ofSoundPlayer both output audio. Also, audioInputExample seems to be pulling in audio from the Magewell as well (visuals are happening).
Is this a general Linux/Audio issue, or specific to my setup? Any help is much appreciated.
FYI, I’m using a low-budget Intel NUC with a Celeron processor.