LaiFengiOS / LFLiveKit

LaiFeng IOS Live Kit,H264 and AAC Hard coding,support GPUImage Beauty, rtmp transmission,weak network lost frame,Dynamic switching rate
MIT License
4.39k stars 1.11k forks source link

Camera is glitch on iOS 15.4 #372

Open noho501 opened 2 years ago

noho501 commented 2 years ago

Anyone can help me how to resolve this issue on iOS 15.4? here is the test video https://www.youtube.com/watch?v=i8nthuST464

hongkong792 commented 2 years ago

您好,我已收到您的邮件,感谢您对我的支持!香港回复

katsai81 commented 2 years ago

Having the same issue on iOS 15.4. Tried several changes in the videoMaxBitRate, videoBitRate, videoFrameRate, videoMaxKeyframeInterval but nothing seems to work. Any help would be greatly appreciated.

noho501 commented 2 years ago

I found the solution, below is the fix for iOS 14.5 for those who need it.

Open file LFHardwareVideoEncoder, search function resetCompressionSession then change kVTCompressionPropertyKey_AllowFrameReordering to

if([[UIDevice currentDevice].systemVersion floatValue] >= 15.4f){ VTSessionSetProperty(compressionSession, kVTCompressionPropertyKey_AllowFrameReordering, kCFBooleanFalse); } else { VTSessionSetProperty(compressionSession, kVTCompressionPropertyKey_AllowFrameReordering, kCFBooleanTrue); }

It will work. Good luck

katsai81 commented 2 years ago

Thank you @noho501 this works!!!

powenpeng commented 2 years ago

@noho501 Thank you. It really works!!!

leeapted commented 2 years ago

It works. @noho501 you're awesome.

hongkong792 commented 2 years ago

您好,我已收到您的邮件,感谢您对我的支持!香港回复

vignesh2340 commented 2 years ago

@noho501 If I added this changes in LFHardwareVideoEncoder.m file then water mark view is not visible to viewers. Is there any solution for this ?

noho501 commented 2 years ago

@noho501 If I added this changes in LFHardwareVideoEncoder.m file then water mark view is not visible to viewers. Is there any solution for this ?

@vignesh2340 The watermark still working for me.

rajdegpeg commented 2 years ago

@noho501 For me it is happening again in 15.5 and 15.6

waseem-shah-ios commented 1 year ago

Any help here on this issue ?

hongkong792 commented 1 year ago

您好,我已收到您的邮件,感谢您对我的支持!香港回复

noho501 commented 1 year ago

@rajdegpeg could you show me the problem? I don't have this problem on ios 15.5 and 15.6

waseem-shah-ios commented 1 year ago

Working now thanks for help

tolew1 commented 1 year ago

This is great and it seems to still work.

hongkong792 commented 1 year ago

您好,我已收到您的邮件,感谢您对我的支持!香港回复