Replies: 3 comments
-
|
Hi, With this docker daemon option host networking is not required, exposing udp ports is sufficient. |
Beta Was this translation helpful? Give feedback.
-
|
Unfortunately RTSP with UDP requires a direct connection between client and server - i'm working to add support for another protocol (SRT) that doesn't require it. |
Beta Was this translation helpful? Give feedback.
-
|
This discussion is being locked automatically because the last update was more than 2 years ago. Do not use the content of this discussion as reference since it's probably outdated! The official documentation is the only place in which you can find up-to-date answers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Which version are you using?
v0.0.0
Which operating system are you using?
OS
Architecture
Describe the issue
Description
For an application, I want to publish an UDP stream to the server. Once published I want to open it with vlc or ffplay. Using TCP, it works, but with UDP, it won't.
I start the server with
docker run --rm -it -e RTSP_PROTOCOLS=udp -p 8554:8554 aler9/rtsp-simple-serverI publish a stream with ffmpeg
./ffmpeg -i testVideo.mp4 -rtsp_transport udp -f rtsp rtsp://localhost:8554/mystreamI get the following error
2021/02/23 10:23:43 [I] [1/0/0] [client 172.17.0.1:59268] connected (plain) 2021/02/23 10:23:43 [I] [1/1/0] [client 172.17.0.1:59268] is publishing to path 'mystream', 1 track with udp 2021/02/23 10:23:53 [I] [1/1/0] [client 172.17.0.1:59268] ERR: no UDP packets received recently (maybe there's a firewall/NAT in between) 2021/02/23 10:23:53 [I] [0/0/0] [client 172.17.0.1:59268] disconnectedFrom Wireshark I can see "destination unreachable (port unreachable)" packets
Starting the server with this command line get ffmpeg to block
docker run --rm -it --network=host aler9/rtsp-simple-serverffmpeg :
./ffmpeg -re -stream_loop -1 -i testVideo.mp4 -f rtsp rtsp://localhost:8554/mystreamerrors:
Could not write header for output file #0 (incorrect codec parameters ?): Immediate exit requested Error initializing output stream 0:0 --Everything works fine using the windows precompiled binaries, so I assume it's a network problem.
Did you attach a network dump?
no
Beta Was this translation helpful? Give feedback.
All reactions