chriswiggins / rtsp-streaming-server

Lightweight RTSP/RTP streaming media server written in Javascript
GNU General Public License v3.0
107 stars 21 forks source link

Unable to run this server inside docker container. #38

Open hnguyen48206 opened 1 year ago

hnguyen48206 commented 1 year ago

Hi,

I have tried to used this project by deploying it inside a docker-container but so far, it simply does not work (what I'm doing here is forwarding the stream from ffmmpeg to the producer port). What has happened is that the client from outside (vlc in this case) seems to be able to connect to the consumer exposed port but then fails to get any data and closes soon after. This is not the case if I run the server normally without docker which is kinda not understandable.

Any help would be much appriciated.

chriswiggins commented 1 year ago

Hi @hnguyen48206 - I haven't updated this module in a long time, but are you able to provide your Dockerfile and your run command and I can try and help point you in the right direction?

chriswiggins commented 1 year ago

Actually hold that thought - the reason this won't be working if you're using the docker -p option, is that this requires UDP directly too. UDP won't port forward into your container unless you set that up properly too, which I think you can - have a look at the docker docs and change your RTP port range to match what you forward into the container

hnguyen48206 commented 1 year ago

Thank you so much sir for your timely reply. I'll give it another shot.