FFMPEG and Jibri-xorg failing

After a couple days trying to make the recordings work properly, now the recording user finally joins the room, but after a few seconds the user leaves and the recording fails.

Jibri logs:

2021-04-14 13:32:20.193 FINE: [42] org.jitsi.jibri.statsd.JibriStatsDClient.incrementCounter() Incrementing statsd counter: start:recording
2021-04-14 13:32:20.195 INFO: [42] org.jitsi.jibri.status.JibriStatusManager.log() Busy status has changed: IDLE → BUSY
2021-04-14 13:32:20.195 FINE: [42] org.jitsi.jibri.webhooks.v1.WebhookClient.invokeSuspend() Updating 0 subscribers of status
2021-04-14 13:32:20.196 INFO: [42] org.jitsi.jibri.api.xmpp.XmppApi.updatePresence() Jibri reports its status is now JibriStatus(busyStatus=BUSY, health=OverallHealth(healthStatus=HEALTHY, details={})), publishing presence to connections
2021-04-14 13:32:20.218 INFO: [42] org.jitsi.jibri.api.xmpp.XmppApi.handleStartJibriIq() Sending ‘pending’ response to start IQ
2021-04-14 13:32:24.030 FINE: [53] org.jitsi.jibri.selenium.pageobjects.CallPage.visit() Visiting url https://10.5.13.114/asd#config.iAmRecorder=true&config.externalConnectUrl=null&config.startWithAudioMuted=true&config.startWithVideoMuted=true&interfaceConfig.APP_NAME=“Jibri”&config.analytics.disabled=true&config.p2p.enabled=false&config.prejoinPageEnabled=false&config.requireDisplayName=false
2021-04-14 13:32:25.464 FINE: [53] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property ‘isJoined’ of undefined
2021-04-14 13:32:25.975 FINE: [53] org.jitsi.jibri.selenium.pageobjects.CallPage.apply() Not joined yet: Cannot read property ‘isJoined’ of undefined
2021-04-14 13:32:27.434 INFO: [53] org.jitsi.jibri.selenium.pageobjects.CallPage.visit() Waited 2185 milliseconds for call page to load
2021-04-14 13:32:27.435 INFO: [53] org.jitsi.jibri.selenium.JibriSelenium.() Starting empty call check with a timeout of PT30S
2021-04-14 13:32:27.574 INFO: [53] org.jitsi.jibri.selenium.JibriSelenium.onSeleniumStateChange() Transitioning from state Starting up to Running
2021-04-14 13:32:27.575 INFO: [53] org.jitsi.jibri.service.impl.FileRecordingJibriService.invoke() Selenium joined the call, starting the capturer
2021-04-14 13:32:27.683 INFO: [53] org.jitsi.jibri.util.JibriSubprocess.ffmpeg.launch() Starting ffmpeg with command ffmpeg -y -v info -f x11grab -draw_mouse 0 -r 30 -s 1280x720 -thread_queue_size 4096 -i :0.0+0,0 -f alsa -thread_queue_size 4096 -i plug:bsnoop -acodec aac -strict -2 -ar 44100 -b:a 128k -af aresample=async=1 -c:v libx264 -preset veryfast -profile:v main -level 3.1 -pix_fmt yuv420p -r 30 -crf 25 -g 60 -tune zerolatency -f mp4 /tmp/recordings/ruubfbuvsifxvwgq/asd_2021-04-14-13-32-20.mp4 ([ffmpeg, -y, -v, info, -f, x11grab, -draw_mouse, 0, -r, 30, -s, 1280x720, -thread_queue_size, 4096, -i, :0.0+0,0, -f, alsa, -thread_queue_size, 4096, -i, plug:bsnoop, -acodec, aac, -strict, -2, -ar, 44100, -b:a, 128k, -af, aresample=async=1, -c:v, libx264, -preset, veryfast, -profile:v, main, -level, 3.1, -pix_fmt, yuv420p, -r, 30, -crf, 25, -g, 60, -tune, zerolatency, -f, mp4, /tmp/recordings/ruubfbuvsifxvwgq/asd_2021-04-14-13-32-20.mp4])
2021-04-14 13:32:32.749 FINE: [18] org.jitsi.jibri.util.ProcessStatePublisher.ffmpeg.invoke() Process ffmpeg hasn’t written in 2 seconds, publishing periodic update
2021-04-14 13:32:32.750 INFO: [57] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.onFfmpegProcessUpdate() Ffmpeg quit abruptly. Last output line: :0.0+0,0: Invalid argument
2021-04-14 13:32:32.757 INFO: [57] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.onFfmpegStateMachineStateChange() Ffmpeg capturer transitioning from state Starting up to Error: QuitUnexpectedly SESSION :0.0+0,0: Invalid argument
2021-04-14 13:32:32.760 INFO: [57] org.jitsi.jibri.service.impl.FileRecordingJibriService.onServiceStateChange() File recording service transitioning from state Starting up to Error: QuitUnexpectedly SESSION :0.0+0,0: Invalid argument
2021-04-14 13:32:32.780 INFO: [57] org.jitsi.jibri.api.xmpp.XmppApi.invoke() Current service had an error Error: QuitUnexpectedly SESSION :0.0+0,0: Invalid argument, sending error iq
2021-04-14 13:32:32.829 FINE: [57] org.jitsi.jibri.statsd.JibriStatsDClient.incrementCounter() Incrementing statsd counter: stop:recording
2021-04-14 13:32:32.842 INFO: [57] org.jitsi.jibri.JibriManager.stopService() Stopping the current service
2021-04-14 13:32:32.842 INFO: [57] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Stopping capturer
2021-04-14 13:32:32.842 INFO: [57] org.jitsi.jibri.util.JibriSubprocess.ffmpeg.stop() Stopping ffmpeg process
2021-04-14 13:32:32.860 INFO: [57] org.jitsi.jibri.util.JibriSubprocess.ffmpeg.stop() ffmpeg exited with value 1
2021-04-14 13:32:32.860 INFO: [57] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Quitting selenium
2021-04-14 13:32:32.937 INFO: [57] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Participants in this recording:
2021-04-14 13:32:33.189 INFO: [57] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Leaving call and quitting browser
2021-04-14 13:32:33.189 INFO: [57] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Recurring call status checks cancelled
2021-04-14 13:32:33.287 INFO: [57] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 17 log entries for type browser
2021-04-14 13:32:33.694 INFO: [57] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 641 log entries for type driver
2021-04-14 13:32:34.360 INFO: [57] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 0 log entries for type client
2021-04-14 13:32:34.360 INFO: [57] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Leaving web call
2021-04-14 13:32:34.619 INFO: [57] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Quitting chrome driver
2021-04-14 13:32:34.693 INFO: [57] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Chrome driver quit
2021-04-14 13:32:34.694 INFO: [57] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Finalizing the recording
2021-04-14 13:32:34.698 INFO: [57] org.jitsi.jibri.service.impl.FileRecordingJibriService.finalize() Recording finalize script finished with exit value 0
2021-04-14 13:32:34.699 INFO: [57] org.jitsi.jibri.status.JibriStatusManager.log() Busy status has changed: BUSY → IDLE
2021-04-14 13:32:34.699 FINE: [57] org.jitsi.jibri.webhooks.v1.WebhookClient.invokeSuspend() Updating 0 subscribers of status
2021-04-14 13:32:34.700 INFO: [57] org.jitsi.jibri.api.xmpp.XmppApi.updatePresence() Jibri reports its status is now JibriStatus(busyStatus=IDLE, health=OverallHealth(healthStatus=HEALTHY, details={})), publishing presence to connections
2021-04-14 13:33:06.178 FINE: [18] org.jitsi.jibri.webhooks.v1.WebhookClient.invokeSuspend() Updating 0 subscribers of status

