Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to create recording file due to endRecording #287

Closed
youngSSS opened this issue Mar 9, 2023 · 4 comments
Closed

Failed to create recording file due to endRecording #287

youngSSS opened this issue Mar 9, 2023 · 4 comments

Comments

@youngSSS
Copy link

youngSSS commented Mar 9, 2023

ISSUE

issue

When I try to record using StartRoomCompositeEgress function in EgressClient, it fails to generate the record file.
I only get the 13 seconds long mp4 file whenever I try. And it has 13 seconds in length but has no sounds.

I checked the egress log.
According to the log, chrome generates endRecording event by endRecording function and egress sends an update message to livekit server.

I want to know how to record the room composite recording file and the reason for the incomplete record result.
I think server settings (redis, egress, livekit) are good but maybe I used egress client code in the wrong way.

The main weird point is that the recording result has always 13 seconds long and does not have any sounds.

please tell me the right and best way to use egress.
(I tried saving it on both S3 and local, but all of them were the same results)

code

here is the code I used to generate the record file

	egressClient := lksdk.NewEgressClient(
		"http://127.0.0.1:7880",
		"devkey",
		"secret",
	)
	
	fileRequest := &livekit.RoomCompositeEgressRequest{
		RoomName:  m.id, // unique id
		Layout:    "speaker-dark",
		AudioOnly: true,
		Output: &livekit.RoomCompositeEgressRequest_File{
			File: &livekit.EncodedFileOutput{
				FileType: livekit.EncodedFileType_MP4,
				Filepath: "livekit-demo-louis/my-room-test.mp4",
				Output: &livekit.EncodedFileOutput_S3{
					S3: &livekit.S3Upload{
						AccessKey: "************",
						Secret:    "***************",
						Region:    "**************",
						Bucket:    "**************",
					},
				},
			},
		},
	}
	
	info, err := egressClient.StartRoomCompositeEgress(context.Background(), fileRequest)
	if err != nil {
		panic(err)
	}
	m.logger.Info(info)

error log

livekit server

