-
QuestionI am stuck with setting up mediamtx to stream via webrtc. docker run -t --name mediatest -p 8554:8554 -p 8888:8888 -p 8889:8889 mediatest` Entering "http:/localhost:8888/bunny", I get the expected video. Google chrome works fine, but not firefox.
FROM bluenviron/mediamtx:latest-ffmpeg AS server
RUN apk add wget
RUN mkdir -p /media && wget --progress=bar -O /media/bunny.mp4 https://sample-videos.com/video321/mp4/240/big_buck_bunny_240p_1mb.mp4
RUN cat <<EOF >> /mediamtx.yml
bunny:
runOnDemand: >
ffmpeg -re
-stream_loop -1
-i /media/bunny.mp4
-c:v libx264
-pix_fmt yuv420p
-preset ultrafast
-b:v 600k
-an
-async 50
-f rtsp rtsp://localhost:\$RTSP_PORT/\$MTX_PATH
runOnInitRestart: yes
EOF
ENTRYPOINT [ "/mediamtx" ] Here is an extract from the log after first streaming with HLS and then with WEBRTC.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Looks like Chromium does POST whep H264, but firefox does not. Chromium:
Firefox:
BTW firefox probably needs |
Beta Was this translation helpful? Give feedback.
-
This is impossible to answer if you don't provide server logs with logLevel set to debug, since they contain the SDPs exchanged between browser and sever, that contain supported codecs. Open a bug report and provide such log. |
Beta Was this translation helpful? Give feedback.
Issue exists: