Record ok but failed with Live Streaming. Input/Output error

Hi there,
I got recording working thanks to help from this forum. But the once working live stream fails soon after and I coudn’t figure why its not working. Hope someone could help before I have to resort to reinstall the whole system yet another time.

This is the jibri log, couldn’t figure why its giving the input/output error, any advice give a
direction would be appreciated.

Thanks
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

Probably installed ffmpeg has no support for rtmps push

I see, so the default ffmpeg on jitis install guide does not support rtmps?
Is there a recommended version of it that supports it?

Thank you!

the odd thing though, direct streaming to youtube doesn’t work either. That is support to work with standard jibri install right?

ffmpeg comes from distro’s repo. it’s not directly related with jitsi. It’s related with how your distro packages it

check ffmpeg log on jibri server

thanks, will check ffmpeg log. I just check jibri log while testing, tried rtmp only without encryption. Still fails with youtube streaming

found this in ffmpeg log
2021-12-24 22:04:36.416 INFO: [85144] ffmpeg.log() [tcp @ 0x557726a31f80] Connection to tcp://a.rtmp.youtube.com:1935 failed: Connection timed out
2021-12-24 22:04:36.416 INFO: [85144] ffmpeg.log() [rtmp @ 0x557726a30800] Cannot open connection tcp://a.rtmp.youtube.com:1935

Seems like a network issue, let me check if 1935 is opened. But I do not remember seeing anywhere asking to open this port. Is this like the default rtmp port?

Thanks for pointing to ffmpeg log, yes its indeed a firewall issue, that i didn’t allow outgoing 1935.
All good now, appreciated.

Merry Christmas!

1 Like