Replies: 1 comment 1 reply
-
This is unrelated from MediaMTX, the problem is that Docker inside WSL doesn't support the Correct issue: docker/for-win#6736 If you still want to use MediaMTX + WSL + Docker, consider exposing ports manually as mentioned in the README. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Hi,
while my goal is to stream to and from the server using OBS, I'm trying everything in my power to stream to my server, but each method gives me an error. I have followed the instructions on docker hub and github.
I'll start with my specs, then I'll explain how each method I tried (OBS, python + OpenCV, FFMPEG, VLC, WebRTC)
Specs and Setup
I run Win 11 with a clean install of Docker Desktop (yes I have rebooted), I have WSL 2.1.5.0
I have no additional antivir to the Windows ones (
I have used strictly only
docker pull bluenviron/mediamtx
and
docker run --rm -it --network=host bluenviron/mediamtx
and I get the status
in the command line and status
running
in docker desktop.Attempts
Ffmpeg
I have an mp4 file that I have converted to a .ts file with ffmpeg, called room.ts. Running
ffmpeg -re -stream_loop -1 -i room.ts -c copy -f rtsp rtsp://localhost:8554/mystream
brings up a huge status list
however I get no changes on the server or the ffmpeg terminal. Trying to exit via Ctrl+C I get
I've tried different variants using ffmpeg, including streaming the mp4 file itself, but all to no avail.
Adding in/out rules for UDP/TCP port 8554 did not change this result.
OBS Studio
Following the instructions I set Service to custom, server to rtmp://localhost and streamkey to
mystream
(but also tried without).When I hit "Start Streaming" I get the error about 10 seconds later: "Failed to connect to server"
Adding in/out rules for TCP port 1935 did not change this result.
python + OpenCV
using a python 3.10 venv with opencv-python 4.10.0.84 and the exact script from the readme file, I get the error
WebRTC
By readme I should open
http://localhost:8889/mystream/publish
in a browser, which gives an "Unable to connect" error, so doeshttp://localhost:8889
itself.Adding in/out rules for UDP port 8889 did not change this result.
VLC
Similar to ffmpeg. Ctrl+S, I choose a file to stream, add an RTSP server with port 8554. Nothing happens. I get no error but also no feedback.
Additional Comments
I'm (obviously) new to rtsp servers and the like. This docker is the third solution I've tried after FFMPEG itself and VLC itself. I've attempted multiple hours of troubleshooting on each of these attempts and it led to nowhere.
I cannot even figure out if I'm doing something wrong with the server, or something is wrong in each of my attempts to stream to it. Since I usually assume myself to be at fault, I post this as a discussion here and not as a github issue.
Any and all help is greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions