obs studio with jack audio and the freebsd realtime kernel module

Setting up the Freebsd realtime kernel module for jack and capturing the audio with obs studio


Add mac_priority to /etc/rc.conf file and load the mac_priority kernel module.

Code:
sudo sysrc kld_list+="mac_priority"

kldload mac_priority

Code:
sudo kldload mac_priority

Then add yourself to realtime group. replace username with your username

Code:
sudo pw groupmod realtime -m username

check you have been added to the realtime group

Code:
grep realtime /etc/group

install jack

Code:
sudo pkg install audio/jack

edit your /etc/rc.conf
replace username with your username

Code:
jackd_enable="NO"
jackd_user="username"
jackd_rtprio="YES"

install qjackctl

Code:
sudo pkg install qjackctl

freebsd mic set up
use the freebsd mixer or mixertui to set the mic input level to 100%

run jackd
replace dsp3 and dsp1 with your audio devices

Code:
jackd -R -d oss -r 48000 -C /dev/dsp3 -P /dev/dsp1

obs studio add Jack Input Client
open obs studio and under the sources click the plus button and add a Jack Input Client

start qjackctl and patch the audio as shown in the video and remember to click active


note i managed to fix the audio popping issue i was having in previous videos
by switching from wayfire to dwl
 
Back
Top