Jibri has problem when launching google-chrome

Hello

I have installed jitsi-meet on a stand-alone machine. Jitsi works very well. I can make videoconference locally and from internet.

But I can’t record with jibri.

Jibri has a problem when launching google-chrome, the error is :

2022-01-23 10:01:21.886 GRAVE: [47] XmppApi.handleStartJibriIq#226: Error starting Jibri service
org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: crashed.
(unknown error: DevToolsActivePort file doesn’t exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=97.0.4692.71 (adefa7837d02a07a604c1e6eff0b3a09422ab88d-refs/branch-heads/4692@{#1247}),platform=Linux 5.10.0-10-amd64 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 132 milliseconds
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
System info: host: ‘jitsi.myweb.com’, ip: ‘127.0.0.1’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘5.10.0-10-amd64’, java.version: ‘17.0.1’
Driver info: driver.version: ChromeDriver
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:123)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:1002)
at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129)
at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:647)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:207)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:130)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:168)
at org.jitsi.jibri.selenium.JibriSelenium.(JibriSelenium.kt:198)
at org.jitsi.jibri.selenium.JibriSelenium.(JibriSelenium.kt:168)
at org.jitsi.jibri.service.impl.FileRecordingJibriService.(FileRecordingJibriService.kt:109)
at org.jitsi.jibri.service.impl.FileRecordingJibriService.(FileRecordingJibriService.kt:102)
at org.jitsi.jibri.JibriManager.startFileRecording(JibriManager.kt:139)
at org.jitsi.jibri.api.xmpp.XmppApi.handleStartService(XmppApi.kt:308)
at org.jitsi.jibri.api.xmpp.XmppApi.handleStartJibriIq(XmppApi.kt:206)
at org.jitsi.jibri.api.xmpp.XmppApi.handleJibriIq(XmppApi.kt:178)
at org.jitsi.jibri.api.xmpp.XmppApi.handleIq(XmppApi.kt:160)
at org.jitsi.xmpp.mucclient.MucClient.handleIq(MucClient.java:533)
at org.jitsi.xmpp.mucclient.MucClient.access$300(MucClient.java:51)
at org.jitsi.xmpp.mucclient.MucClient$3.handleIQRequest(MucClient.java:496)
at org.jivesoftware.smack.AbstractXMPPConnection$3.run(AbstractXMPPConnection.java:1568)
at org.jivesoftware.smack.AbstractXMPPConnection$10.run(AbstractXMPPConnection.java:2146)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
2022-01-23 10:01:39.077 INFOS: [58] InternalHttpApi$internalApiModule$2$1$1.invokeSuspend#58: Jibri gracefully shutting down
2022-01-23 10:01:39.098 INFOS: [60] MainKt$main$gracefulShutdownHandler$1.invoke#111: Jibri has been told to graceful shutdown, waiting to be idle before exiting

All executables are on the same machine.
Linux jitsi.myweb.com 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64 GNU/Linux

Packages versions

ii jitsi-meet 2.0.6826-1 all WebRTC JavaScript video conferences
ii jitsi-meet-prosody 1.0.5764-1 all Prosody configuration for Jitsi Meet
ii jitsi-meet-turnserver 1.0.5764-1 all Configures coturn to be used with Jitsi Meet
ii jitsi-meet-web 1.0.5764-1 all WebRTC JavaScript video conferences
ii jitsi-meet-web-config 1.0.5764-1 all Configuration for web serving of Jitsi Meet
ii jitsi-videobridge2 2.1-607-g153f7e4e-1 all WebRTC compatible Selective Forwarding Unit (SFU)
ii jibri 8.0-116-gca0c772-1 all Jibri

ii openjdk-17-jdk:amd64 17.0.1+12-1+deb11u2 amd64 OpenJDK Development Kit (JDK)
ii openjdk-17-jdk-headless:amd64 17.0.1+12-1+deb11u2 amd64 OpenJDK Development Kit (JDK) (headless)
ii openjdk-17-jre:amd64 17.0.1+12-1+deb11u2 amd64 OpenJDK Java runtime, using Hotspot JIT
ii openjdk-17-jre-headless:amd64 17.0.1+12-1+deb11u2 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)

ii google-chrome-stable 97.0.4692.99-1 amd64 The web browser from Google
Driver info: chromedriver=97.0.4692.71

My jibri.conf file

