-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTSP PROXY ISSUE #1105
Comments
Hello, please provide a network dump, that can be generated in this way:
PS: when generating the network dump, use this configuration: Vanp:
source: rtsp://admin:admin1234@172.17.172.145:22101/1_88_1
sourceOnDemand: no Start the server, wait 30seconds, stop the server, stop recording the dump and attach the dump. |
Attached as requested per instructions loopback dump ps: after like 3 or 4 attempt the feed worked but after trying again it kept failing as before |
Hello @Tabarane, thanks for providing the dumps, i finally found the issue. The server wants to pull the video stream from the camera with the UDP transport protocol:
The camera accepts the request, but it replies with a response fit for the TCP transport protocol:
And subsequently starts sending the stream with the TCP transport protocol, causing this error:
and this error in ffmpeg:
rtsp-simple-server and gortsplib need to be improved in order to detect TCP responses to UDP requests and switch protocol from UDP to TCP. |
@aler9 Thanks man, i hope im helping the project to improve , im using it since 2020 and its has been AMAZING, some challenges related to proxy type but not that BUG level yet ))) |
(bluenviron/mediamtx#1105) when a camera receives a UDP request and replies with a TCP responses, switch protocol from UDP to TCP.
(bluenviron/mediamtx#1105) when a camera receives a UDP request and replies with a TCP responses, switch protocol from UDP to TCP.
(bluenviron/mediamtx#1105) when a camera receives a UDP request and replies with a TCP responses, switch protocol from UDP to TCP.
(bluenviron/mediamtx#1105) when a camera receives a UDP request and replies with a TCP responses, switch protocol from UDP to TCP.
@Tabarane if you still have the camera, please test this nightly release and let me know if it works. Remember to remove the parameter rtsp-simple-server_v0.21.1-5-gfb06f6d_windows_amd64.zip |
@aler9 Working like a charm in proxy mode , amazing man, still FFMPEG has raised error with non matching transport, but Proxy mode is like wow :))) |
(bluenviron/mediamtx#1105) when a camera receives a UDP request and replies with a TCP response, switch protocol from UDP to TCP.
If you have other problematic devices, feel free to open additional issues. Meanwhile, this is fixed. |
added in v0.21.2 |
This issue is being locked automatically because it has been closed for more than 6 months. |
Which version are you using?
v0.20.0
Which operating system are you using?
Describe the issue
I have camera which is sending some type of additional data and its cause the issue, idea is if im using FFMPEG to play it , it will give the below error
[rtsp @ 000001c44d179e80] Nonmatching transport in server reply rtsp://admin:admin1234@172.17.172.145:22101/1_88_1: Invalid data found when processing input
then i try to use Proxy with the help of RTSP server and it give me the error attached in server debug log
Config.yml
FFMPEG option
Proxy option
Describe how to replicate the issue
Did you attach the server logs?
yes / no
YES
server.log
Did you attach a network dump?
yes / no
NO
The text was updated successfully, but these errors were encountered: