Coder Social home page Coder Social logo

Comments (4)

flaksirus avatar flaksirus commented on May 16, 2024

I don't know why but I've tried this and some other rtsp servers with docker containers and none of them worked really... My host system is Windows so I tried WSL2 docker and docker on ubuntu server and none of them worked well (they do connect but stream fails before first frame seen). The same time all of them hosted without docker works just fine (even on WSL). I also tried --network=host with no luck.
Am I the only one who got this kind of problem?

from mediamtx.

aler9 avatar aler9 commented on May 16, 2024

Hello, hosting a RTSP server inside a Docker container is problematic since Docker can, in certain situations, change the source port of UDP packets, making RTSP-via-UDP unreliable, since UDP packets are identified and routed by a RTSP server by looking at their source IP and port.

There are two ways to solve the problem:

  • create the container with --network=host
  • expose the TCP port (-p 8554), and disable the UDP protocol (in rtsp-simple-server, this is done with --protocols=tcp)

Anyway, a docker image for rtsp-simple-server is on its way.

from mediamtx.

aler9 avatar aler9 commented on May 16, 2024

Docker images are ready and available at
https://hub.docker.com/r/aler9/rtsp-simple-server

from mediamtx.

github-actions avatar github-actions commented on May 16, 2024

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

from mediamtx.

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.