-
QuestionI have a one question where a “yes” or “no” answer will be sufficient. I have been looking for software that would reduce the number of direct client connections to our IP cameras as well replace several bash/ffmpeg scripts I created for continuous recording. It seems that MediaMTX could be the answer for both, but I cannot even get to first base. From what I have read it appears that if I make only the following changes to the published .yml file under “# Default path settings -> RTSP source (when source is a RTSP or a RTSPS URL”
I should be able to view the real time feed from another PC using VLC with the following URL.
The question is, is my impression that it should work correct? If it is, I will spend a little more time trying to make it work, but after all the different things I have tried, I will probably end up blaming the cameras and trying something else. On the other hand, if something is wrong because I failed in my reading, I will read some more before coming back here with the required additional information. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
need rtsp://usermtx:passmtx@mtx_server_ip:8554/test
and linux reality show))) if it is not working after it, pls show your yml file. |
Beta Was this translation helpful? Give feedback.
-
I believe this is the information you requested, but if more is needed, please let me know I used “cut and paste” to insert the text of the .yml file requested so it is possible, but very unlikely, that the file is not exact, but the only thing changed for sure from what was used in this test is the username and password of the camera for obscuration. The information inserted for the camera under "Global settings -> RTSP server" should also be the only change made to the stock .yml file. The Linux machine is a test machine with a fresh Linux install o f Debian Linux with a desktop. I was not sure why you indicated a username:password should be used from the Windows VLC client connection since there was no set up for authentication, so I tried no username and password, Linux server username and password, and camera username and password. The results were all similar. The output referenced below is using the Linux username and password. Thanks for your help! Operating System: Debian GNU/Linux 12 (bookworm) Client: Windows 11 Pro, VLC 3.0.20 Vetinari Terminal Output
TCPdump
Mediamtx.yml
|
Beta Was this translation helpful? Give feedback.
-
this is the first mistake: ############################################### paths: Enable publishing and reading streams with the RTSP protocol. It is necessary to observe the syntax and structure of the yml file! |
Beta Was this translation helpful? Give feedback.
-
Thanks, It took me a bit to figure out what you were hinting at, but I finally figured out that that paths statements had to be at the end rather than in the section for RTSP Servers. I tried the change with three different cameras, one at a time. One worked well and the other two had some problems unrelated to this thread that I will have to work through. Thanks again. |
Beta Was this translation helpful? Give feedback.
-
@PK232 this issue made me realize that the server currently doesn't prevent users from adding duplicate parameters into the configuration file, and it silently discard one of the two parameters, resulting in troubles like this. This behavior will be changed. |
Beta Was this translation helpful? Give feedback.
-
fixed with #3651 |
Beta Was this translation helpful? Give feedback.
this is the first mistake:
###############################################
Global settings -> RTSP server
paths:
test:
source: rtsp://username:[email protected]:554/11
Enable publishing and reading streams with the RTSP protocol.
It is necessary to observe the syntax and structure of the yml file!