I have been working on a streaming platform. I am receiving a RTSP stream, converting it to H264 via JCodec in Java Spring and sending the result via Websockets to my React App that uses JMuxer for conversion.

My problem is that the result looks like this:

Image in Browser

I suspected that JMuxer does not correctly convert the colours and I tried manually converting the YUV420J data to RGB, but the result was even worse. I tried inverting the colors and swapping the byte orders, but no success.

Did anyone else encounter any similar colorspace errors and can give me a hint where the bug could be from. Thanks in advance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.