jibri {
// A unique identifier for this Jibri
// TODO: eventually this will be required with no default
id = “”

// Whether or not Jibri should return to idle state after handling
// (successfully or unsuccessfully) a request. A value of ‘true’
// here means that a Jibri will NOT return back to the IDLE state
// and will need to be restarted in order to be used again.
single-use-mode = false

api {
http {
external-api-port = 2222
internal-api-port = 3333
}

  xmpp {
     // See example_xmpp_envs.conf for an example of what is expected here
     environments = [
     {
        name = "prod"
        xmpp-server-hosts = ["jitsi.myweb.com"]
       xmpp-domain = "jitsi.myweb.com"
        control-login = {
           // The domain to use for logging in
           domain =  "auth.jitsi.myweb.com"
           // The credentials for logging in
           username = "jibri"
           password = "XXXXXXXX"
        }

        control-muc = {
           domain = "internal.auth.jitsi.myweb.com"
           room-name = "JibriBrewery"
           nickname = "jibri-nickname"
        }

        call-login = {
           domain =  "recorder.jitsi.myweb.com"
           username = "recorder"
           password = "XXXXXXXX"
        }

        strip-from-room-domain = "conference."

        usage-timeout = 0

        trust-all-xmpp-certs = true
        // room_jid_domain_string_to_strip_from_start = "conference."
        // usage_timeout = "0"
     }
     ]
  }

}
recording {
recordings-directory = “/var/recordings”
# TODO: make this an optional param and remove the default
finalize-script = “/var/recordings/finalize_recording.sh”
}
streaming {
// A list of regex patterns for allowed RTMP URLs. The RTMP URL used
// when starting a stream must match at least one of the patterns in
// this list.
rtmp-allow-list = [
// By default, all services are allowed
“.*”
]
}
ffmpeg {
resolution = “1920x1080”
// The audio source that will be used to capture audio on Linux
audio-source = “alsa”
// The audio device that will be used to capture audio on Linux
audio-device = “plug:bsnoop”
}
chrome {
// The flags which will be passed to chromium when launching
flags = [
“–no-sandbox”,
“–disable-setuid-sandbox”,
“–use-fake-ui-for-media-stream”,
“–start-maximized”,
“–kiosk”,
“–enabled”,
“–autoplay-policy=no-user-gesture-required”
]
}nano log
stats {
enable-stats-d = true
}
call-status-checks {
// If all clients have their audio and video muted and if Jibri does not
// detect any data stream (audio or video) comming in, it will stop
// recording after NO_MEDIA_TIMEOUT expires.
no-media-timeout = 30 seconds

// If all clients have their audio and video muted, Jibri consideres this
// as an empty call and stops the recording after ALL_MUTED_TIMEOUT expires.
all-muted-timeout = 10 minutes

// When detecting if a call is empty, Jibri takes into consideration for how
// long the call has been empty already. If it has been empty for more than
// DEFAULT_CALL_EMPTY_TIMEOUT, it will consider it empty and stop the recording.
default-call-empty-timeout = 30 seconds

}
}

nano log”…?
Is this a copy-paste error?

Yes. Sorry for that. (forget nano log, fool typing !)

I have made some more research and I found that the jibri-xorg.service do not load.
Error is :
Jan 23 13:56:49 jitsi Xorg[2898]: /usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server

So the jibri-icewm do not load also. But the Jibri service load !!!

I do have a graphical user interface installed on the server : gnome.

the xorg installed packages are
ii xorg 1:7.7+22 amd64 X-org X Window System
ii xorg-docs-core 1:1.7.1-1.2 all Core documentation for the X-org X Window System
ii xorg-sgml-doctools 1:1.11-1.1 all Common tools for building X-org SGML documentation
ii xserver-xorg 1:7.7+22 amd64 X-org X server
ii xserver-xorg-core 2:1.20.11-1+deb11u1 amd64 Xorg X server - core server
ii xserver-xorg-input-all 1:7.7+22 amd64 X-org X server – input driver metapackage
ii xserver-xorg-input-libinput 0.30.0-1 amd64 X-org X server – libinput input driver
ii xserver-xorg-input-wacom 0.34.99.1-1+b1 amd64 X-org X server – Wacom input driver
ii xserver-xorg-legacy 2:1.20.11-1+deb11u1 amd64 setuid root Xorg server wrapper
ii xserver-xorg-video-all 1:7.7+22 amd64 X-org X server – output driver metapackage
ii xserver-xorg-video-amdgpu 19.1.0-2 amd64 X-org X server – AMDGPU display driver
ii xserver-xorg-video-ati 1:19.1.0-2 amd64 X-org X server – AMD/ATI display driver wrapper
ii xserver-xorg-video-dummy 1:0.3.8-1+b1 amd64 X-org X server – dummy display driver
ii xserver-xorg-video-fbdev 1:0.5.0-1 amd64 X-org X server – fbdev display driver
ii xserver-xorg-video-intel 2:2.99.917+git20200714-1+b1 amd64 X-org X server – Intel i8xx, i9xx display driver
ii xserver-xorg-video-nouveau 1:1.0.17-1 amd64 X-org X server – Nouveau display driver
ii xserver-xorg-video-qxl 0.1.5+git20200331-1 amd64 X-org X server – QXL display driver
ii xserver-xorg-video-radeon 1:19.1.0-2 amd64 X-org X server – AMD/ATI Radeon display driver
ii xserver-xorg-video-vesa 1:2.5.0-1 amd64 X-org X server – VESA display driver
ii xserver-xorg-video-vmware 1:13.3.0-3 amd64 X-org X server – VMware display driver

I cant get the xserver-xorg-input-void because this package does not exist anymore.

ii icewm 2.1.2-1 amd64 wonderful Win95-OS/2-Motif-like window manager
ii icewm-common 2.1.2-1 amd64 wonderful Win95-OS/2-Motif-like window manager
ii xdotool 1:3.20160805.1-4 amd64 simulate (generate) X11 keyboard/mouse input events

This is the problem. You shouldn’t have an already installed desktop environment on Jibri server

Thank you for your answer.

I will put my server in console mode and see if that works.

If not, I will reinstall linux without a GUI.

3 days after … My machine is now on server configuration. No gui.

All the jibri process load, but still no recording.

