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

RTMP port change doesn't seem to work / WebRTC Camera HACS addon port conflict #1267

Open
RyanEwen opened this issue Jun 20, 2024 · 3 comments

Comments

@RyanEwen
Copy link

RyanEwen commented Jun 20, 2024

Describe the bug

After updating docker-wyze-bridge and Home Assistant today I started getting an error from MediaMTX that port 8554 is already in use. netstat was able to reveal that go2rtc from the WebRTC HACS addon for Home Assistant was using the same port.

I found that I if I start docker-wyze-bridge before starting Home Assistant, then all seems fine on the surface. I'm sure it breaks something in the WebRTC Camera addon and I just haven't noticed.

I am not sure if this issue is actually new, or if I had been starting docker-wyze-bridge first by sheer luck all this time before now.

In attempt to allow the WebRTC HACs addon to use 8554, I decided to try trlling docker-wyze-bridge to use 8664. This seems like it should be as simple as the following in my docker-compose.yml:

    environment:
      - MTX_RTSPADDRESS=:8664
      - WB_RTSP_URL=rtsp://192.168.2.10:8664/

However, after recreating the container, RTSP streams are not accessible from within the Web UI nor external software. MediaMTX no longer complains about the port being in use, and netstat confirms that it's running on 8665. The WebUI also shows the updated port. There are no errors in the log. In fact it never sees the request for the stream at all.

Environment (if applicable)

  • Bridge type: Docker Compose/Docker Run (host-networking)
@RyanEwen
Copy link
Author

It occurs to me that if docker-wyze-bridge now supports outputting WebRTC then I shouldn't need the WebRTC Camera HACS addon anymore, should I? I'm not sure what kind of card I would use in HA to display a native WebRTC stream, though.

@mrlt8
Copy link
Owner

mrlt8 commented Jun 21, 2024

You need to change the external port that the container is using (you should be able to find it lower down on the config) and not MTX_RTSPADDRESS which will change the port that mtx is using inside the wyze bridge container.

@RyanEwen
Copy link
Author

I am using host networking (I should have mentioned that somewhere other than the end of the post sorry)

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