RootEncoder icon indicating copy to clipboard operation
RootEncoder copied to clipboard

Wrong FormatVideoEncoder, different color palette

Open digitalStyx opened this issue 8 years ago • 2 comments

Hi

I have a problem with different color pallete on some device. e.g on Huawei VNS-L21 (Android 7.0) when I start streaming with your example app I see good colors on my phone but people who watch me seeing wrong colors.

WRONG COLORS (that people see): zrzut ekranu 2018-01-16 13 12 36

CORRECT COLORS: zrzut ekranu 2018-01-16 13 14 28

If I change FormatVideoEncoder.YUV420PACKEDPLANAR.getFormatCodec() for FormatVideoEncoder.YUV420PLANAR then everything is displayed correctly

image

What could be wrong?

digitalStyx avatar Jan 16 '18 12:01 digitalStyx

That was my bad. I was converting in YV12 instead of I420. Fixed in version 1.3.0: https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/commit/aff0a603d0a6c8ce8d22cb4359cb899e77ef385a

pedroSG94 avatar Jan 16 '18 23:01 pedroSG94

now it's work, thx 👍

digitalStyx avatar Jan 17 '18 08:01 digitalStyx