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

Cannot play RTSP stream from mediamtx #227

Open
minhhoai1001 opened this issue Dec 22, 2023 · 1 comment
Open

Cannot play RTSP stream from mediamtx #227

minhhoai1001 opened this issue Dec 22, 2023 · 1 comment

Comments

@minhhoai1001
Copy link

Cannot play RTSP stream from mediamtx.

  • I using mediamtx as RTSP server.
  • I using ffmpeg to publish RTSP stream to server: ffmpeg -re -stream_loop -1 -i file.ts -c copy -f rtsp rtsp://localhost:8554/mystream
  • In config.json: "url": "rtsp://localhost:8554/mystream"
    I got error:
    2023/12/22 09:05:58 WritePacket WebRTC Codec Not Supported
    2023/12/22 09:05:58 Set ICEServers [stun:stun.l.google.com:19302]

How to fix it.

@osmanemek
Copy link

osmanemek commented Feb 15, 2024

Codec problems are usually caused by a problem accessing the RTSP source. Therefore, I recommend that you make sure that your application has access to the RTSP address and that you are typing the correct RTSP address.

Another reason could be the firewall/nat structure. Stun servers do not work for this type of structure. Therefore use a turn server.

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