Closed SirMangler closed 4 months ago
As it turns out, I didn't realise that browsers (aside from Chrome desktop) just don't support the high10/high422/high444 profiles. This was being set by default because of my camera's pixel format. A shame but not SRS's fault.
So for anyone having the same problem as me, you need to convert your pixel format to one that profile high
is compatible with, which can be done with ffmpeg by adding -pix_fmt yuv420p
, or using sws_scale if using ffmpeg as an API.
!!! Before submitting a new bug report, please ensure you have searched for any existing bugs and utilized the
Ask AI
feature at https://ossrs.io or https://ossrs.net (for users in China). Duplicate issues or questions that are overly simple or already addressed in the documentation will be removed without any response.Describe the bug The first example / getting started steps do not work on Firefox.
Version Latest from docker (5.0.208(Bee))
To Reproduce Steps to reproduce the behavior:
docker run --rm -it -p 1935:1935 -p 1985:1985 -p 8080:8080 \ -p 8000:8000/udp -p 10080:10080/udp ossrs/srs:5
as per the Usage stepsffmpeg -re -i /dev/video1 -vcodec libx264 -f flv -y "rtmp://localhost/live/livestream"
which is nearly identical to the usage, just using a webcam as the input instead.Expected behavior It should play the RTMP stream on the Firefox. Tested on Linux (firefox version v120.0.1) and tested on Windows 10 (firefox v123.0, latest from windows store)
Screenshots![image](https://github.com/ossrs/srs/assets/4237834/1bd1ff4e-4fc4-433f-966b-e9f49a381886)
Additional context
Thanks!!