Sample Header Ad - 728x90

RTP Reverse Proxy

1 vote
2 answers
1475 views
I've been trying to make a prototype of a video streaming server before I actually write code for it. So I used VLC to make streaming happen on my server using the following command: cvlc video.mpg --loop --sout '#transcode{vb=0,vcodec=mpgv,fps=20,ab=0,acodec=mpga,channels=2,venc=ffmpeg}:rtp{mux=ts,ttl=10,dst=127.0.0.1,port=9554}' The streaming service began running on **localhost** on port 9554. After a little research, I failed to bind VLC stream to a public IP, that's another problem worth sharing on another page. The thing is, to make streaming visible from the outside world I used NginX reverse proxy, and used **HTTP** streaming on VLC over **RTP**. cvlc video.mpg --loop --sout '#transcode{vb=0,vcodec=mpgv,fps=20,ab=0,acodec=mpga,channels=2,venc=ffmpeg}:http{mux=ts,ttl=10,dst=0.0.0.0:9554/live}' Well, That was a success to watch the streamed video on my phone except that I was not using **RTP** protocol. The problem raises when I have no idea how to reverse proxy a **UDP Stream**. Sure NginX will not work because it only proxies HTTP, and TCP on newer versions, of course. So, any idea how to reverse proxy a **UDP stream**? Any other relative answers are also welcome, in case you have any idea how to bind VLC to a public address instead of localhost.
Asked by Brian Salehi (422 rep)
Jul 29, 2019, 04:37 PM
Last activity: Jun 9, 2021, 01:52 PM