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

WebRTC stream does not work, x RTP packets lost spammed in log #4202

Closed
fxzzi opened this issue Jan 26, 2025 · 3 comments
Closed

WebRTC stream does not work, x RTP packets lost spammed in log #4202

fxzzi opened this issue Jan 26, 2025 · 3 comments

Comments

@fxzzi
Copy link

fxzzi commented Jan 26, 2025

Which version are you using?

1.11.1

Which operating system are you using?

Linux amd64 standard

Describe how to replicate the issue

  1. start the server with obs. i used a simple screen capture source at 1080p60 with a bitrate of 8000kbps.
  2. publish it with webrtc
  3. read it from any browser (i tried firefox and chromium)
  4. notice the stream not working properly, with lots of "RTP packets lost" errors in the logs.
  5. This is not an issue with firewall, the port I use (4200) is open and i can see on a port checker it is open as well.
  6. This is not an issue with my network speed, shown below is my net speeds:

Image

Here is my config:

logLevel: debug
paths:
  all_others: {}
webrtc: true
webrtcAdditionalHosts:
- <publicip>
- 1.1.1.1
- 1.0.0.1
- 2606:4700:4700::1111
- 2606:4700:4700::1001
webrtcAddress: :4200
webrtcLocalUDPAddress: :4200

I do not think this issue is what was fixed by #4174 , as webrtcIPsFromInterfaces was not modified by me and should be true by default. That PR mentions it fixes things if this value is false.

Server logs

https://paste.rs/VQrOM.txt contains the debug logs from mediamtx

Network dump

No response

@fxzzi
Copy link
Author

fxzzi commented Jan 26, 2025

After testing 1.11.2, I can confirm the issue still occurs there.

edit:

closing, fixed. additionalhosts does not accept ipv6 addrs, removing the 2 ipv6 cloudflare addresses made mediamtx and webrtc work again.

@fxzzi fxzzi closed this as completed Jan 26, 2025
@Sunvas
Copy link

Sunvas commented Feb 11, 2025

additionalhosts does not accept ipv6 addrs, removing the 2 ipv6...

Does it mean that additionalhosts not supports IPv6?

@aler9
Copy link
Member

aler9 commented Feb 11, 2025

Does it mean that additionalhosts not supports IPv6?

this problem is tracked here: #3227

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

3 participants