2023-03-09T22:11:45.302+0900	INFO	livekit	rtc/room.go:327	new participant joined	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "pID": "PA_kYiof5ykpw9F", "participant": "10", "protocol": 8, "options": {"AutoSubscribe":true}}
2023-03-09T22:11:45.305+0900	INFO	livekit	service/rtcservice.go:258	new client WS connected	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "10", "pID": "PA_kYiof5ykpw9F", "remote": false, "connID": "CO_RzH5bro9YFJw"}
2023-03-09T22:11:45.306+0900	INFO	livekit	rtc/room.go:263	participant state changed	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "state": "JOINED", "participant": "10", "pID": "PA_kYiof5ykpw9F", "oldState": "JOINING"}
2023-03-09T22:11:45.306+0900	INFO	livekit	rtc/participant.go:1105	sending offer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "10", "pID": "PA_kYiof5ykpw9F", "remote": false, "transport": "SUBSCRIBER"}
2023-03-09T22:11:45.321+0900	INFO	livekit	rtc/participant.go:490received answer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "10", "pID": "PA_kYiof5ykpw9F", "remote": false, "transport": "SUBSCRIBER"}
2023-03-09T22:11:45.394+0900	INFO	livekit	rtc/participant.go:1467	pending track added	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "10", "pID": "PA_kYiof5ykpw9F", "remote": false, "trackID": "TR_AMTQHGWZJUrBmV", "track": "sid:\"TR_AMTQHGWZJUrBmV\" source:MICROPHONE", "request": "cid:\"TR_ELsseiik6P5Q\" source:MICROPHONE"}
2023-03-09T22:11:45.405+0900	INFO	livekit	rtc/transport.go:599	selected ICE candidate pair	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "10", "pID": "PA_kYiof5ykpw9F", "remote": false, "transport": "SUBSCRIBER", "pair": "(local) udp4 host 52.78.163.164:54350 <-> (remote) udp4 host 192.168.246.45:59351"}
2023-03-09T22:11:45.550+0900	INFO	livekit	rtc/participant.go:476received offer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "10", "pID": "PA_kYiof5ykpw9F", "remote": false, "transport": "PUBLISHER"}
2023-03-09T22:11:45.553+0900	INFO	livekit	rtc/participant.go:504sending answer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "10", "pID": "PA_kYiof5ykpw9F", "remote": false, "transport": "PUBLISHER"}
2023-03-09T22:11:45.636+0900	INFO	livekit	rtc/room.go:263	participant state changed	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "state": "ACTIVE", "participant": "10", "pID": "PA_kYiof5ykpw9F", "oldState": "JOINED"}
2023-03-09T22:11:45.636+0900	INFO	livekit	rtc/room.go:263	participant state changed	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "state": "ACTIVE", "participant": "10", "pID": "PA_kYiof5ykpw9F", "oldState": "JOINED"}
2023-03-09T22:11:46.725+0900	INFO	livekit	rtc/transport.go:599	selected ICE candidate pair	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "10", "pID": "PA_kYiof5ykpw9F", "remote": false, "transport": "PUBLISHER", "pair": "(local) udp4 host 52.78.163.164:57924 <-> (remote) udp4 host 192.168.219.107:55686"}
2023-03-09T22:11:46.760+0900	INFO	livekit	rtc/participant.go:1127	mediaTrack published	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "10", "pID": "PA_kYiof5ykpw9F", "remote": false, "kind": "audio", "trackID": "TR_AMTQHGWZJUrBmV", "rid": "", "SSRC": 491540883, "mime": "audio/opus"}
2023-03-09T22:11:48.775+0900	INFO	livekit	rtc/room.go:327	new participant joined	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "pID": "PA_RxyMZhvRY38p", "participant": "user1", "protocol": 8, "options": {"AutoSubscribe":true}}
2023-03-09T22:11:48.776+0900	INFO	livekit	service/rtcservice.go:258	new client WS connected	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "remote": false, "connID": "CO_QPfnALjYsmu4"}
2023-03-09T22:11:48.776+0900	INFO	livekit	rtc/subscriptionmanager.go:130	subscribing to track	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "remote": false, "trackID": "TR_AMTQHGWZJUrBmV"}
2023-03-09T22:11:48.777+0900	INFO	livekit	rtc/room.go:263	participant state changed	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "state": "JOINED", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "oldState": "JOINING"}
2023-03-09T22:11:48.779+0900	INFO	livekit	rtc/participant.go:1105	sending offer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "remote": false, "transport": "SUBSCRIBER"}
2023-03-09T22:11:48.782+0900	INFO	livekit	rtc/participant.go:490received answer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "remote": false, "transport": "SUBSCRIBER"}
2023-03-09T22:11:48.851+0900	INFO	livekit	rtc/transport.go:599	selected ICE candidate pair	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "remote": false, "transport": "SUBSCRIBER", "pair": "(local) udp4 host 52.78.163.164:51185 <-> (remote) udp4 host 192.168.219.107:62261"}
2023-03-09T22:11:48.856+0900	INFO	livekit	rtc/room.go:263	participant state changed	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "state": "ACTIVE", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "oldState": "JOINED"}
2023-03-09T22:11:48.908+0900	INFO	livekit	rtc/participant.go:1467	pending track added	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "remote": false, "trackID": "TR_AM3NxCrxEB4QNM", "track": "sid:\"TR_AM3NxCrxEB4QNM\" source:MICROPHONE", "request": "cid:\"2d01fc59-04b7-4cd7-9e00-733e6769c0df\" source:MICROPHONE"}
2023-03-09T22:11:48.934+0900	INFO	livekit	rtc/participant.go:1105	sending offer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "remote": false, "transport": "SUBSCRIBER"}
2023-03-09T22:11:48.944+0900	INFO	livekit	rtc/participant.go:490received answer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "remote": false, "transport": "SUBSCRIBER"}
2023-03-09T22:11:48.945+0900	INFO	livekit	rtc/participant.go:1467	pending track added	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "remote": false, "trackID": "TR_VCSR3yh8wuqpq7", "track": "sid:\"TR_VCSR3yh8wuqpq7\" type:VIDEO width:1280 height:720 source:CAMERA layers:{width:320 height:180 bitrate:120000} layers:{quality:MEDIUM width:640 height:360 bitrate:300000} layers:{quality:HIGH width:1280 height:720 bitrate:1700000}", "request": "cid:\"492ca2b6-a524-40f4-bb18-704761278d65\" type:VIDEO width:1280 height:720 source:CAMERA layers:{width:320 height:180 bitrate:120000} layers:{quality:MEDIUM width:640 height:360 bitrate:300000} layers:{quality:HIGH width:1280 height:720 bitrate:1700000}"}
2023-03-09T22:11:49.054+0900	INFO	livekit	rtc/participant.go:476received offer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "remote": false, "transport": "PUBLISHER"}
2023-03-09T22:11:49.061+0900	INFO	livekit	rtc/participant.go:504sending answer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "remote": false, "transport": "PUBLISHER"}
2023-03-09T22:11:49.072+0900	INFO	livekit	rtc/transport.go:599	selected ICE candidate pair	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "remote": false, "transport": "PUBLISHER", "pair": "(local) udp4 host 52.78.163.164:56743 <-> (remote) udp4 host 192.168.219.107:62994"}
2023-03-09T22:11:49.104+0900	INFO	livekit	rtc/participant.go:1127	mediaTrack published	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "remote": false, "kind": "audio", "trackID": "TR_AM3NxCrxEB4QNM", "rid": "", "SSRC": 1415978864, "mime": "audio/red"}
2023-03-09T22:11:49.104+0900	INFO	livekit	service/egress.go:189using deprecated egress client
2023-03-09T22:11:49.109+0900	INFO	livekit	rtc/subscriptionmanager.go:130	subscribing to track	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "10", "pID": "PA_kYiof5ykpw9F", "remote": false, "trackID": "TR_AM3NxCrxEB4QNM"}
2023-03-09T22:11:49.119+0900	INFO	livekit	service/twirp.go:128	API Egress.StartRoomCompositeEgress	{"service": "Egress", "method": "StartRoomCompositeEgress", "room": "100", "baseUrl": "", "outputType": "*livekit.RoomCompositeEgressRequest_File", "egressID": "EG_K3Bf7xxgnwCU", "duration": "16.995084ms", "status": "200"}
2023-03-09T22:11:49.260+0900	INFO	livekit	rtc/participant.go:1105	sending offer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "10", "pID": "PA_kYiof5ykpw9F", "remote": false, "transport": "SUBSCRIBER"}
2023-03-09T22:11:49.261+0900	INFO	livekit	rtc/participant.go:490received answer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "10", "pID": "PA_kYiof5ykpw9F", "remote": false, "transport": "SUBSCRIBER"}
2023-03-09T22:11:49.793+0900	INFO	livekit	rtc/room.go:327	new participant joined	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "pID": "PA_YtUUDsEBvMB2", "participant": "EG_K3Bf7xxgnwCU", "protocol": 8, "options": {"AutoSubscribe":true}}
2023-03-09T22:11:49.795+0900	INFO	livekit	rtc/room.go:263	participant state changed	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "state": "JOINED", "participant": "EG_K3Bf7xxgnwCU", "pID": "PA_YtUUDsEBvMB2", "oldState": "JOINING"}
2023-03-09T22:11:49.796+0900	INFO	livekit	rtc/subscriptionmanager.go:130	subscribing to track	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "EG_K3Bf7xxgnwCU", "pID": "PA_YtUUDsEBvMB2", "remote": false, "trackID": "TR_AMTQHGWZJUrBmV"}
2023-03-09T22:11:49.796+0900	INFO	livekit	rtc/subscriptionmanager.go:130	subscribing to track	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "EG_K3Bf7xxgnwCU", "pID": "PA_YtUUDsEBvMB2", "remote": false, "trackID": "TR_AM3NxCrxEB4QNM"}
2023-03-09T22:11:49.796+0900	INFO	livekit	service/rtcservice.go:258	new client WS connected	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "EG_K3Bf7xxgnwCU", "pID": "PA_YtUUDsEBvMB2", "remote": false, "connID": "CO_TxHhEP8eYeD3"}
2023-03-09T22:11:49.810+0900	INFO	livekit	rtc/participant.go:1105	sending offer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "EG_K3Bf7xxgnwCU", "pID": "PA_YtUUDsEBvMB2", "remote": false, "transport": "SUBSCRIBER"}
2023-03-09T22:11:49.822+0900	INFO	livekit	rtc/participant.go:490received answer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "EG_K3Bf7xxgnwCU", "pID": "PA_YtUUDsEBvMB2", "remote": false, "transport": "SUBSCRIBER"}
2023-03-09T22:11:49.961+0900	INFO	livekit	rtc/participant.go:1105	sending offer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "EG_K3Bf7xxgnwCU", "pID": "PA_YtUUDsEBvMB2", "remote": false, "transport": "SUBSCRIBER"}
2023-03-09T22:11:49.974+0900	INFO	livekit	rtc/participant.go:490received answer	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "EG_K3Bf7xxgnwCU", "pID": "PA_YtUUDsEBvMB2", "remote": false, "transport": "SUBSCRIBER"}
2023-03-09T22:12:04.826+0900	INFO	livekit	service/rtcservice.go:231	finishing WS connection	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "EG_K3Bf7xxgnwCU", "pID": "PA_YtUUDsEBvMB2", "remote": false, "connID": "CO_TxHhEP8eYeD3"}
2023-03-09T22:12:04.895+0900	INFO	livekit	service/ioinfo.go:91	egress ended	{"egressID": "EG_K3Bf7xxgnwCU"}
2023-03-09T22:12:07.130+0900	INFO	livekit	rtc/transport.go:621	peer connection failed	{"room": "101", "roomID": "RM_3guHNMmLBUpT", "participant": "11", "pID": "PA_AznfSfJfx64v", "remote": false, "transport": "SUBSCRIBER"}
2023-03-09T22:12:07.130+0900	INFO	livekit	rtc/transport.go:579	short ICE connection	{"room": "101", "roomID": "RM_3guHNMmLBUpT", "participant": "11", "pID": "PA_AznfSfJfx64v", "remote": false, "transport": "SUBSCRIBER", "pair": "(local) udp4 host 52.78.163.164:56005 <-> (remote) udp4 host 192.168.219.107:56060", "duration": "46.265835667s"}
2023-03-09T22:12:07.130+0900	INFO	livekit	rtc/transportmanager.go:542	ignoring prefer candidate check by ICE failure because no signal received in the ice failed window	{"room": "101", "roomID": "RM_3guHNMmLBUpT", "participant": "11", "pID": "PA_AznfSfJfx64v", "remote": false, "lastSignalSince": "45.969438792s"}
2023-03-09T22:12:07.130+0900	INFO	livekit	rtc/participant_signal.go:243	closing signal connection	{"room": "101", "roomID": "RM_3guHNMmLBUpT", "participant": "11", "pID": "PA_AznfSfJfx64v", "remote": false}
2023-03-09T22:12:07.130+0900	INFO	livekit	rtc/transport.go:1519ice candidates	{"room": "101", "roomID": "RM_3guHNMmLBUpT", "participant": "11", "pID": "PA_AznfSfJfx64v", "remote": false, "transport": "SUBSCRIBER", "lc": ["udp4 host 52.78.163.164:56005", "tcp4 host 52.78.163.164:7881", "udp4 host 52.78.163.164:57478"], "rc": ["candidate:2642426297 1 udp 2130706431 192.168.219.107 56060 typ host", "candidate:626533530 1 udp 2130706431 192.168.246.45 64336 typ host", "candidate:377329899 1 udp 1694498815 52.78.163.164 53925 typ srflx raddr 0.0.0.0 rport 53925", "candidate:377329899 1 udp 1694498815 52.78.163.164 53405 typ srflx raddr 0.0.0.0 rport 53405"], "lc (filtered)": [], "rc (filtered)": []}
2023-03-09T22:12:08.203+0900	INFO	livekit	rtc/transport.go:621	peer connection failed	{"room": "101", "roomID": "RM_3guHNMmLBUpT", "participant": "11", "pID": "PA_AznfSfJfx64v", "remote": false, "transport": "PUBLISHER"}
2023-03-09T22:12:08.203+0900	INFO	livekit	rtc/transport.go:579	short ICE connection	{"room": "101", "roomID": "RM_3guHNMmLBUpT", "participant": "11", "pID": "PA_AznfSfJfx64v", "remote": false, "transport": "PUBLISHER", "pair": "(local) udp4 host 52.78.163.164:56929 <-> (remote) udp4 host 192.168.219.107:63624", "duration": "46.040950042s"}
2023-03-09T22:12:08.203+0900	INFO	livekit	rtc/transportmanager.go:542	ignoring prefer candidate check by ICE failure because no signal received in the ice failed window	{"room": "101", "roomID": "RM_3guHNMmLBUpT", "participant": "11", "pID": "PA_AznfSfJfx64v", "remote": false, "lastSignalSince": "47.042349375s"}
2023-03-09T22:12:08.203+0900	INFO	livekit	rtc/transport.go:1519ice candidates	{"room": "101", "roomID": "RM_3guHNMmLBUpT", "participant": "11", "pID": "PA_AznfSfJfx64v", "remote": false, "transport": "PUBLISHER", "lc": ["tcp4 host 52.78.163.164:7881", "udp4 host 52.78.163.164:56929", "udp4 host 52.78.163.164:55791"], "rc": ["candidate:2642426297 1 udp 2130706431 192.168.219.107 63624 typ host", "candidate:626533530 1 udp 2130706431 192.168.246.45 59273 typ host", "candidate:377329899 1 udp 1694498815 52.78.163.164 57285 typ srflx raddr 0.0.0.0 rport 57285", "candidate:377329899 1 udp 1694498815 52.78.163.164 56561 typ srflx raddr 0.0.0.0 rport 56561"], "lc (filtered)": [], "rc (filtered)": []}
2023-03-09T22:12:13.679+0900	INFO	livekit	rtc/signalhandler.go:44	client leaving room	{"room": "100", "roomID": "RM_7QvghkF6Ew4V", "participant": "user1", "pID": "PA_RxyMZhvRY38p", "remote": false}