Jan 26 17:58:09 jitsi systemd[1]: Starting LSB: Jitsi conference Focus…
Jan 26 17:58:09 jitsi jicofo[13098]: Starting jicofo: jicofo started.
Jan 26 17:58:09 jitsi systemd[1]: Started LSB: Jitsi conference Focus.
Jan 26 17:58:54 jitsi systemd[1]: Starting Jitsi Videobridge…
Jan 26 17:58:54 jitsi systemd[1]: Started Jitsi Videobridge.
Jan 26 17:59:39 jitsi systemd[1]: Started Jibri Xorg Process.
Jan 26 17:59:39 jitsi systemd[1]: Started Jibri Window Manager.
Jan 26 17:59:39 jitsi systemd[1]: Started Jibri Process.
Jan 26 17:59:39 jitsi Xorg[13274]: X.Org X Server 1.20.11
Jan 26 17:59:39 jitsi Xorg[13274]: X Protocol Version 11, Revision 0
Jan 26 17:59:39 jitsi Xorg[13274]: Build Operating System: linux Debian
Jan 26 17:59:39 jitsi Xorg[13274]: Current Operating System: Linux jitsi 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64
Jan 26 17:59:39 jitsi Xorg[13274]: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.10.0-11-amd64 root=UUID=47b514ba-3ecc-406c-8844-c66622d9a962 ro quiet
Jan 26 17:59:39 jitsi Xorg[13274]: Build Date: 16 December 2021 05:08:23PM
Jan 26 17:59:39 jitsi Xorg[13274]: xorg-server 2:1.20.11-1+deb11u1 (Debian -- Support)
Jan 26 17:59:39 jitsi Xorg[13274]: Current version of pixman: 0.40.0
Jan 26 17:59:39 jitsi Xorg[13274]: #011Before reporting problems, check http://wiki.x.org
Jan 26 17:59:39 jitsi Xorg[13274]: #011to make sure that you have the latest version.
Jan 26 17:59:39 jitsi Xorg[13274]: Markers: (–) probed, (**) from config file, (==) default setting,
Jan 26 17:59:39 jitsi Xorg[13274]: #011(++) from command line, (!!) notice, (II) informational,
Jan 26 17:59:39 jitsi Xorg[13274]: #011(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Jan 26 17:59:39 jitsi Xorg[13274]: (++) Log file: “/var/log/jitsi/jibri/xorg.log”, Time: Wed Jan 26 17:59:39 2022
Jan 26 17:59:39 jitsi Xorg[13274]: (++) Using config file: “/etc/jitsi/jibri/xorg-video-dummy.conf”
Jan 26 17:59:39 jitsi Xorg[13274]: (==) Using system config directory “/usr/share/X11/xorg.conf.d”

I have a problem with xorg.

[ 33496.564] (II) LoadModule: “mouse”
[ 33496.564] (WW) Warning, couldn’t open module mouse
[ 33496.564] (EE) Failed to load module “mouse” (module does not exist, 0)
[ 33496.564] (EE) No input driver matching mouse' [ 33496.564] (II) Falling back to input driver libinput’
[ 33496.564] (II) LoadModule: “libinput”
[ 33496.564] (WW) Warning, couldn’t open module libinput
[ 33496.564] (EE) Failed to load module “libinput” (module does not exist, 0)
[ 33496.564] (II) LoadModule: “kbd”
[ 33496.564] (WW) Warning, couldn’t open module kbd
[ 33496.564] (EE) Failed to load module “kbd” (module does not exist, 0)
[ 33496.564] (EE) No input driver matching kbd' [ 33496.564] (II) Falling back to input driver libinput’
[ 33496.564] (II) LoadModule: “libinput”
[ 33496.564] (WW) Warning, couldn’t open module libinput

I suppose that it is because I did not install the package xserver-xorg-input-void. There is no such package in Debian 10, nor in jitsi.

Where could i get this package ?

Do you have any idea to correct this problem ?

Not sure what you mean by this, but you need a server, not just a desktop configured as a server. And the xorg errors you’re seeing is evidence of that.

My server is second stand-alone pc without any gui, no gdm, no gnome, no kde, no desktop application. I use ssh from my pc to configure this second machine.

What I have undertood of the jibri application is that it simulate a user using chrome to connect to the conference. The jibri process launch the chrome application in a dummy Xorg.server. That’s why you need thes packages : icewm xdotool xserver-xorg-input-void xserver-xorg-video-dummy.

To config jibri i followed these instructions : TUTORIAL - How to Install the NEW JIBRI

The Xorg you see on the log is the dummy Xorg from the xserver-xorg-video-dummy package.

So, yes my server is a server.

These are the only xorg package on my server:
ii xorg-sgml-doctools 1:1.11-1.1 all Common tools for building X.Org SGML documentation
ii xserver-xorg-core 2:1.20.11-1+deb11u1 amd64 Xorg X server - core server
ii xserver-xorg-video-dummy 1:0.3.8-1+b1 amd64 X.Org X server – dummy display driver

The xserver-xorg-core is needed by the xserver-xorg-video-dummy package.

I wonder if i will have to compile a xserver-xorg-input-void package for debian 10.

I am missing something ?

These warnings are OK. Check the jibri logs

/var/log/jitsi/jibri/

@emrah

I found here Debian package depends on xserver-xorg-input-void, removed in bullseye · Issue #423 · jitsi/jibri · GitHub
that the xserver-xorg-input-void package is no more needed.
So my xorg package configuration is OK.

The problem was in jicofo :

I followed these tutorial

or

adding these lines to the logging.properties of jicofo do not works !!!

org.jitsi.jicofo.jibri.BREWERY=JibriBrewery@internal.auth.jitsi.mydomain.com
org.jitsi.jicofo.jibri.PENDING_TIMEOUT=90

As I use the new jcofo, I had to add these lines in the jicofo.conf.

jibri: {
brewery-jid: “jibribrewery@internal.auth.jitsi.mydomain.com
pending-timeout: “90”
}

Now recording is working.

But now i have another problem : my mp4 video files are corrupted.

Its seems that ffmpeg is not able to get the jitsi stream framerate. So it use 30 fps wich is to much i suppose.

The ffmpeg message is :
[x11grab @ 0x55c8b6e27a00] Stream #0: not enough frames to estimate rate; consider increasing probesize

Any idea to correct the problem ?

I made thes changes in jitsi config.js to improve the framerate of jitsi.

diminish the resolution from 720 to 360
resolution: 360,
maxFps: 15,
constraints: {
video: {
frameRate: {
max: 15
},
height: {
ideal: 320,
max: 320,
min: 240
}
}
},

setting jitsi fremrate to 15.

desktopSharingFrameRate: {
     min: 15,
     max: 15
},

Is it possible to launch ffmpeg with a lower framerate ?

My ffmpeg log

