bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
10.69k stars 1.39k forks source link

RTMP does not follow standard URL schema so many apps won't accept the URL #3389

Closed Majestic7979 closed 1 month ago

Majestic7979 commented 1 month ago

I am using always the latest version, so it's the latest as of today (from docker pull of latest tag).

I was having issues with making some applications connect. It seems like they have a standard URL schema hardcoded to the following format:

rtmp://server/application/streamkey

The MediaMTX docs state that ingesting into MediaMTX must use this:

rtmp://localhost/mystream

So let's replace "localhost" with "server":

rtmp://server/mystream

meaning it would look something like this:

rtmp://10.0.0.69/mystream

This means the applications will not accept the URL, will show as invalid, because it lacks the "application" before the stream key, or in other words an addition path.

To make it valid, MediaMTX would have to accept a URL like this:

rtmp://localhost/stream/mystream or maybe even like this: rtmp://localhost/rtmp/mystream

Is it possible to adapt please? Otherwise I cannot use Larix Broadcaster on Android to stream directly from my smartphone, or potentially this is also the issue I am experiencing with my Sony A7IV camera that won't accept any URL I am providing apart from those following similar schema from Facebook or YouTube RTMP...

github-actions[bot] commented 1 month ago

This issue is being automatically closed because it does not follow the issue template. Please reopen the issue and make sure to include all sections of the template.