Error trying to gracefully stop ffmpeg, destroying forcibly

Greetings,

I have set up jitsi/jibri on my own machines per the respective instructions.
I am able to start recording from the meeting room, however when attempting to stop it, there is a delay of about 10 seconds before it reports recording is stopped. There is a .mp4 file produced in the recordings directory, however it seems corrupt (does not play). This is the jibri log (domain is redacted to example.com):

2020-03-26 15:18:04.734 INFO: [297] org.jitsi.xmpp.mucclient.MucClientManager.log() Setting a     presence extension: org.jitsi.xmpp.extensions.jibri.JibriStatusPacketExt@606c2f6d
2020-03-26 15:18:06.699 FINE: [301] org.jitsi.jibri.selenium.pageobjects.CallPage.visit() Visiting url https://conference.example.com/test_dvk#config.iAmRecorder=true&config.externalConnectUrl=null&config.startWithAudioMuted=true&config.startWithVideoMuted=true&interfaceConfig.APP_NAME="Jibri"&config.analytics.disabled=true&config.p2p.enabled=false
2020-03-26 15:18:09.646 INFO: [301] org.jitsi.jibri.selenium.pageobjects.CallPage.visit() Waited 1947 milliseconds for call page to load
2020-03-26 15:18:09.665 INFO: [301] org.jitsi.jibri.selenium.JibriSelenium.onSeleniumStateChange() Transitioning from state Starting up to Running
2020-03-26 15:18:09.665 INFO: [301] org.jitsi.jibri.service.impl.FileRecordingJibriService.invoke() Selenium joined the call, starting the capturer
2020-03-26 15:18:09.749 INFO: [301] 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:cloop -acodec aac -strict -2 -ar 44100 -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/jbcwrtulrhmqulrn/test_dvk_2020-03-26-15-18-04.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:cloop, -acodec, aac, -strict, -2, -ar, 44100, -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/jbcwrtulrhmqulrn/test_dvk_2020-03-26-15-18-04.mp4])
2020-03-26 15:18:11.020 INFO: [311] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.onFfmpegStateMachineStateChange() Ffmpeg capturer transitioning from state Starting up to Running
2020-03-26 15:18:11.022 INFO: [311] org.jitsi.jibri.service.impl.FileRecordingJibriService.onServiceStateChange() File recording service transitioning from state Starting up to Running
2020-03-26 15:18:11.022 INFO: [311] org.jitsi.jibri.api.xmpp.XmppApi.invoke() Current service started up successfully, sending on iq <iq to='jibribrewery@internal.auth.conference.example.com/focus' id='jEypK-486' type='set'><jibri xmlns='http://jitsi.org/protocol/jibri' status='on'/></iq>
2020-03-26 15:18:24.792 INFO: [270] org.jitsi.jibri.selenium.JibriSelenium.run() Jibri client receive bitrates: {audio={download=36, upload=0}, download=1039, upload=0, video={download=1003, upload=0}}, all clients muted? false
2020-03-26 15:18:29.863 INFO: [287] org.jitsi.jibri.api.xmpp.XmppApi.handleJibriIq() Received JibriIq <iq to='jibri@auth.conference.example.com/qbY-Byfz' from='jibribrewery@internal.auth.conference.example.com/focus' id='amlicmlAYXV0aC5jb25mZXJlbmNlLnBveXBlLmlvL3FiWS1CeWZ6AFBSOEUxLTU3NjkASkfjiCfdAN0KxCdety5x6Q==' type='set'><jibri xmlns='http://jitsi.org/protocol/jibri' action='stop'/></iq> from environment [MucClient id=conference.example.com hostname=conference.example.com]
2020-03-26 15:18:29.864 FINE: [287] org.jitsi.jibri.statsd.JibriStatsDClient.incrementCounter() Incrementing statsd counter: stop:recording
2020-03-26 15:18:29.864 INFO: [287] org.jitsi.jibri.JibriManager.stopService() Stopping the current service
2020-03-26 15:18:29.864 INFO: [287] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Stopping capturer
2020-03-26 15:18:29.864 INFO: [287] org.jitsi.jibri.util.JibriSubprocess.ffmpeg.stop() Stopping ffmpeg process
2020-03-26 15:18:39.732 INFO: [270] org.jitsi.jibri.selenium.JibriSelenium.run() Jibri client receive bitrates: {audio={download=37, upload=0}, download=972, upload=0, video={download=935, upload=0}}, all clients muted? false
2020-03-26 15:18:39.867 SEVERE: [287] org.jitsi.jibri.util.JibriSubprocess.ffmpeg.stop() Error trying to gracefully stop ffmpeg, destroying forcibly
2020-03-26 15:18:39.877 INFO: [287] org.jitsi.jibri.util.JibriSubprocess.ffmpeg.stop() ffmpeg exited with value 137
2020-03-26 15:18:39.877 INFO: [287] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Quitting selenium
2020-03-26 15:18:39.897 INFO: [287] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Participants in this recording: []
2020-03-26 15:18:39.920 INFO: [287] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 17 log entries for type browser
2020-03-26 15:18:39.984 INFO: [287] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 729 log entries for type driver
2020-03-26 15:18:40.148 INFO: [287] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 0 log entries for type client
2020-03-26 15:18:40.149 INFO: [287] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Leaving web call
2020-03-26 15:18:40.454 INFO: [287] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Quitting chrome driver
2020-03-26 15:18:40.593 INFO: [287] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Chrome driver quit
2020-03-26 15:18:40.593 INFO: [287] org.jitsi.jibri.service.impl.FileRecordingJibriService.stop() Finalizing the recording
2020-03-26 15:18:50.596 SEVERE: [287] org.jitsi.jibri.service.impl.FileRecordingJibriService.finalize() Timed out waiting for process logger task to complete
2020-03-26 15:18:50.597 INFO: [287] org.jitsi.jibri.service.impl.FileRecordingJibriService.finalize() Recording finalize script finished with exit value 0
2020-03-26 15:18:50.597 INFO: [287] org.jitsi.jibri.status.JibriStatusManager.log() Busy status has changed: BUSY -> IDLE
2020-03-26 15:18:50.597 INFO: [287] 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
2020-03-26 15:18:50.598 INFO: [287] org.jitsi.xmpp.mucclient.MucClientManager.log() Setting a presence extension: org.jitsi.xmpp.extensions.jibri.JibriStatusPacketExt@644f5283

