Jibri restarts recording after 30s when only screensharing and all participants muted

We came across strange behaviour: when all participants (3+, but same happens for single participant) have their camera and microphone muted, and one of the participants is screensharing, when there is a recording started, that recording get restarted for NoMediaReceived error, when there is no change in screenshared source for 30s.

For example, users were recording a presentation and have a short brake, so the screen shared slides were still present in conference, but after 30s of muted time, the recording restarted. The videos have the presentation recorded for all the time till the recording restarted. Next recording was 30secs with presentation and then again restart etc. until someone stopped recording.

There was no problem if they stopped screensharing - the recording continued, so when they started screensharing again after 10minutes, this was all recorded in one recording.

Is this a wanted behaviour? Should we set

no-media-timeout = 30 seconds

to a longer time period in jibri.conf? But this seems odd to me that it is ok if we can record conference where nothing is streamed (until all-muted-timeout reached), but when there is screensharing going on, than we dropp after no-media-timeout (30s) even when obviously there are some media being streamed and recorded.

We are using lib-jitsi-meet @ 28a53553569dbb4adcba39cd997ff121b4d05c62 (2021-09-07) with latest jibri, unified plan for chrome and h264 as prefered codec (don’t know if that is relevant here).

Log snippet:

> 2021-09-08 13:31:47.726 INFO: [15] org.jitsi.jibri.selenium.JibriSelenium.log() Recurring call status checks generated event org.jitsi.jibri.selenium.SeleniumEvent$NoMediaReceived@351e229b
> 2021-09-08 13:31:47.727 INFO: [62] org.jitsi.jibri.selenium.JibriSelenium.log() Transitioning from state Running to Error: NoMediaReceived SESSION No media received
> 2021-09-08 13:31:47.728 INFO: [62] org.jitsi.jibri.service.impl.FileRecordingJibriService.log() File recording service transitioning from state Running to Error: NoMediaReceived SESSION No media received
> 2021-09-08 13:31:47.728 INFO: [62] org.jitsi.jibri.api.xmpp.XmppApi.log() Current service had an error Error: NoMediaReceived SESSION No media received, sending error iq <iq to='jibribrewery@internal.muc.<redacted>/focus' id='sj34Y-45' type='set'><jibri xmlns='http://jitsi.org/protocol/jibri' status='off' failure_reason='error' should_retry='true'/></iq>
> 2021-09-08 13:41:27.684 INFO: [15] org.jitsi.jibri.selenium.JibriSelenium.log() Recurring call status checks generated event org.jitsi.jibri.selenium.SeleniumEvent$NoMediaReceived@351e229b
> 2021-09-08 13:41:27.685 INFO: [111] org.jitsi.jibri.selenium.JibriSelenium.log() Transitioning from state Running to Error: NoMediaReceived SESSION No media received
> 2021-09-08 13:41:27.685 INFO: [111] org.jitsi.jibri.service.impl.FileRecordingJibriService.log() File recording service transitioning from state Running to Error: NoMediaReceived SESSION No media received
> 2021-09-08 13:41:27.686 INFO: [111] org.jitsi.jibri.api.xmpp.XmppApi.log() Current service had an error Error: NoMediaReceived SESSION No media received, sending error iq <iq to='jibribrewery@internal.muc.<redacted>/focus' id='sj34Y-107' type='set'><jibri xmlns='http://jitsi.org/protocol/jibri' status='off' failure_reason='error' should_retry='true'/></iq>

@bbaldino can you help with this? or is there someone who could?

Include full logs please.