Streaming to facebook from custom hosted jitsi

Is there any way we can configure Jitsi to work on facebook or any other streaming server.

Assuming that you have a working Jibri. On the Jibri host as root:

apt-get update
apt-get install stunnel

cat >/etc/stunnel/facebook.conf <<EOF
client = yes
accept =
connect =
verifyChain = no

systemctl stop stunnel4.service
systemctl start stunnel4.service

cat >/usr/local/bin/ffmpeg <<EOF


if [[ -n "$(echo $ARGS | grep 'rtmp://.*://')" ]]; then
    DST_RAW=$(echo $ARGS | rev | awk '{print $1}' | rev)
    DST=$(echo $DST_RAW | sed 's~^[^:/]*://~~' | egrep -o '[^:/]*://.*')
    DST=$(echo $DST | sed 's~rtmps://')

    ARGS=$(echo $ARGS | sed "s~rtmp://.*~~")

echo $ARGS >> /tmp/ffmpeg.log
exec /usr/bin/ffmpeg $ARGS

chmod 755 /usr/local/bin/ffmpeg

systemctl stop jibri.service
systemctl start jibri.service

Use the stream server address as the stream key when you want to start a stream.

Thanks… I was looking for a way, which allows me to run both youtube and facebook from UI.