Open RodinAlexey opened 2 months ago
Having seemingly the same problem.
Config:
publish:
test0:
- rtmp://a.rtmp.youtube.com:1935/live2/xxxx-xxxx-xxxx-xxxx-xxxx
streams:
test0: rtmp://localhost:1936/test
log:
level: trace
publish: trace
api: debug
rtmp: trace
streams: trace
Log:
xaionaro@void:~/go/src/github.com/AlexxIT/go2rtc$ go run ./
12:55:47.392 INF go2rtc platform=linux/amd64 revision= version=1.9.4
12:55:47.392 DBG build vcs.time= version=go1.22.1
12:55:47.392 INF config path=/home/xaionaro/go/src/github.com/AlexxIT/go2rtc/go2rtc.yaml
12:55:47.393 INF [rtsp] listen addr=:8554
12:55:47.393 INF [api] listen addr=:1984
12:55:47.393 INF [webrtc] listen addr=:8555/tcp
12:55:47.393 TRC [hass] can't import config: open .storage/core.config_entries: no such file or directory
12:55:48.393 TRC [streams] check cons=0 media=video, sendonly, H264
12:55:48.394 TRC [streams] check cons=0 prod=0 media=video, recvonly, H264
12:55:48.394 TRC [streams] match cons=0 <= prod=0
12:55:48.394 TRC [streams] check cons=0 media=audio, sendonly, MPEG4-GENERIC
12:55:48.394 TRC [streams] check cons=0 prod=0 media=video, recvonly, H264
12:55:48.394 TRC [streams] check cons=0 prod=0 media=audio, recvonly, MPEG4-GENERIC/48000/2
12:55:48.394 TRC [streams] match cons=0 <= prod=0
12:55:48.394 DBG [streams] start producer url=rtmp://localhost:1936/test
12:55:48.449 DBG [streams] stop producer url=rtmp://localhost:1936/test
12:55:53.453 TRC [streams] check cons=0 media=video, sendonly, H264
12:55:53.454 TRC [streams] check cons=0 prod=0 media=video, recvonly, H264
12:55:53.454 TRC [streams] match cons=0 <= prod=0
12:55:53.454 TRC [streams] check cons=0 media=audio, sendonly, MPEG4-GENERIC
12:55:53.454 TRC [streams] check cons=0 prod=0 media=video, recvonly, H264
12:55:53.454 TRC [streams] check cons=0 prod=0 media=audio, recvonly, MPEG4-GENERIC/48000/2
12:55:53.454 TRC [streams] match cons=0 <= prod=0
12:55:53.454 DBG [streams] start producer url=rtmp://localhost:1936/test
12:55:53.591 DBG [streams] stop producer url=rtmp://localhost:1936/test
12:55:58.595 TRC [streams] check cons=0 media=video, sendonly, H264
12:55:58.597 TRC [streams] check cons=0 prod=0 media=video, recvonly, H264
12:55:58.597 TRC [streams] match cons=0 <= prod=0
12:55:58.597 TRC [streams] check cons=0 media=audio, sendonly, MPEG4-GENERIC
12:55:58.597 TRC [streams] check cons=0 prod=0 media=video, recvonly, H264
12:55:58.597 TRC [streams] check cons=0 prod=0 media=audio, recvonly, MPEG4-GENERIC/48000/2
12:55:58.597 TRC [streams] match cons=0 <= prod=0
12:55:58.597 DBG [streams] start producer url=rtmp://localhost:1936/test
12:55:58.732 DBG [streams] stop producer url=rtmp://localhost:1936/test
In tcpdump
I see it tried to connect to youtube, but reset the connection after FCPublish
.
The same behavior at 1.9.3
. Meanwhile 1.9.2
doesn't even try to connect to the youtube server and hangs at:
xaionaro@void:~/go/src/github.com/AlexxIT/go2rtc$ go run ./
13:00:28.385 INF go2rtc platform=linux/amd64 revision= version=1.9.2
13:00:28.385 DBG build vcs.time= version=go1.22.1
13:00:28.385 INF config path=/home/xaionaro/go/src/github.com/AlexxIT/go2rtc/go2rtc.yaml
13:00:28.386 INF [rtsp] listen addr=:8554
13:00:28.386 INF [webrtc] listen addr=:8555/tcp
13:00:28.386 INF [api] listen addr=:1984
13:00:28.386 DBG [hass] can't import config: open .storage/core.config_entries: no such file or directory
13:00:29.386 TRC [streams] check cons=0 media=video, sendonly, H264
Привет, Алекс.
go2rtc version: 1.9.4 (Windows 10 x64)
One rtsp stream from video-encoder. VLC codec info for this RTSP stream:
Config:
POST request: http://192.168.1.152:1984/api/streams?src=mix&dst=rtmp://a.rtmp.youtube.com/live2/vz2g-dmj8-rvq8-4sqz-xxxx
Logs: