Open pertoft opened 1 month ago
You don't get "stream name" idea.
ffmpeg:back#video=h264#audio=aac
- transcode stream "back", but you don't have itlegehus: rtmp://
- publishing stream "legehus", but you don't have itThanks for the update. I have tried to update the config to reflect the idea:
streams:
legehus:
- hass://192.168.1.4:8123?entity_id=camera.kamera&token=<redacted>
- "ffmpeg:legehus#video=h264#audio=aac"
publish:
legehus: rtmp://x.rtmp.youtube.com/live2/<redacted>
Have I stream concept understood it correct?
Logs from running:
root@zoneminder:/opt/go2rtc# ./go2rtc_linux_amd64
09:42:38.472 INF go2rtc version 1.9.1 linux/amd64
09:42:38.474 INF [rtsp] listen addr=:8554
09:42:38.475 INF [webrtc] listen addr=:8555
09:42:38.476 INF [api] listen addr=:1984
09:42:41.451 DBG [exec] run cmd="ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://127.0.0.1:8554/legehus?video&audio -c:v libx264 -g 50 -profile:v high -level:v 4.1 -preset:v superfast -tune:v zerolatency -pix_fmt:v yuv420p -c:a aac -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://127.0.0.1:8554/a9cd7676f930cce0c6e831fbd4b3b00c" url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_flags prefer_tcp -i rtsp://127.0.0.1:8554/legehus?video&audio -c:v libx264 -g 50 -profile:v high -level:v 4.1 -preset:v superfast -tune:v zerolatency -pix_fmt:v yuv420p -c:a aac -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp rtsp://127.0.0.1:8554/a9cd7676f930cce0c6e831fbd4b3b00c"
[rtsp @ 0x559ef31e4ec0] Unable to open RTSP for listening
rtsp://127.0.0.1:8554/legehus?video&audio: Address already in use
09:42:42.924 DBG [streams] start producer url=hass://192.168.1.4:8123?entity_id=camera.kamera&token=<redacted>
I have managed to run restreamer, consuming the rtsp stream from go2rtc and forward to youtube live, but its very unstable and I hope to get go2rtc working.
Btw, Very nice job!
Unable to open RTSP for listening
means you using very outdated ffmpeg version
Hi,
I am trying to stream a google nest cam to a youtube live stream (birdhouse project). I can see the stream on the go2rtc gui fint (via homeassistant, as its impossible to configure otherwise).
However, Youtube dont detect the published stream. I have tested with an rtsp campera as input and that works.
I guess i need to re-encode the stream to h264 - correct?
What I have attempted to reencode:
Log:
Help wanted :-)