rtsp-streaming-server icon indicating copy to clipboard operation
rtsp-streaming-server copied to clipboard

Unable to run this server inside docker container.

Open hnguyen48206 opened this issue 2 years ago • 3 comments

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.

hnguyen48206 avatar Jan 31 '23 07:01 hnguyen48206

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 avatar Jan 31 '23 07:01 chriswiggins

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

chriswiggins avatar Jan 31 '23 07:01 chriswiggins

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

hnguyen48206 avatar Jan 31 '23 07:01 hnguyen48206