Video encoded and sent from Android cannot be played on iOS Telegram

Telegram uses MeidaCodec to encode video from Android API 16. It works fine with API 18. But there are errors in API 16, 17. Video encoded and sent from Android cannot be played in iOS.
I think the problem is the color conversion between the output of the decoder encoder and the input of the encoder codec. https://github.com/DrKLO/Telegram/blob/2114024ab1d9cf209916bcdb3a4a7d44e51a3b0c/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java#L3223

My application is currently using ffmpeg to encode the video. But it is too slow. MediaCodec much faster than ffmpeg . But it only works from API 18.
Can someone solve the problem the video cannot be played in iOS? Thanks.

+5
source share

Source: https://habr.com/ru/post/1244266/


All Articles