-
QuestionHi, I'm a big fan of MediaMTX. It is a perfect sample of a well working server app, written in GO. I really like it. I'm having several AWS installations using a fork of MediaMTX 1.6.0, which work flawlessly. Today I came across a problem which I currently not really understand. Maybe one of you is having a hint how to approach. Since months I'm using FFMPEG to loop-stream MP4 files towards the RTSP server for redistribution, mostly like so:
The stream then is re-distributed to several inference instances which act as MediaMTX RTSP clients, but this is not the point. I found, that FFMPEG is really a resource hammer, especially if it comes to transcoding (which is done here), so having this command line once works good, but don't try to stream 3 or 4 like so on an ordinary machine. It will explode :) I found that a re-streaming w/o transcoding of prepared MP4 files (MOOV Atom available and such) works way less problematic w.r.t. system resources, so an equivalent command line would be like so:
You might already have notices, that I dropped the I'm having attached the obfuscated logs of the initial connection establishment from my machine for the three cases: GST without parameter (works), FFMPEG with parameter (works) and GST with parameter (is refused with 400). The traces have been taken with Wireshark on my local machine, which issues the a.m. commands in a console. The command, which fails is
The only difference compared to the working GST command it the extra "?mode=inference" URL parameter. It does also not matter to have a "/" before the "?" or to omit the quotation marks... Doesn't work with the parameter. The traces only show the very first few steps of SDP negotiation, no RTP data contained. Slight obfuscation applied (w.r.t. server names etc). Any friendly pointer highly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
OK, the problem is somewhere in how the URLs are constructed in In case I don't attach a parameter:
In case I attach a parameter:
|
Beta Was this translation helpful? Give feedback.
-
Hello @neilyoung, the URL-related issue with |
Beta Was this translation helpful? Give feedback.
Hello @neilyoung, the URL-related issue with
rtspclientsink
andrtspsrc
was reported in #3295 and fixed with bluenviron/gortsplib#619