Jibri prepare recording but fail to start. Time out waiting for call page to load

Great, thank you just added!

Good thing recording now works quite reliably, although had one occasion that it stops prematurely, still trying to figure out why but haven’t able to reproduce yet.

I had live streaming working too when Jibra recording was working at first, but then now I am in the same situation that some ppl encounter, that recording works but streaming doesn’t.

Multiple test has consistent result.

Preparing live stream
Live stream has stopped

Error: org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.log() Ffmpeg quit abruptly. Last output line: rtmps://live-mrs.twitch.tv/app/mystreamcodebandwidthtest=true: Input/output error

The odd thing is this used to work. I had 3 successful attempts for streaming then it all stopped working the next morning.

Only thing change was adding “emrah” 's suggestion of adding echo for snd-aloop
But i don’t think that is the issue.

Tried changing to 720p still no luck.

Recording works for 1080p and 720p so don’t think its a resource issue as well.

Any thoughts would be great help.

Thank you

here’s jibri log.

2021-11-24 08:38:04.890 INFO: [100] org.jitsi.jibri.api.xmpp.XmppApi.log() Received start request, starting service
2021-11-24 08:38:04.891 INFO: [100] org.jitsi.jibri.api.xmpp.XmppApi.log() Parsed call url info: CallUrlInfo(baseUrl=https://mydomain.com, callName=test, urlParams=)
2021-11-24 08:38:04.891 INFO: [100] org.jitsi.jibri.api.xmpp.XmppApi.log() Using RTMP URL rtmps://live-mrs.twitch.tv/app/mystreamcodebandwidthtest=true and viewing URL null
2021-11-24 08:38:04.891 INFO: [100] org.jitsi.jibri.JibriManager.log() Starting a stream with params: ServiceParams(usageTimeoutMinutes=0, appData=null) StreamingParams(callParams=CallParams(callUrlInfo=CallUrlInfo(baseUrl=https://mydomain.com, callName=test, urlParams=), email=’’, passcode=null, callStatsUsernameOverride=, displayName=), sessionId=icqpobslessizqyi, callLoginParams=XmppCredentials(domain=recorder.mydomain.com, port=null, username=recorder, password=*****), rtmpUrl=rtmps://live-mrs.twitch.tv/app/mystreamcodebandwidthtest=true, viewingUrl=null)
2021-11-24 08:38:04.892 FINE: [100] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.log() Detected os as OS: LINUX
2021-11-24 08:38:05.461 INFO: [100] org.openqa.selenium.remote.ProtocolHandshake.createSession() Detected dialect: OSS
2021-11-24 08:38:05.469 FINE: [100] org.jitsi.jibri.statsd.JibriStatsDClient.log() Incrementing statsd counter: start:live_stream
2021-11-24 08:38:05.469 INFO: [100] org.jitsi.jibri.status.JibriStatusManager.log() Busy status has changed: IDLE → BUSY
2021-11-24 08:38:05.470 FINE: [100] org.jitsi.jibri.webhooks.v1.WebhookClient.log() Updating 0 subscribers of status
2021-11-24 08:38:05.470 INFO: [100] org.jitsi.jibri.api.xmpp.XmppApi.log() Jibri reports its status is now JibriStatus(busyStatus=BUSY, health=OverallHealth(healthStatus=HEALTHY, details={})), publishing presence to connections
2021-11-24 08:38:05.470 INFO: [100] org.jitsi.jibri.api.xmpp.XmppApi.log() Sending ‘pending’ response to start IQ
2021-11-24 08:38:05.471 INFO: [109] org.jitsi.jibri.selenium.pageobjects.HomePage.log() Visiting url https://mydomain.com
2021-11-24 08:38:06.698 INFO: [109] org.jitsi.jibri.selenium.pageobjects.HomePage.log() Waited 1.23s for driver to load page
2021-11-24 08:38:06.773 INFO: [109] org.jitsi.jibri.selenium.pageobjects.CallPage.log() Visiting url https://mydomain.com/test#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-11-24 08:38:07.664 INFO: [109] org.jitsi.jibri.selenium.pageobjects.CallPage.log() Waited 891ms for driver to load page
2021-11-24 08:38:07.728 FINE: [109] org.jitsi.jibri.selenium.pageobjects.CallPage.log() Not joined yet: Cannot read properties of undefined (reading ‘isJoined’)
2021-11-24 08:38:08.237 FINE: [109] org.jitsi.jibri.selenium.pageobjects.CallPage.log() Not joined yet: Cannot read properties of undefined (reading ‘isJoined’)
2021-11-24 08:38:08.965 INFO: [109] org.jitsi.jibri.selenium.pageobjects.CallPage.log() Waited 1.30s to join the conference
2021-11-24 08:38:08.965 INFO: [109] org.jitsi.jibri.selenium.status_checks.EmptyCallStatusCheck.log() Starting empty call check with a timeout of PT30S
2021-11-24 08:38:09.067 INFO: [109] org.jitsi.jibri.selenium.JibriSelenium.log() Transitioning from state Starting up to Running
2021-11-24 08:38:09.068 INFO: [109] org.jitsi.jibri.service.impl.StreamingJibriService.log() Selenium joined the call, starting capturer
2021-11-24 08:38:09.173 INFO: [109] org.jitsi.jibri.util.JibriSubprocess.log() Starting ffmpeg with command ffmpeg -y -v info -f x11grab -draw_mouse 0 -r 30 -s 1920x1080 -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 -maxrate 2976k -bufsize 5952k -pix_fmt yuv420p -r 30 -crf 25 -g 60 -tune zerolatency -f flv rtmps://live-mrs.twitch.tv/app/mystreamcodebandwidthtest=true ([ffmpeg, -y, -v, info, -f, x11grab, -draw_mouse, 0, -r, 30, -s, 1920x1080, -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, -maxrate, 2976k, -bufsize, 5952k, -pix_fmt, yuv420p, -r, 30, -crf, 25, -g, 60, -tune, zerolatency, -f, flv, rtmps://live-mrs.twitch.tv/app/mystreamcodebandwidthtest=true])
2021-11-24 08:38:14.175 FINE: [17] org.jitsi.jibri.util.ProcessStatePublisher.log() Process ffmpeg hasn’t written in 2 seconds, publishing periodic update
2021-11-24 08:38:16.175 FINE: [17] org.jitsi.jibri.util.ProcessStatePublisher.log() Process ffmpeg hasn’t written in 2 seconds, publishing periodic update
2021-11-24 08:38:18.175 FINE: [17] org.jitsi.jibri.util.ProcessStatePublisher.log() Process ffmpeg hasn’t written in 2 seconds, publishing periodic update
2021-11-24 08:38:20.175 FINE: [17] org.jitsi.jibri.util.ProcessStatePublisher.log() Process ffmpeg hasn’t written in 2 seconds, publishing periodic update
2021-11-24 08:38:22.175 FINE: [17] org.jitsi.jibri.util.ProcessStatePublisher.log() Process ffmpeg hasn’t written in 2 seconds, publishing periodic update
2021-11-24 08:38:24.037 INFO: [17] org.jitsi.jibri.selenium.status_checks.MediaReceivedStatusCheck.log() Jibri client receive bitrates: {audio={download=0, upload=0}, download=0, upload=0, video={download=0, upload=0}}, num participants: 1, numMutedParticipants: 0, numJigasis: 0, all clients muted? false
2021-11-24 08:38:24.175 FINE: [17] org.jitsi.jibri.util.ProcessStatePublisher.log() Process ffmpeg hasn’t written in 2 seconds, publishing periodic update
2021-11-24 08:38:26.175 FINE: [17] org.jitsi.jibri.util.ProcessStatePublisher.log() Process ffmpeg hasn’t written in 2 seconds, publishing periodic update
2021-11-24 08:38:28.175 FINE: [17] org.jitsi.jibri.util.ProcessStatePublisher.log() Process ffmpeg hasn’t written in 2 seconds, publishing periodic update
2021-11-24 08:38:30.175 FINE: [17] org.jitsi.jibri.util.ProcessStatePublisher.log() Process ffmpeg hasn’t written in 2 seconds, publishing periodic update
2021-11-24 08:38:32.175 FINE: [17] org.jitsi.jibri.util.ProcessStatePublisher.log() Process ffmpeg hasn’t written in 2 seconds, publishing periodic update
2021-11-24 08:38:34.175 FINE: [17] org.jitsi.jibri.util.ProcessStatePublisher.log() Process ffmpeg hasn’t written in 2 seconds, publishing periodic update
2021-11-24 08:38:36.175 FINE: [17] org.jitsi.jibri.util.ProcessStatePublisher.log() Process ffmpeg hasn’t written in 2 seconds, publishing periodic update
2021-11-24 08:38:39.025 INFO: [17] org.jitsi.jibri.selenium.status_checks.MediaReceivedStatusCheck.log() Jibri client receive bitrates: {audio={download=32, upload=0}, download=1058, upload=0, video={download=1026, upload=0}}, num participants: 1, numMutedParticipants: 0, numJigasis: 0, all clients muted? false
2021-11-24 08:38:40.175 FINE: [17] org.jitsi.jibri.util.ProcessStatePublisher.log() Process ffmpeg hasn’t written in 2 seconds, publishing periodic update
2021-11-24 08:38:40.176 INFO: [113] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.log() Ffmpeg quit abruptly. Last output line: rtmps://live-mrs.twitch.tv/app/mystreamcodebandwidthtest=true: Input/output error
2021-11-24 08:38:40.176 INFO: [113] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.log() Ffmpeg capturer transitioning from state Starting up to Error: QuitUnexpectedly SESSION rtmps://live-mrs.twitch.tv/app/mystreamcodebandwidthtest=true: Input/output error
2021-11-24 08:38:40.177 INFO: [113] org.jitsi.jibri.service.impl.StreamingJibriService.log() Streaming service transitioning from state Starting up to Error: QuitUnexpectedly SESSION rtmps://live-mrs.twitch.tv/app/mystreamcodebandwidthtest=true: Input/output error
2021-11-24 08:38:40.177 INFO: [113] org.jitsi.jibri.api.xmpp.XmppApi.log() Current service had an error Error: QuitUnexpectedly SESSION rtmps://live-mrs.twitch.tv/app/mystreamcodebandwidthtest=true: Input/output error, sending error iq
2021-11-24 08:38:40.178 FINE: [113] org.jitsi.jibri.statsd.JibriStatsDClient.log() Incrementing statsd counter: stop:live_stream

Strange, i thought this option works but seems like its not working not after 2-3 restart attempts, each time i need ot manually add the modprobe to get snd-aloop working.

I m on a ubuntu machine maybe need to edit the options slightly differently?