2022-01-27 17:35:05.807 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: built with gcc 10 (Debian 10.2.1-6)
2022-01-27 17:35:05.845 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: configuration: --prefix=/usr --extra-version=0+deb11u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
2022-01-27 17:35:05.845 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: libavutil 56. 51.100 / 56. 51.100
2022-01-27 17:35:05.845 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: libavcodec 58. 91.100 / 58. 91.100
2022-01-27 17:35:05.845 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: libavformat 58. 45.100 / 58. 45.100
2022-01-27 17:35:05.845 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: libavdevice 58. 10.100 / 58. 10.100
2022-01-27 17:35:05.845 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: libavfilter 7. 85.100 / 7. 85.100
2022-01-27 17:35:05.845 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: libavresample 4. 0. 0 / 4. 0. 0
2022-01-27 17:35:05.846 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: libswscale 5. 7.100 / 5. 7.100
2022-01-27 17:35:05.846 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: libswresample 3. 7.100 / 3. 7.100
2022-01-27 17:35:05.846 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: libpostproc 55. 7.100 / 55. 7.100
2022-01-27 17:35:05.846 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: [x11grab @ 0x55dd3af0aa00] Stream #0: not enough frames to estimate rate; consider increasing probesize
2022-01-27 17:35:05.846 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Input #0, x11grab, from ‘:0.0+0,0’:
2022-01-27 17:35:05.846 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Duration: N/A, start: 1643301305.836940, bitrate: 1990656 kb/s
2022-01-27 17:35:05.869 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 1990656 kb/s, 30 fps, 1000k tbr, 1000k tbn, 1000k tbc
2022-01-27 17:35:05.870 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Guessed Channel Layout for Input Stream #1.0 : stereo
2022-01-27 17:35:05.870 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Input #1, alsa, from ‘plug:bsnoop’:
2022-01-27 17:35:05.870 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Duration: N/A, start: 1643301305.842706, bitrate: 1536 kb/s
2022-01-27 17:35:05.871 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
2022-01-27 17:35:05.871 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Stream mapping:
2022-01-27 17:35:05.871 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Stream #0:0#0:0 (rawvideo (native) → h264 (libx264))
2022-01-27 17:35:05.871 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Stream #1:0#0:1 (pcm_s16le (native) → aac (native))
2022-01-27 17:35:05.872 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Press [q] to stop, [?] for help
2022-01-27 17:35:05.872 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: [libx264 @ 0x55dd3af414c0] frame MB size (120x68) > level limit (3600)
2022-01-27 17:35:05.872 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: [libx264 @ 0x55dd3af414c0] MB rate (244800) > level limit (108000)
2022-01-27 17:35:05.872 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: [libx264 @ 0x55dd3af414c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
2022-01-27 17:35:05.873 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: [libx264 @ 0x55dd3af414c0] profile Main, level 3.1, 4:2:0, 8-bit
2022-01-27 17:35:06.872 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: [libx264 @ 0x55dd3af414c0] 264 - core 160 r3011 cde9a93 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - x264, the best H.264/AVC encoder - VideoLAN - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=8 lookahead_threads=8 sliced_threads=1 slices=8 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=60 keyint_min=6 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=25.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
2022-01-27 17:35:06.873 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Output #0, mp4, to ‘/srv/recordings/biisvqdujcvqomax/testconf_2022-01-27-17-35-01.mp4’:
2022-01-27 17:35:06.873 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Metadata:
2022-01-27 17:35:06.873 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: encoder : Lavf58.45.100
2022-01-27 17:35:06.874 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080, q=-1–1, 30 fps, 15360 tbn, 30 tbc
2022-01-27 17:35:06.874 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Metadata:
2022-01-27 17:35:06.874 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: encoder : Lavc58.91.100 libx264
2022-01-27 17:35:06.874 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Side data:
2022-01-27 17:35:06.874 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
2022-01-27 17:35:06.874 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
2022-01-27 17:35:06.874 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: Metadata:
2022-01-27 17:35:06.874 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: encoder : Lavc58.91.100 aac
2022-01-27 17:35:06.874 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: frame= 14 fps=0.0 q=21.0 size= 0kB time=00:00:00.44 bitrate= 0.9kbits/s speed=0.863x
2022-01-27 17:35:07.875 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: frame= 29 fps= 28 q=21.0 size= 0kB time=00:00:00.95 bitrate= 0.4kbits/s speed=0.934x
2022-01-27 17:35:07.876 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: frame= 44 fps= 28 q=21.0 size= 0kB time=00:00:01.43 bitrate= 0.3kbits/s speed=0.922x
2022-01-27 17:35:08.876 INFOS: [63] LoggingUtils$Companion$OutputLogger$1$1.call#42: frame= 57 fps= 28 q=21.0 size= 0kB time=00:00:01.86 bitrate= 0.2kbits/s speed=0.903x

What are the resources?
CPU, RAM…?

Seems that ffmpeg use 2 cpu to compress the stream at 30 fps.

Top log

top - 18:16:35 up 1:47, 2 users, load average: 1,57, 0,43, 0,15
Tâches: 171 total, 1 en cours, 170 en veille, 0 arrêté, 0 zombie
%Cpu(s): 46,4 ut, 2,9 sy, 0,0 ni, 49,8 id, 0,9 wa, 0,0 hi, 0,1 si, 0,0 st
MiB Mem : 3809,1 total, 1598,1 libr, 1187,8 util, 1023,2 tamp/cache
MiB Éch : 976,0 total, 976,0 libr, 0,0 util. 2242,3 dispo Mem

PID UTIL.     PR  NI    VIRT    RES    SHR S  %CPU  %MEM    TEMPS+ COM.                                                                                                       

4240 jibri 20 0 843488 216536 136048 S 197,7 5,6 0:54.04 ffmpeg
4134 jibri 20 0 42,5g 273852 146300 S 144,5 7,0 0:43.72 chrome
3924 jibri 20 0 2034828 185740 148436 S 18,9 4,8 0:05.85 Xorg
4188 jibri 20 0 16,4g 137052 89396 S 17,9 3,5 0:05.04 chrome
3827 jvb 20 0 9097516 352852 31288 S 15,0 9,0 0:29.22 java
4220 jibri 20 0 16,3g 75896 64292 S 2,3 1,9 0:01.74 chrome
4107 jibri 20 0 16,3g 91780 78972 S 1,3 2,4 0:00.62 chrome
3926 jibri 20 0 6764360 175676 30228 S 0,7 4,5 0:05.60 java
4017 root 20 0 10256 3904 3344 R 0,7 0,1 0:00.25 top
64 root 39 19 0 0 0 S 0,3 0,0 0:00.59 khugepaged
3646 root 20 0 0 0 0 I 0,3 0,0 0:00.16 kworker/u32:0-ext4-rsv-conversion
3774 jicofo 20 0 8807896 216316 29340 S 0,3 5,5 0:08.90 java
4046 jibri 20 0 16,8g 194336 157968 S 0,3 5,0 0:01.34 chrome
1 root 20 0 164032 10372 7676 S 0,0 0,3 0:01.29 systemd
2 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kthreadd
3 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 rcu_par_gp
6 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 kworker/0:0H-kblockd

Linux jitsi 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 GNU/Linux

processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core™ i7-2600 CPU @ 3.40GHz
stepping : 7
microcode : 0x25
cpu MHz : 1853.916
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 3
cpu cores : 4
apicid : 7
initial apicid : 7
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm epb pti tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts
vmx flags : vnmi preemption_timer invvpid ept_x_only flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips : 6784.95
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

Memory
3900556 K mémoire totale
141484 K mémoire utilisée
524156 K mémoire active
332708 K mémoire inactive
2897344 K mémoire libre
28916 K mémoire tampon
832812 K mémoire échange
999420 K échange total
0 K échange utilisé
999420 K partition d’échange libre
66343 tics du cpu utilisateur non-courtois
28 tics cpu utilisateur courtois
5371 tics cpu système
4903187 tics cpu inactif
15666 tics cpu attente E/S
0 tics cpu IRQ
216 tics cpu IRQ soft
0 tics cpu volés
710768 pages lues depuis le disque
264844 pages écrites sur le disque
0 pages mises en mémoire d’échange
0 pages sorties de la mémoire d’échange
1840747 interruptions
4202362 changements de contexte CPU
1643297348 heure d’amorçage
3770 clonages

There may be a resource issue. Can you watch the resources (the CPU load and the RAM usage) during recording at least 10 min.

Sar log during recording

18:49:46 CPU %user %nice %system %iowait %steal %idle
18:49:47 all 47,12 0,00 2,69 0,00 0,00 50,19
18:49:48 all 46,53 0,00 2,77 0,00 0,00 50,69
18:49:49 all 51,44 0,00 2,89 0,00 0,00 45,67
18:49:50 all 49,26 0,00 4,07 0,25 0,00 46,42
18:49:51 all 46,25 0,00 3,75 0,25 0,00 49,75
18:49:52 all 43,79 0,00 3,01 0,00 0,00 53,20
18:49:53 all 44,87 0,00 2,79 0,13 0,00 52,22
18:49:54 all 45,09 0,00 3,56 0,00 0,00 51,35
18:49:55 all 47,68 0,00 2,38 0,00 0,00 49,94
18:49:56 all 46,26 0,00 3,49 0,12 0,00 50,12
18:49:57 all 45,34 0,00 3,19 0,13 0,00 51,34
18:49:58 all 43,61 0,00 3,13 0,38 0,00 52,88
18:49:59 all 45,79 0,00 2,89 0,00 0,00 51,32
18:50:00 all 49,75 0,00 2,99 0,00 0,00 47,26
18:50:01 all 45,23 0,00 2,11 0,00 0,00 52,66
18:50:02 all 46,37 0,00 3,31 0,00 0,00 50,32
18:50:03 all 45,45 0,00 3,28 0,00 0,00 51,26
18:50:04 all 45,47 0,00 2,64 0,00 0,00 51,89
18:50:05 all 45,81 0,00 2,79 0,13 0,00 51,27
18:50:06 all 47,03 0,00 2,65 0,00 0,00 50,32
18:50:07 all 48,38 0,00 2,88 2,00 0,00 46,75
18:50:08 all 45,01 0,00 2,94 1,28 0,00 50,77
18:50:09 all 44,57 0,00 2,27 0,00 0,00 53,16
18:50:10 all 49,06 0,00 3,14 1,01 0,00 46,79
18:50:11 all 46,45 0,00 3,30 0,00 0,00 50,25
18:50:12 all 45,14 0,00 2,62 0,00 0,00 52,24
18:50:13 all 45,45 0,00 3,16 0,38 0,00 51,01
18:50:14 all 46,62 0,00 2,75 0,00 0,00 50,62
18:50:15 all 46,44 0,00 2,50 0,00 0,00 51,06
18:50:16 all 45,50 0,00 2,53 0,00 0,00 51,96
18:50:17 all 45,35 0,00 2,89 0,00 0,00 51,76
18:50:18 all 43,38 0,00 2,80 0,25 0,00 53,56
18:50:19 all 44,32 0,00 4,00 0,00 0,00 51,69
18:50:20 all 44,46 0,00 3,74 0,25 0,00 51,56
18:50:21 all 44,54 0,00 2,26 0,00 0,00 53,20
18:50:22 all 44,40 0,00 3,36 0,00 0,00 52,24
18:50:23 all 45,47 0,00 2,27 0,00 0,00 52,27
18:50:24 all 45,34 0,00 2,27 0,00 0,00 52,39
18:50:25 all 45,34 0,00 2,64 0,13 0,00 51,89
18:50:26 all 45,89 0,00 5,36 0,00 0,00 48,75
18:50:27 all 47,78 0,00 4,56 0,00 0,00 47,66
18:50:28 all 42,89 0,00 5,07 0,00 0,00 52,04

18:50:28 CPU %user %nice %system %iowait %steal %idle
18:50:29 all 45,37 0,00 7,35 0,00 0,00 47,28
18:50:30 all 44,81 0,00 3,67 0,13 0,00 51,39
18:50:31 all 44,35 0,00 3,73 0,00 0,00 51,93
18:50:32 all 45,85 0,00 3,27 0,25 0,00 50,63
18:50:33 all 47,46 0,00 4,83 0,13 0,00 47,58
18:50:34 all 46,55 0,00 3,32 0,00 0,00 50,13
18:50:35 all 46,37 0,00 3,31 0,00 0,00 50,32
18:50:36 all 45,57 0,00 3,37 0,37 0,00 50,69
18:50:37 all 42,53 0,00 4,52 0,25 0,00 52,70
18:50:38 all 44,17 0,00 3,14 0,00 0,00 52,70
18:50:39 all 43,36 0,00 2,91 0,00 0,00 53,73
18:50:40 all 45,36 0,00 2,41 0,00 0,00 52,22
18:50:41 all 45,04 0,00 2,54 0,38 0,00 52,04
18:50:42 all 44,55 0,00 3,34 0,00 0,00 52,10
18:50:43 all 43,70 0,00 2,52 0,50 0,00 53,27
18:50:44 all 46,05 0,00 3,26 0,00 0,00 50,69
18:50:45 all 46,77 0,00 2,74 0,00 0,00 50,50
18:50:46 all 45,35 0,00 2,26 0,00 0,00 52,39
18:50:47 all 45,23 0,00 2,23 0,00 0,00 52,54
18:50:48 all 48,13 0,00 2,86 0,37 0,00 48,63
18:50:49 all 45,85 0,00 2,89 0,00 0,00 51,26
18:50:50 all 45,05 0,00 3,30 0,38 0,00 51,27
18:50:51 all 47,58 0,00 2,04 0,00 0,00 50,38
18:50:52 all 44,58 0,00 3,40 0,00 0,00 52,02
18:50:53 all 45,27 0,00 3,58 0,00 0,00 51,15
18:50:54 all 44,86 0,00 3,88 0,00 0,00 51,25
18:50:55 all 47,01 0,00 2,74 0,25 0,00 50,00
18:50:56 all 45,42 0,00 3,26 0,00 0,00 51,32
18:50:57 all 45,78 0,00 2,52 0,00 0,00 51,70
18:50:58 all 44,02 0,00 3,56 0,00 0,00 52,42
18:50:59 all 41,94 0,00 2,90 0,00 0,00 55,16
18:51:00 all 44,72 0,00 2,39 0,38 0,00 52,51
18:51:01 all 46,93 0,00 2,63 2,38 0,00 48,06
18:51:02 all 43,47 0,00 2,51 0,00 0,00 54,02
18:51:03 all 44,24 0,00 2,63 0,00 0,00 53,13
18:51:04 all 46,11 0,00 2,17 0,00 0,00 51,72
18:51:05 all 46,71 0,00 2,66 0,25 0,00 50,38
18:51:06 all 46,12 0,00 2,96 0,00 0,00 50,92
18:51:07 all 27,78 0,00 3,63 1,50 0,00 67,08
18:51:08 all 0,62 0,00 0,25 0,00 0,00 99,13
18:51:09 all 0,50 0,00 0,13 0,00 0,00 99,37
18:51:10 all 0,50 0,00 0,13 0,00 0,00 99,37

18:51:10 CPU %user %nice %system %iowait %steal %idle
18:51:11 all 0,50 0,00 0,13 0,00 0,00 99,37
18:51:12 all 0,38 0,00 0,38 3,89 0,00 95,36
18:51:13 all 0,00 0,00 0,00 0,00 0,00 100,00
18:51:14 all 0,25 0,00 0,00 0,00 0,00 99,75
18:51:15 all 0,12 0,00 0,00 0,00 0,00 99,88
18:51:16 all 0,00 0,00 0,12 0,00 0,00 99,88
18:51:17 all 0,25 0,00 0,13 0,50 0,00 99,12
18:51:18 all 0,00 0,00 0,00 0,00 0,00 100,00
18:51:19 all 0,13 0,00 0,13 0,00 0,00 99,75
18:51:20 all 0,12 0,00 0,00 0,00 0,00 99,88
18:51:21 all 0,00 0,00 0,00 0,00 0,00 100,00
18:51:22 all 0,00 0,00 0,12 0,00 0,00 99,88
18:51:23 all 0,00 0,00 0,00 0,50 0,00 99,50
18:51:24 all 0,25 0,00 0,00 0,00 0,00 99,75
18:51:25 all 0,00 0,00 0,00 0,00 0,00 100,00
18:51:26 all 0,25 0,00 0,00 0,00 0,00 99,75

To get rid of the message
[x11grab @ 0x55c8b6e27a00] Stream #0: not enough frames to estimate rate; consider increasing probesize

I change the résolution of the virtual screen to 800 600 in xorg-video-dummy.conf
I put the frame rate to 30 fps in the config.js of jitsi.meet.

All seems OK with ffmpeg, but i still get a bad mp4 file. The mp4 file has no codec defined. The file is not empty. At the beging of the file you have this information. So the file is really made by ffmpeg.

x264 - core 160 r3011 cde9a93 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - x264, the best H.264/AVC encoder - VideoLAN - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=8 lookahead_threads=8 sliced_threads=1 slices=8 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=60 keyint_min=6 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=25.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.0

My ffmpeg version
ffmpeg version 4.3.3-0+deb11u1 Copyright (c) 2000-2021 the FFmpeg developers

package :
ffmpeg 7:4.3.3-0+deb11u1 amd64 Tools for transcoding, streaming and playing of multimedia files

ffmpeg log with no visible error
2022-01-27 22:04:00.729 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: ffmpeg version 4.3.3-0+deb11u1 Copyright (c) 2000-2021 the FFmpeg developers
2022-01-27 22:04:00.729 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: built with gcc 10 (Debian 10.2.1-6)
2022-01-27 22:04:00.840 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: configuration: --prefix=/usr --extra-version=0+deb11u1 --toolchain=hardened --libdir=/usr/lib/x86>
2022-01-27 22:04:00.841 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: libavutil 56. 51.100 / 56. 51.100
2022-01-27 22:04:00.841 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: libavcodec 58. 91.100 / 58. 91.100
2022-01-27 22:04:00.841 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: libavformat 58. 45.100 / 58. 45.100
2022-01-27 22:04:00.841 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: libavdevice 58. 10.100 / 58. 10.100
2022-01-27 22:04:00.841 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: libavfilter 7. 85.100 / 7. 85.100
2022-01-27 22:04:00.841 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: libavresample 4. 0. 0 / 4. 0. 0
2022-01-27 22:04:00.841 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: libswscale 5. 7.100 / 5. 7.100
2022-01-27 22:04:00.841 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: libswresample 3. 7.100 / 3. 7.100
2022-01-27 22:04:00.841 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: libpostproc 55. 7.100 / 55. 7.100
2022-01-27 22:04:00.841 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Input #0, x11grab, from ‘:0.0+0,0’:
2022-01-27 22:04:00.841 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Duration: N/A, start: 1643317440.765130, bitrate: 460800 kb/s
2022-01-27 22:04:00.841 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 800x600, 460800 kb/s, 30 fps, 30 tbr, 1>
2022-01-27 22:04:00.851 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Guessed Channel Layout for Input Stream #1.0 : stereo
2022-01-27 22:04:00.851 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Input #1, alsa, from ‘plug:bsnoop’:
2022-01-27 22:04:00.852 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Duration: N/A, start: 1643317440.834709, bitrate: 1536 kb/s
2022-01-27 22:04:00.852 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
2022-01-27 22:04:00.852 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Stream mapping:
2022-01-27 22:04:00.852 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Stream #0:0#0:0 (rawvideo (native) → h264 (libx264))
2022-01-27 22:04:00.852 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Stream #1:0#0:1 (pcm_s16le (native) → aac (native))
2022-01-27 22:04:00.852 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Press [q] to stop, [?] for help
2022-01-27 22:04:00.852 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: [libx264 @ 0x559b8f1a7b00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
2022-01-27 22:04:00.852 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: [libx264 @ 0x559b8f1a7b00] profile Main, level 3.1, 4:2:0, 8-bit
2022-01-27 22:04:01.852 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: [libx264 @ 0x559b8f1a7b00] 264 - core 160 r3011 cde9a93 - H.264/MPEG-4 AVC codec - Copyleft 2003-20>
2022-01-27 22:04:01.852 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Output #0, mp4, to ‘/srv/recordings/ulxofaxhgogqvgee/test_2022-01-27-22-03-56.mp4’:
2022-01-27 22:04:01.852 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Metadata:
2022-01-27 22:04:01.852 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: encoder : Lavf58.45.100
2022-01-27 22:04:01.852 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 800x600, q=-1–1,>
2022-01-27 22:04:01.853 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Metadata:
2022-01-27 22:04:01.853 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: encoder : Lavc58.91.100 libx264
2022-01-27 22:04:01.853 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Side data:
2022-01-27 22:04:01.853 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
2022-01-27 22:04:01.853 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
2022-01-27 22:04:01.853 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: Metadata:
2022-01-27 22:04:01.853 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: encoder : Lavc58.91.100 aac
2022-01-27 22:04:01.853 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: frame= 14 fps=0.0 q=19.0 size= 0kB time=00:00:00.44 bitrate= 0.9kbits/s speed=0.88x
2022-01-27 22:04:01.853 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: frame= 29 fps= 29 q=24.0 size= 0kB time=00:00:00.95 bitrate= 0.4kbits/s speed=0.943x

I just read this message If the user doesn't properly quit the recording the mp4 file is corrupted · Issue #413 · jitsi/jibri · GitHub

The mp4 file could be corrupted if the user quit and do not stop the recording before quit.

In my case i do stop the recording, and jitsi-meet say that the recording is ended.

But the ffmpeg is not stopped gracefully. So it does not have the time to finish the recording by adding metadate in the mp4 file.

In the ffmpeg log there is no message from ffmpeg saying it has finished the recording.

This is the end of my ffmpeg log
2022-01-27 22:05:42.891 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: frame= 3045 fps= 30 q=24.0 size= 12288kB time=00:01:41.47 bitrate= 992.0kbits/s speed=0.999x
2022-01-27 22:05:42.891 INFOS: [81] LoggingUtils$Companion$OutputLogger$1$1.call#42: frame= 3060 fps= 30 q=19.0 size= 12288kB time=00:01:41.98 bitrate= 987.1kbits/s speed=0.999x

The log end with no other message.

The jibri log shows the problem.

2022-01-27 22:59:50.148 PRÉCIS: [47] JibriStatsDClient.incrementCounter#38: Incrementing statsd counter: stop:recording
2022-01-27 22:59:50.149 INFOS: [47] JibriManager.stopService#260: Stopping the current service
2022-01-27 22:59:50.149 INFOS: [47] [session_id=rouorqolrijumure] FileRecordingJibriService.stop#181: Stopping capturer
2022-01-27 22:59:50.149 INFOS: [47] [session_id=rouorqolrijumure] JibriSubprocess.stop#75: Stopping ffmpeg process
2022-01-27 22:59:51.192 PRÉCIS: [22] WebhookClient$updateStatus$1.invokeSuspend#107: Updating 0 subscribers of status
2022-01-27 22:59:55.105 INFOS: [22] [session_id=rouorqolrijumure] MediaReceivedStatusCheck.run#40: Jibri client receive bitrates: {audio={download=23, upload=0}, download=111, u>
2022-01-27 23:00:00.153 GRAVE: [47] [session_id=rouorqolrijumure] JibriSubprocess.stop#80: Error trying to gracefully stop ffmpeg, destroying forcibly
2022-01-27 23:00:00.157 INFOS: [47] [session_id=rouorqolrijumure] JibriSubprocess.stop#89: ffmpeg exited with value 137
2022-01-27 23:00:00.158 INFOS: [47] [session_id=rouorqolrijumure] FileRecordingJibriService.stop#183: Quitting selenium

Jibri cannot stop gracefully the ffmpeg process. Why ?

This explain the problem of the corrupted mp4 files.

Any idea to correct the problem ?

jibri mostly crashes because of the resource issues. Another possibility may be java version.

It seems like you have a Debian Bullseye box. You may try this installer if you have a valid FQDN

Problem solved.

The problem was that my version of jibri 8.0-116-gca0c772-1 does not work with openjdk-17.

The good news is that jibri works with openjdk-11

So I remove the openjdk-17 and install the openjdk-11. And now, I can record and the mp4 video are ok.

Thanks for answering my questions.

1 Like