Having problems with broadcasting on OpenBSD using ffmpeg
I've tried first a ready solution the fauxstream script which can do the job very good but it records only either desktop or microphone not both it has a problem in the script
Of course i have my own script to record desktop and mic but it creates a seperate file for audio and for video and then combines it can't be used for broadcasting live.
-- Then i made this script which has awful performance it records from desktop and microphone but its performance is awful
My script has probably many problems this is it:
#!/bin/sh
ffmpeg -loglevel fatal -f sndio -i snd/0.mon -f sndio -i snd/0 -filter_complex '[0] [1] amerge' -c:a aac -f nut pipe:1 | \
ffmpeg -f nut -i pipe:0 -video_size 1920x1080 -framerate 30 -f x11grab -i :0.0 -c:v libx264 -qp 0 -preset ultrafast -f flv $1