Coder Social home page Coder Social logo

Comments (3)

AlexxIT avatar AlexxIT commented on September 28, 2024

You don't get "stream name" idea.

  1. ffmpeg:back#video=h264#audio=aac - transcode stream "back", but you don't have it
  2. legehus: rtmp:// - publishing stream "legehus", but you don't have it
  3. Transcoding H264 to H264 in same stream - useless. Because clients will always use first (not transcoded) source.

from go2rtc.

pertoft avatar pertoft commented on September 28, 2024

Thanks 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!

from go2rtc.

AlexxIT avatar AlexxIT commented on September 28, 2024

Unable to open RTSP for listening means you using very outdated ffmpeg version

from go2rtc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.