Network interface check when setting rtspTransport to multicast. #4258
Unanswered
yu-fukusako
asked this question in
Questions
Replies: 1 comment
-
I reviewed the code a bit more. It looks like the process after this includes joining a multicast group on the interface specified by readIP. However, I believe it is necessary to join the multicast group using a local interface rather than a remote interface. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
We are considering using MediaMTX to stream video from a camera.
The camera connects via RTSP and then streams video using multicast.
Therefore, we have configured MediaMTX to use
rtspTransport: multicast
as follows:However, we are encountering the following error in MediaMTX:
After checking the source code of gortsplib, it appears that the error occurs at the following part of the code.
https://github.com/bluenviron/gortsplib/blob/main/pkg/multicast/multicast.go#L42
https://github.com/bluenviron/gortsplib/blob/v4.12.3/client.go#L1568
Looking into the surrounding code, it seems that the system is checking whether the camera's IP (SourceIP) exists on the MediaMTX server side nw-interface.(IP 10.10.2.3)
Since the camera is on a different network from the server running MediaMTX, this check will always fail.
Is there any way to ignore this check?
Alternatively, shouldn't this check be performed against the DestinationIP (the multicast address) returned during the SETUP process, rather than the SourceIP?
Beta Was this translation helpful? Give feedback.
All reactions