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

Video in livestream gets blinking Only in large Devices #357

Closed chandrikadevis closed 3 years ago

chandrikadevis commented 3 years ago

Short description Video get blinks in live stream only on iPhone large device.

Environment

Operating system and version: iOS Version 10.15.7 Xcode12.2 Swift 4.2 iPhone 11 Version 14.3 Steps to reproduce

Open app in iPhone 11 device Publish streaming Watch the video in other android or iPhone device Video get blinks. This issue happened on all large iPhone devices. Expected behavior There should be smooth play without any blinking.

Actual behavior Video get blinks in when record in large devices.

Reference Video: http://13.56.209.242/WebRTCAppEE/streams/Stream_DHPAvSzeZGRI.mp4

bbkelleroglu commented 3 years ago

Hey,

In the LFLiveSession object there are two parameters which are beautyLevel, beautyFace. if you set them 0.0 and false, you won't see any blinking problem.

Here is the sample code:

var session: LFLiveSession = { let audioConfiguration = LFLiveAudioConfiguration.defaultConfiguration(for: LFLiveAudioQuality.high) let videoConfiguration = LFLiveVideoConfiguration.defaultConfiguration(for: LFLiveVideoQuality.high2) let session = LFLiveSession(audioConfiguration: audioConfiguration, videoConfiguration: videoConfiguration) session?.beautyFace = false session?.beautyLevel = 0.0 return session! }()

chandrikadevis commented 3 years ago

Hi @bbkelleroglu , Thanks for your support, it's working for me.

haihoang88 commented 3 years ago

Hi @bbkelleroglu , Can this issue be solved without turning OFF the beautyFace? We really want to use the beautyFace feature.