jsmpeg support
andryan opened this issue · comments
It would be nice if Red5 or its Pro version could support jsmpeg (https://jsmpeg.com/). I think this can be done/achieved with a Red5 webapp. Chinese CDN providers have video CDN services supporting jsmpeg and western CDN services have yet to follow or even take notice. It should be fairly easy to implement and latency-wise it's comparable to WebRTC with much less complexity.
While I can't promise anything as far as support, I will take a look at it.
@andryan I've started work on this feature over at https://github.com/Red5/native/tree/master/mpeg
Making progress https://photos.app.goo.gl/G3xZJFFZiktKQSq37
@andryan I'll be releasing my mpeg streaming plugin in the next couple of days over on https://github.com/mondain/red5-plugin-releases keep an eye out.
One misconception in your original statement: It should be fairly easy to implement and latency-wise it's comparable to WebRTC with much less complexity.
There is complexity due to the ingest being either h264+aac or h264+opus and the expected playback of mp1video and mp2audio in jsmpeg. Transcoding is required, unless you can ingest mpeg1/2 content.
Hi Paul. Apologies for that. Yes, it needs to ingest MPEG1/2, which in my case I am able to push MPEG1/2 streams with my setup/encoders. The sample nodejs server they provide only acts like a repeater with no flow control, etc.
Once again, thanks for making this happen!
MPEG1/2 ingest isnt turned on yet, but any other ingest getting into the server is supported; this version transcodes from H264/AAC https://github.com/mondain/red5-plugin-releases/releases/tag/mpeg2-plugin-1.0.1