m1k1o / neko

A self hosted virtual browser that runs in docker and uses WebRTC.
https://neko.m1k1o.net/
Apache License 2.0
5.95k stars 449 forks source link

Mobile users cannot view RTMP streams #316

Open phere-x opened 1 year ago

phere-x commented 1 year ago

Almost all mobile users have complained when watching the RTMP destination stream, that its not a format supported. I'm guessing a compatible codec is not being sent.

For example this is what a mobile user sees when viewing a stream on Twitch

https://github.com/m1k1o/neko/assets/94848519/acb31d54-780d-4e63-a533-dee79e8c1d9c

m1k1o commented 1 year ago

Twitch should be transcoding it to other codec that is supported by the clients.

Here is related issue with broadcast pipeline that could help: https://github.com/m1k1o/neko/issues/276#issuecomment-1498253824

phere-x commented 1 year ago

I just tried the solution evilalmus mentioned but it changed nothing. I also discovered it doesn't work on Firefox browsers (Unsupported format), only

Sending a stream manually with ffmpeg works fine so it's not a channel or browser issue (ffmpeg -re -i "source" -c:v libx264 -x264-params ke,yint=48:scenecut=2 -profile:v main -preset superfast -minrate 1M -maxrate 12M -bufsize 12M -pix_fmt yuv420p -g 50 -c:a:2 aac -b:a 160k -ac 2 -ar 44100 -f flv rtmp://london.restream.io/live/re_1656731_3347f5152052864e2c26)