I guess that the real problem is the jibri-xorg service, every time i try to start it fails, and when ffmpeg tries to use de dummy it fails.

mapa@mapa-VirtualBox:/opt/jitsi/jibri$ systemctl status jibri-xorg
● jibri-xorg.service - Jibri Xorg Process
Loaded: loaded (/etc/systemd/system/jibri-xorg.service; enabled; vendor pres
Active: failed (Result: exit-code) since Wed 2021-04-14 12:58:52 CEST; 42min
Main PID: 878 (code=exited, status=1/FAILURE)

abr 14 12:58:52 mapa-VirtualBox systemd[1]: jibri-xorg.service: Service ho
abr 14 12:58:52 mapa-VirtualBox systemd[1]: jibri-xorg.service: Scheduled
abr 14 12:58:52 mapa-VirtualBox systemd[1]: Stopped Jibri Xorg Process.
abr 14 12:58:52 mapa-VirtualBox systemd[1]: jibri-xorg.service: Start requ
abr 14 12:58:52 mapa-VirtualBox systemd[1]: jibri-xorg.service: Failed wit
abr 14 12:58:52 mapa-VirtualBox systemd[1]: Failed to start Jibri Xorg Pro
lines 1-11/11 (END)

Im not sure about it and how to solve it, if someone could help me it would be nice.

Thank you in advance.

Does this machine have already running X desktop?

Hi @emrah

I finally recorded a video but when i openened the .mp4 file instead of the conferece this is what appears, any idea of what could be happening?

Thank you in advance.