It appears Jibri has trouble stopping the ffmpeg process gracefully.
System running Jibri is Ubuntu 18.04.4, ffmpeg is current from repositories: version 3.4.6-0ubuntu0.18.04.1

Any ideas?

Hi, I had the same problem on Debian 10.

I think that this has something to do with the function that gets the pid in src/main/kotlin/org/jitsi/jibri/util/extensions/Process.kt, along with a jdk version >8.

Changing runtime.exec("kill -s SIGINT ${process.pid}") to runtime.exec("kill -s SIGINT ${process.pid()}") in src/main/kotlin/org/jitsi/jibri/util/ProcessWrapper.kt (using the pid() method of the ProcessHandle classinstead) worked for me.

1 Like

I have the same problem on UBUNTU 19.10 jibri server.
Do you have a “recompiled” version with this fix?
Thank you
Below my FFMPEG log
2020-04-07 20:11:45.119 INFO: [56] ffmpeg.call() ffmpeg version 4.1.4-1build2 Copyright © 2000-
2020-04-07 20:11:45.119 INFO: [56] ffmpeg.call() built with gcc 9 (Ubuntu 9.2.1-4ubuntu1)
2020-04-07 20:11:45.651 INFO: [56] ffmpeg.call() configuration: --prefix=/usr --extra-version=1build2 --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-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
2020-04-07 20:11:45.653 INFO: [56] ffmpeg.call() libavutil 56. 22.100 / 56. 22.100
2020-04-07 20:11:45.654 INFO: [56] ffmpeg.call() libavcodec 58. 35.100 / 58. 35.100
2020-04-07 20:11:45.654 INFO: [56] ffmpeg.call() libavformat 58. 20.100 / 58. 20.100
2020-04-07 20:11:45.655 INFO: [56] ffmpeg.call() libavdevice 58. 5.100 / 58. 5.100
2020-04-07 20:11:45.655 INFO: [56] ffmpeg.call() libavfilter 7. 40.101 / 7. 40.101
2020-04-07 20:11:45.656 INFO: [56] ffmpeg.call() libavresample 4. 0. 0 / 4. 0. 0
2020-04-07 20:11:45.657 INFO: [56] ffmpeg.call() libswscale 5. 3.100 / 5. 3.100
2020-04-07 20:11:45.657 INFO: [56] ffmpeg.call() libswresample 3. 3.100 / 3. 3.100
2020-04-07 20:11:45.666 INFO: [56] ffmpeg.call() libpostproc 55. 3.100 / 55. 3.100
2020-04-07 20:11:45.667 INFO: [56] ffmpeg.call() [x11grab @ 0x557dd15ee080] Stream #0: not enough frames to estimate rate; consider increasing probesize
2020-04-07 20:11:45.668 INFO: [56] ffmpeg.call() Input #0, x11grab, from ‘:0.0+0,0’:
2020-04-07 20:11:45.669 INFO: [56] ffmpeg.call() Duration: N/A, start: 1586283105.187467, bitrate: N/A
2020-04-07 20:11:45.669 INFO: [56] ffmpeg.call() Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1280x720, 30 fps, 1000k tbr, 1000k tbn, 1000k tbc
2020-04-07 20:11:45.670 INFO: [56] ffmpeg.call() Guessed Channel Layout for Input Stream #1.0 : stereo
2020-04-07 20:11:46.473 INFO: [56] ffmpeg.call() Input #1, alsa, from ‘plug:cloop’:
2020-04-07 20:11:46.475 INFO: [56] ffmpeg.call() Duration: N/A, start: 1586283105.230910, bitrate: 1536 kb/s
2020-04-07 20:11:46.475 INFO: [56] ffmpeg.call() Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
2020-04-07 20:11:46.476 INFO: [56] ffmpeg.call() Stream mapping:
2020-04-07 20:11:46.477 INFO: [56] ffmpeg.call() Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
2020-04-07 20:11:46.478 INFO: [56] ffmpeg.call() Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
2020-04-07 20:11:46.479 INFO: [56] ffmpeg.call() Press [q] to stop, [?] for help
2020-04-07 20:11:46.480 INFO: [56] ffmpeg.call() [libx264 @ 0x557dd1623900] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
2020-04-07 20:11:46.481 INFO: [56] ffmpeg.call() [libx264 @ 0x557dd1623900] profile Main, level 3.1
2020-04-07 20:11:47.482 INFO: [56] ffmpeg.call() [libx264 @ 0x557dd1623900] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - 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=2 lookahead_threads=2 sliced_threads=1 slices=2 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
2020-04-07 20:11:47.490 INFO: [56] ffmpeg.call() Output #0, mp4, to ‘/srv/recordings/yjacgqpxpjsmumzz/iphone_2020-04-07-20-11-33.mp4’:
2020-04-07 20:11:47.491 INFO: [56] ffmpeg.call() Metadata:
2020-04-07 20:11:47.491 INFO: [56] ffmpeg.call() encoder : Lavf58.20.100
2020-04-07 20:11:47.492 INFO: [56] ffmpeg.call() Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 1280x720, q=-1–1, 30 fps, 15360 tbn, 30 tbc
2020-04-07 20:11:47.492 INFO: [56] ffmpeg.call() Metadata:
2020-04-07 20:11:47.502 INFO: [56] ffmpeg.call() encoder : Lavc58.35.100 libx264
2020-04-07 20:11:47.504 INFO: [56] ffmpeg.call() Side data:
2020-04-07 20:11:47.508 INFO: [56] ffmpeg.call() cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
2020-04-07 20:11:47.511 INFO: [56] ffmpeg.call() Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
2020-04-07 20:11:47.512 INFO: [56] ffmpeg.call() Metadata:
2020-04-07 20:11:47.513 INFO: [56] ffmpeg.call() encoder : Lavc58.35.100 aac
2020-04-07 20:11:47.513 INFO: [56] ffmpeg.call() frame= 1 fps=0.8 q=22.0 size= 0kB time=00:00:00.00 bitrate=5907.7kbits/s speed=4.93e-05x
2020-04-07 20:11:48.514 INFO: [56] ffmpeg.call() frame= 3 fps=1.5 q=22.0 size= 0kB time=00:00:00.06 bitrate= 5.5kbits/s speed=0.0337x
2020-04-07 20:11:48.516 INFO: [56] ffmpeg.call() frame= 10 fps=3.8 q=19.0 size= 0kB time=00:00:00.30 bitrate= 1.3kbits/s speed=0.115x
2020-04-07 20:11:49.517 INFO: [56] ffmpeg.call() frame= 14 fps=4.5 q=20.0 size= 0kB time=00:00:00.44 bitrate= 0.9kbits/s speed=0.142x
2020-04-07 20:11:49.519 INFO: [56] ffmpeg.call() frame= 19 fps=5.2 q=20.0 size= 0kB time=00:00:00.60 bitrate= 0.6kbits/s speed=0.165x
2020-04-07 20:11:50.521 INFO: [56] ffmpeg.call() frame= 28 fps=6.7 q=17.0 size= 256kB time=00:00:00.97 bitrate=2159.9kbits/s speed=0.232x
2020-04-07 20:11:50.522 INFO: [56] ffmpeg.call() frame= 39 fps=8.3 q=18.0 size= 256kB time=00:00:01.32 bitrate=1577.8kbits/s speed=0.281x
2020-04-07 20:11:51.523 INFO: [56] ffmpeg.call() [aac @ 0x557dd1624d40] Queue input is backward in time
2020-04-07 20:11:51.524 INFO: [56] ffmpeg.call() frame= 50 fps=9.6 q=22.0 size= 512kB time=00:00:01.65 bitrate=2527.1kbits/s speed=0.317x
2020-04-07 20:11:51.525 INFO: [56] ffmpeg.call() [mp4 @ 0x557dd1622400] Non-monotonous DTS in output stream 0:1; previous: 73200, current: 72760; changing to 73201. This may result in incorrect timestamps in the output file.
2020-04-07 20:11:51.535 INFO: [56] ffmpeg.call() [mp4 @ 0x557dd1622400] Non-monotonous DTS in output stream 0:1; previous: 73201, current: 72879; changing to 73202. This may result in incorrect timestamps in the output file.
2020-04-07 20:11:51.537 INFO: [56] ffmpeg.call() frame= 64 fps= 11 q=21.0 size= 768kB time=00:00:02.17 bitrate=2894.7kbits/s speed=0.378x
2020-04-07 20:11:51.735 INFO: [56] ffmpeg.call() [aac @ 0x557dd1624d40] Queue input is backward in time
2020-04-07 20:11:51.736 INFO: [56] ffmpeg.call() [mp4 @ 0x557dd1622400] Non-monotonous DTS in output stream 0:1; previous: 97903, current: 94319; changing to 97904. This may result in incorrect timestamps in the output file.
2020-04-07 20:11:51.736 INFO: [56] ffmpeg.call() [mp4 @ 0x557dd1622400] Non-monotonous DTS in output stream 0:1; previous: 97904, current: 95343; changing to 97905. This may result in incorrect timestamps in the output file.
2020-04-07 20:11:51.740 INFO: [56] ffmpeg.call() [mp4 @ 0x557dd1622400] Non-monotonous DTS in output stream 0:1; previous: 97905, current: 96367; changing to 97906. This may result in incorrect timestamps in the output file.
2020-04-07 20:11:51.742 INFO: [56] ffmpeg.call() [mp4 @ 0x557dd1622400] Non-monotonous DTS in output stream 0:1; previous: 97906, current: 97391; changing to 97907. This may result in incorrect timestamps in the output file.
2020-04-07 20:11:51.744 INFO: [56] ffmpeg.call() [aac @ 0x557dd1624d40] Queue input is backward in time
2020-04-07 20:11:51.744 INFO: [56] ffmpeg.call() [mp4 @ 0x557dd1622400] Non-monotonous DTS in output stream 0:1; previous: 99439, current: 95642; changing to 99440. This may result in incorrect timestamps in the output file.
2020-04-07 20:11:52.750 INFO: [56] ffmpeg.call() [mp4 @ 0x557dd1622400] Non-monotonous DTS in output stream 0:1; previous: 99440, current: 96172; changing to 99441. This may result in incorrect timestamps in the output file.
2020-04-07 20:11:52.762 INFO: [56] ffmpeg.call() [mp4 @ 0x557dd1622400] Non-monotonous DTS in output stream 0:1; previous: 99441, current: 97221; changing to 99442. This may result in incorrect timestamps in the output file.
2020-04-07 20:11:52.763 INFO: [56] ffmpeg.call() [mp4 @ 0x557dd1622400] Non-monotonous DTS in output stream 0:1; previous: 99442, current: 98304; changing to 99443. This may result in incorrect timestamps in the output file.
2020-04-07 20:11:52.766 INFO: [56] ffmpeg.call() frame= 71 fps= 11 q=27.0 size= 1024kB time=00:00:02.37 bitrate=3539.5kbits/s speed=0.376x
2020-04-07 20:11:52.767 INFO: [56] ffmpeg.call() frame= 78 fps= 11 q=28.0 size= 1024kB time=00:00:02.57 bitrate=3252.9kbits/s speed=0.371x
2020-04-07 20:11:53.768 INFO: [56] ffmpeg.call() frame= 88 fps= 12 q=16.0 size= 1280kB time=00:00:02.90 bitrate=3610.2kbits/s speed=0.388x
2020-04-07 20:11:54.769 INFO: [56] ffmpeg.call() frame= 101 fps= 13 q=16.0 size= 1536kB time=00:00:03.33 bitrate=3774.9kbits/s speed=0.415x
2020-04-07 20:11:54.770 INFO: [56] ffmpeg.call() frame= 112 fps= 13 q=17.0 size= 1536kB time=00:00:03.70 bitrate=3400.8kbits/s speed=0.431x
2020-04-07 20:11:55.771 INFO: [56] ffmpeg.call() frame= 119 fps= 13 q=18.0 size= 1792kB time=00:00:03.93 bitrate=3732.3kbits/s speed=0.431x
2020-04-07 20:11:55.775 INFO: [56] ffmpeg.call() frame= 134 fps= 14 q=28.0 size= 1792kB time=00:00:04.43 bitrate=3308.6kbits/s speed=0.458x
2020-04-07 20:11:56.776 INFO: [56] ffmpeg.call() frame= 146 fps= 14 q=23.0 size= 2048kB time=00:00:04.85 bitrate=3455.9kbits/s speed=0.476x
2020-04-07 20:11:56.777 INFO: [56] ffmpeg.call() frame= 156 fps= 15 q=20.0 size= 2304kB time=00:00:05.16 bitrate=3653.1kbits/s speed=0.483x
2020-04-07 20:11:57.780 INFO: [56] ffmpeg.call() frame= 168 fps= 15 q=16.0 size= 2560kB time=00:00:05.57 bitrate=3762.9kbits/s speed=0.495x
2020-04-07 20:11:57.781 INFO: [56] ffmpeg.call() frame= 179 fps= 15 q=19.0 size= 2560kB time=00:00:05.94 bitrate=3526.2kbits/s speed=0.506x
2020-04-07 20:11:58.783 INFO: [56] ffmpeg.call() frame= 192 fps= 16 q=17.0 size= 2816kB time=00:00:06.36 bitrate=3623.4kbits/s speed=0.518x
2020-04-07 20:11:58.783 INFO: [56] ffmpeg.call() frame= 201 fps= 16 q=18.0 size= 3072kB time=00:00:06.66 bitrate=3774.9kbits/s speed=0.521x
2020-04-07 20:11:59.786 INFO: [56] ffmpeg.call() frame= 212 fps= 16 q=21.0 size= 3072kB time=00:00:07.03 bitrate=3575.4kbits/s speed=0.528x
2020-04-07 20:11:59.786 INFO: [56] ffmpeg.call() frame= 227 fps= 16 q=17.0 size= 3328kB time=00:00:07.53 bitrate=3619.0kbits/s speed=0.543x
2020-04-07 20:12:00.788 INFO: [56] ffmpeg.call() frame= 245 fps= 17 q=22.0 size= 3584kB time=00:00:08.13 bitrate=3609.9kbits/s speed=0.565x
2020-04-07 20:12:00.789 INFO: [56] ffmpeg.call() frame= 257 fps= 17 q=19.0 size= 3840kB time=00:00:08.53 bitrate=3686.4kbits/s speed=0.573x
2020-04-07 20:12:01.791 INFO: [56] ffmpeg.call() frame= 268 fps= 17 q=17.0 size= 4096kB time=00:00:08.91 bitrate=3762.5kbits/s speed=0.578x
2020-04-07 20:12:01.792 INFO: [56] ffmpeg.call() frame= 281 fps= 18 q=16.0 size= 4096kB time=00:00:09.33 bitrate=3594.4kbits/s speed=0.586x
2020-04-07 20:12:02.793 INFO: [56] ffmpeg.call() frame= 292 fps= 18 q=27.0 size= 4352kB time=00:00:09.70 bitrate=3673.0kbits/s speed=0.591x
2020-04-07 20:12:02.794 INFO: [56] ffmpeg.call() frame= 308 fps= 18 q=16.0 size= 4608kB time=00:00:10.24 bitrate=3686.1kbits/s speed=0.604x
2020-04-07 20:12:03.795 INFO: [56] ffmpeg.call() frame= 321 fps= 18 q=27.0 size= 4864kB time=00:00:10.66 bitrate=3735.6kbits/s speed=0.61x
2020-04-07 20:12:03.795 INFO: [56] ffmpeg.call() frame= 333 fps= 19 q=19.0 size= 5120kB time=00:00:11.07 bitrate=3786.3kbits/s speed=0.616x
2020-04-07 20:12:04.797 INFO: [56] ffmpeg.call() frame= 346 fps= 19 q=24.0 size= 5120kB time=00:00:11.50 bitrate=3647.2kbits/s speed=0.62x
2020-04-07 20:12:04.798 INFO: [56] ffmpeg.call() frame= 358 fps= 19 q=18.0 size= 5376kB time=00:00:11.90 bitrate=3700.9kbits/s speed=0.625x
2020-04-07 20:12:05.799 INFO: [56] ffmpeg.call() frame= 372 fps= 19 q=16.0 size= 5632kB time=00:00:12.37 bitrate=3727.0kbits/s speed=0.632x
2020-04-07 20:12:06.804 INFO: [56] ffmpeg.call() frame= 387 fps= 19 q=16.0 size= 5888kB time=00:00:12.86 bitrate=3748.8kbits/s speed=0.639x
2020-04-07 20:12:06.805 INFO: [56] ffmpeg.call() frame= 399 fps= 19 q=29.0 size= 6144kB time=00:00:13.26 bitrate=3793.9kbits/s speed=0.643x
2020-04-07 20:12:07.806 INFO: [56] ffmpeg.call() frame= 412 fps= 19 q=28.0 size= 6400kB time=00:00:13.70 bitrate=3826.5kbits/s speed=0.648x
2020-04-07 20:12:07.806 INFO: [56] ffmpeg.call() frame= 423 fps= 20 q=18.0 size= 6400kB time=00:00:14.07 bitrate=3725.5kbits/s speed=0.65x
2020-04-07 20:12:08.807 INFO: [56] ffmpeg.call() frame= 434 fps= 20 q=28.0 size= 6656kB time=00:00:14.44 bitrate=3775.1kbits/s speed=0.652x
2020-04-07 20:12:08.818 INFO: [56] ffmpeg.call() frame= 447 fps= 20 q=20.0 size= 6912kB time=00:00:14.86 bitrate=3808.7kbits/s speed=0.656x
2020-04-07 20:12:09.820 INFO: [56] ffmpeg.call() frame= 458 fps= 20 q=16.0 size= 7168kB time=00:00:15.23 bitrate=3854.6kbits/s speed=0.657x
2020-04-07 20:12:09.823 INFO: [56] ffmpeg.call() frame= 472 fps= 20 q=24.0 size= 7424kB time=00:00:15.70 bitrate=3873.7kbits/s speed=0.662x
2020-04-07 20:12:10.824 INFO: [56] ffmpeg.call() frame= 485 fps= 20 q=25.0 size= 7680kB time=00:00:16.13 bitrate=3898.3kbits/s speed=0.666x
2020-04-07 20:12:10.825 INFO: [56] ffmpeg.call() frame= 499 fps= 20 q=28.0 size= 7680kB time=00:00:16.60 bitrate=3789.2kbits/s speed=0.671x
2020-04-07 20:12:11.827 INFO: [56] ffmpeg.call() frame= 512 fps= 20 q=21.0 size= 7936kB time=00:00:17.04 bitrate=3814.0kbits/s speed=0.674x
2020-04-07 20:12:11.827 INFO: [56] ffmpeg.call() frame= 523 fps= 20 q=24.0 size= 8192kB time=00:00:17.40 bitrate=3856.8kbits/s speed=0.675x
2020-04-07 20:12:12.828 INFO: [56] ffmpeg.call() frame= 536 fps= 20 q=18.0 size= 8448kB time=00:00:17.83 bitrate=3880.5kbits/s speed=0.678x
2020-04-07 20:12:12.829 INFO: [56] ffmpeg.call() frame= 548 fps= 20 q=27.0 size= 8704kB time=00:00:18.23 bitrate=3910.6kbits/s speed=0.679x
2020-04-07 20:12:13.829 INFO: [56] ffmpeg.call() frame= 560 fps= 20 q=23.0 size= 8704kB time=00:00:18.63 bitrate=3826.7kbits/s speed=0.681x
2020-04-07 20:12:13.830 INFO: [56] ffmpeg.call() frame= 570 fps= 20 q=24.0 size= 8960kB time=00:00:18.97 bitrate=3868.7kbits/s speed=0.68x
2020-04-07 20:12:14.830 INFO: [56] ffmpeg.call() frame= 585 fps= 21 q=18.0 size= 9216kB time=00:00:19.46 bitrate=3878.3kbits/s speed=0.685x
2020-04-07 20:12:14.831 INFO: [56] ffmpeg.call() frame= 601 fps= 21 q=25.0 size= 9216kB time=00:00:20.00 bitrate=3774.9kbits/s speed=0.691x
2020-04-07 20:12:15.228 INFO: [56] ffmpeg.call() frame= 615 fps= 21 q=26.0 size= 9472kB time=00:00:20.46 bitrate=3791.3kbits/s speed=0.695x

I’m sorry I can’t give you my customized version of jibri, as it’s heavyly modified. If you still need it, you can build jibri with the following instructions :

  • Install the prerequisites:
    sudo apt install git maven openjdk-8-jdk
    ( openjdk-8-jdk specifically is not necessarily required, any java 8 jdk will probably work)
  • Clone the repo:
    git clone https://github.com/jibri/jibri.git
  • Create the jar:
    cd jibri
    mvn package

the build will stand in target/jibri-8.0-SNAPSHOT-jar-with-dependencies.jar

Anyway you should probably use openjdk-8, as it’s the recommended version for jitsi-meet and jibri. This will solve your problem whith ffmpeg, if it’s related to the process.pid method. A higher version of java will probably cause more trouble with jistsi.

You can install java 8 on ubuntu 19.10 with

sudo apt install openjdk-8-jre
sudo update-alternatives --config java

1 Like

To install java 8 on debian 10 you have to take it from stretch, i.e. add in /etc/apt/sources.list.d a source like this:

deb http://ftp.nl.debian.org/debian stretch main

then, after an “apt update”

apt install openjdk-8-jre-headless
apt remove default-jre-headless
apt remove openjdk-11-jre-headless

Thanks, this fixes the issue I had in Ubuntu 20.04 as well. Recordings work perfectly now. :slight_smile: