Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera is glitch on iOS 15.4 #372

Open
noho501 opened this issue Mar 23, 2022 · 16 comments
Open

Camera is glitch on iOS 15.4 #372

noho501 opened this issue Mar 23, 2022 · 16 comments

Comments

@noho501
Copy link

noho501 commented Mar 23, 2022

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
Copy link

hongkong792 commented Mar 23, 2022 via email

@katsai81
Copy link

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
Copy link
Author

noho501 commented Mar 28, 2022

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
Copy link

Thank you @noho501 this works!!!

@powenpeng
Copy link

@noho501 Thank you. It really works!!!

@leeapted
Copy link

It works. @noho501 you're awesome.

@hongkong792
Copy link

hongkong792 commented Apr 28, 2022 via email

@vignesh2340
Copy link

@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
Copy link
Author

noho501 commented May 31, 2022

@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
Copy link

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

@waseem-shah-ios
Copy link

Any help here on this issue ?

@hongkong792
Copy link

hongkong792 commented Oct 5, 2022 via email

@noho501
Copy link
Author

noho501 commented Oct 5, 2022

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

@waseem-shah-ios
Copy link

Working now
thanks for help

@tolew1
Copy link

tolew1 commented Jun 6, 2023

This is great and it seems to still work.

@hongkong792
Copy link

hongkong792 commented Jun 6, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants