Would it possible to broadcast mjpeg using plain transport to mediasoup server then encode the video on the server to VP8 to be consumed.
I tested ffmpeg broadcaster which works good, but the CPU usage is very high. So I am thinking if sending the raw stream to the server then encode to vp8 instead of using ffmpeg on the client side. Is this possible?
I would like to know if current implementation of mediasoup support such a thing?
Also could anyone please send me a link of a doc to read and try to figure it out.
@ibc I totally understand and respect your busy time. Nobody said it is a must and this is not my expectation. I personally do nit mind helping others and I hope I can get helped as well. However, I am also more than happy to pay for your time if you offer a consultation service. I have not seen anywhere in the docs supports encoding of raw video packets, however I am asking if this is something possible to look into or not. based on your questions, it does not sounds it is possible to do so.
Your question is about sending raw video to mediasoup (so your ffmpeg client doesn’t use that much CPU) with the hope that mediasoup will do magic by encoding raw video without consuming CPU.
mediasoup proxies RTP. It’s not a encoder. You can send such a raw video frames to the server in which mediasoup runs but then you need some encoder in there that encodes it using some video codec and packetizes it into RTP packets. I assume this can be done with ffmpeg and gstreamer, but no idea. Anyway nobody does that so I suggest you rethink your solution.
@ibc Thank you for your insightful reply. I understand your point of the CPU usage and off course the compute power will be utilized regardless. The source of the video runs on low end machine where I cannot scale up. so I was thinking to balance the load. I do agree with you that I need to rethink about my options and how I can send encoded video from the source to be consume-ready by mediasoup! I am going to see if I can use GPU on the source.