egress

The "endRecording" happens in line 10.

2023-03-09T13:11:49.112Z	INFO	egress	service/service_deprecated.go:115	request accepted	{"nodeID": "NE_NTL43KM8aHZD", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU", "requestID": "RPC_JwZ3nBR3z6Zo", "senderID": "ND_jdQa3TqP"}
2023-03-09T13:11:49.145Z	DEBUG	egress	server/main.go:170	handler launched	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU"}
2023-03-09T13:11:49.145Z	INFO	egress	redis/redis.go:92	connecting to redis	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU", "simple": true, "addr": "192.168.65.2:6379"}
2023-03-09T13:11:49.152Z	DEBUG	egress	source/web.go:137	launching xvfb	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU", "display": ":625854803", "dims": "1920x1080x24"}
2023-03-09T13:11:49.153Z	DEBUG	egress	source/web.go:172	launching chrome	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU", "url": "http://localhost:7980/?layout=speaker-dark&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2Nzg0NTM5MDksImlzcyI6ImRldmtleSIsIm5iZiI6MTY3ODM2NzUwOSwic3ViIjoiRUdfSzNCZjd4eGdud0NVIiwidmlkZW8iOnsiY2FuUHVibGlzaCI6ZmFsc2UsImNhblB1Ymxpc2hEYXRhIjpmYWxzZSwiY2FuU3Vic2NyaWJlIjp0cnVlLCJoaWRkZW4iOnRydWUsInJlY29yZGVyIjp0cnVlLCJyb29tIjoiMTAwIiwicm9vbUpvaW4iOnRydWV9fQ.3uJIIcgjWi7JZgtW9RJiped6X-JBUgeQGRJHF3_U11s&url=ws%3A%2F%2F192.168.65.2%3A7880"}
2023-03-09T13:11:49.782Z	DEBUG	egress	source/web.go:237	chrome log	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU", "executionContextId": 2, "timestamp": 1678367509781, "stackTrace": {"callFrames":[{"columnNumber":436562,"functionName":"startRecording","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"},{"columnNumber":3965,"functionName":"","lineNumber":0,"scriptId":"8","url":"http://localhost:7980/static/js/main.35eb16ed.chunk.js"},{"columnNumber":559447,"functionName":"Xs","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"},{"columnNumber":579850,"functionName":"ku","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"},{"columnNumber":576491,"functionName":"","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"},{"columnNumber":603445,"functionName":"S","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"},{"columnNumber":603979,"functionName":"N","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"},{"columnNumber":608518,"functionName":"","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"},{"columnNumber":608633,"functionName":"l","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"},{"columnNumber":607578,"functionName":"n","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"}]}, "type": "log", "args": [{"type":"string","value":"START_RECORDING"}]}
2023-03-09T13:11:51.238Z	DEBUG	egress	pipeline/watch.go:58	[pipeline] STREAM-START - Pipeline stream is starting	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU", "messageType": "stream-start"}
2023-03-09T13:11:51.243Z	DEBUG	egress	pipeline/watch.go:58	[pipeline] ASYNC-DONE - Async task completed	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU", "messageType": "async-done"}
2023-03-09T13:11:51.243Z	INFO	egress	service/handler_deprecated.go:157	egress updated	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU", "egressID": "EG_K3Bf7xxgnwCU", "request_type": "room_composite", "output_type": "file", "status": "EGRESS_ACTIVE"}
2023-03-09T13:12:04.833Z	DEBUG	egress	source/web.go:237	chrome log	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU", "executionContextId": 2, "timestamp": 1678367524832, "stackTrace": {"callFrames":[{"columnNumber":436627,"functionName":"endRecording","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"},{"columnNumber":160841,"functionName":"Yi.emit","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"},{"columnNumber":354483,"functionName":"value","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"},{"columnNumber":350994,"functionName":"value","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"},{"columnNumber":336331,"functionName":"","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"}]}, "type": "log", "args": [{"type":"string","value":"END_RECORDING"}]}
2023-03-09T13:12:04.833Z	INFO	egress	service/handler_deprecated.go:157	egress updated	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU", "egressID": "EG_K3Bf7xxgnwCU", "request_type": "room_composite", "output_type": "file", "status": "EGRESS_ENDING"}
2023-03-09T13:12:04.835Z	DEBUG	egress	source/web.go:237	chrome warning	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU", "type": "warning", "args": [{"type":"string","value":"skipping incoming track after Room disconnected"}], "executionContextId": 2, "timestamp": 1678367524833, "stackTrace": {"callFrames":[{"columnNumber":349306,"functionName":"value","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"},{"columnNumber":348813,"functionName":"","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"}]}}
2023-03-09T13:12:04.836Z	DEBUG	egress	source/web.go:237	chrome warning	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU", "type": "warning", "args": [{"type":"string","value":"skipping incoming track after Room disconnected"}], "executionContextId": 2, "timestamp": 1678367524833, "stackTrace": {"callFrames":[{"columnNumber":349306,"functionName":"value","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"},{"columnNumber":348813,"functionName":"","lineNumber":1,"scriptId":"7","url":"http://localhost:7980/static/js/2.95630e61.chunk.js"}]}}
2023-03-09T13:12:04.838Z	DEBUG	egress	pipeline/pipeline.go:317	sending EOS to pipeline	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU"}
2023-03-09T13:12:04.849Z	DEBUG	egress	pipeline/watch.go:75	EOS received, stopping pipeline	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU"}
2023-03-09T13:12:04.855Z	DEBUG	egress	pipeline/pipeline.go:444	pipeline stopped	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU"}
2023-03-09T13:12:04.898Z	INFO	egress	service/handler_deprecated.go:151	egress completed	{"nodeID": "NE_NTL43KM8aHZD", "handlerID": "EGH_nytzJC7tkdKM", "clusterID": "", "egressID": "EG_K3Bf7xxgnwCU", "egressID": "EG_K3Bf7xxgnwCU", "request_type": "room_composite", "output_type": "file"}

my conditions

egress

command to run egress server

docker run --rm \
    -e EGRESS_CONFIG_FILE=/out/config.yaml \
    -v ~/Louis/livekit/egress:/out \
    livekit/egress

egress config

log_level: debug
api_key: devkey
api_secret: secret
ws_url: ws://192.168.65.2:7880
insecure: true
redis:
  address: 192.168.65.2:6379

livekit server

command to run livekit server

livekit-server --keys "devkey: secret" --config ~/Louis/livekit/server/livekit.yaml --bind 0.0.0.0

livekit config

rtc:
  tcp_port: 7881
  port_range_start: 50000
  port_range_end: 60000
  # use_external_ip should be set to true for most cloud environments where
  # the host has a public IP address, but is not exposed to the process.
  # LiveKit will attempt to use STUN to discover the true IP, and advertise
  # that IP with its clients
  use_external_ip: true

redis:
  # redis is recommended for production deploys
  address: 127.0.0.1:6379

keys:
  # key value pairs
  # your_api_key: <api_secret>

# when enabled, LiveKit will expose prometheus metrics on :6789/metrics
#prometheus_port: 6789

turn:
  enabled: false
  # domain must match tls certificate
  domain: <turn.myhost.com>
  # defaults to 3478. If not using a load balancer, must be set to 443.
  tls_port: 3478

redis config

  • open /usr/local/etc/redis.conf and comment out the line that says bind 127.0.0.1
  • change protected-mode yes to protected-mode no in the same file

I did upper lines to redis config file.

@youngSSS
Copy link
Author

youngSSS commented Mar 10, 2023

Do not deprecated parameter Output, use FileOutputs !!
I solved problem by using new param.

@youngSSS youngSSS reopened this Mar 10, 2023
@youngSSS
Copy link
Author

It was not the solution.
It worked 3~4 times, but after that, it does not work in the same way as before.

@frostbyte73
Copy link
Member

Hey @youngSSS, this is an issue that occurs with spotty connections (when there's only one participant and there is a momentary disconnection, it thinks the room is empty and ends the egress).
We are working on building new templates to address this

@frostbyte73
Copy link
Member

closing as duplicate of #210. Will provide all updates there

@frostbyte73 frostbyte73 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants