How to Fix Lag in SCRCPY Screen Mirroring

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi friends this is Tech expert Neil and you are watching hall.com in today's video I'll show you how you can fix SC cpy lag issue I fa this issue quite frequently and I've researched how to fix it in my Fire TV stick so without wasting much time let's get started so the first thing that you should check when you're facing lags while using SC cpy is that you have got the latest version of the software so we'll first go to the GitHub page I'll provide you the links down in the video description and over here you can see this is the GitHub page and the latest release as of today while I recording this video is version 2.3.1 you can see in the releases section it is over here and it was released on December 2 2023 simply go on this and we'll download the latest version depending on your operating system if you're using a Windows system with the 64 bit which normally majority of the people use then you you can download this sccp wi64 2.3.1 dzip over here simply download the zip and when you're updating it make sure you do not override the existing files you should always create a new folder while updating it so this is the Z file that I've downloaded and extracted so these files should be there in the folder so that it can run so once you have confirmed that your version of xscp is the latest version the next thing to check is the system requirements make sure that you satisfy all the major system requirements you can find the system requirements on the GitHub page we'll again go to the GitHub page and you can see in we'll go to the homepage SC cpy and if you scroll down oh here you will see the system requirements you can see for audio forwarding it requires minimum Android 11 and the minimum Android version is Android 5 you can see over here prequisites Android 5 is the minimum version required for C cpy to run and audio for recing works from Android 11 onwards and you have to ensure that the device has got USB debugging enabled and some of the devices also need some additional options of USB debuging like USB debugging secure settings this option I found in the real me OS in some of the older versions of the realme devices this particular feature was there which has to be enabled separately in addition to the USB debugging option so if all these things are fine you can see camera mirroring only works after Android 12 if your device meets all these device specifications then next thing to look out for is the connection quality now you can work with SC CPI via Wi-Fi and through USB connectivity I have used SC CPI in both the ways if you have got a good Wi-Fi connectivity on both the devices that is from the sending side and the receiving side if both the devices have got good Wi-Fi reception and they are not interfering with each other then even in Wi-Fi connectivity I found it the CPA gives good lag free experience you just have to make sure your Wi-Fi uh network is good there should be no interference between the two signals I prefer that one of the device which is either in the receiving or on the sending end is connected through Lan that way the chances of interference are quite low if you do not have a good Wi-Fi connectivity on both the devices then the only way to sure lack free connection is through using a USB data cable make sure that the USB data cable that you are using is of good quality and uh there's no loose contacts between the two devices sometimes it happens that the USB cable gets disconnected frequently and that can also be the reason for your CC screen lag so good quality connection good quality USB cable and no loose connections if if you have checked all these Hardware requirements then the next step that I'll be talking about will be software fixes and using this fixer you should be able to get your SCS cpy lag free connection the first software fix to fix the lag in cpy is using two flags the one flag allows the device to stay awake it prevents this device to go to sleep and the other flag turns the screen off and so this even if the screen will be off we can get the screen mirroring on our device to do these two things we simply have to pass these two flag so we'll open the command prompt by typing CMD and make sure that you're in the same folder in which your cpy is installed okay I'll be accessing My Fire TV stick through Wi-Fi so to do that we'll type the command SCS cpy and then we need to pass the IP address in my case it is 192.168.1 7 this is the local IP address of the Fire TV sck and then we have to pass the two flags and that is S and W the S flag turns the screen off for the uh device that is in my case Fire TV stick and the W flag makes sure that the device keeps awake so this is decreases the processing power required on the device so the cause of the lag is because of the multiple screens that the device has to show that is while mirroring also it has to show the screen as well as on the device so this will give the some amount of performance performance boost for the device that might prevent your lag that you might be facing in your sccp recording so we'll hit enter and we we'll see so you can see we'll say it's correcting and and you can see in my case it's lagging quite badly so we'll see how we can fix this I'll close this up okay so if this trick did not work then we'll add one more flag first we'll check how much fps we are getting so to record the FPS while the screen is being mirrored we just have to pass print FPS this will give us a continuous counter of the FPS that is being shown over here you can see only 35 FPS is being shown and it FPS changes when the device screen gets updated but 5 FPS is very very low that's why we we'll get a lot of lag so let's see how to fix this now we know exactly how much lag we have facing so let's fix this up one more way of fixing it is using the flag no audio if your screen mirroring does not require audio transmission at the same time so in that case you can disable the audio transmission and that might help you fix your screen lag issue if if the cause is because of the audio Transmission in my case I want the audio so this flag I'll not be trying but in case if your use case does not require the audio to be transmitted you just require the screen screen mirror to be recorded without the audio then they can try this flag and check whether it fixes your problem so basically you have to type no audio by the way all the commands all the flags I'll be providing down in the video description so you can easily copy paste it okay so the way I fixed this problem in my fire TV6 and you can also fix it on your device was using a particular video encoder so what happens is that this your Android device from which you'll be mirroring had got different encoders for both audio and video so there are multiple encoders available in each device and SC cpy normally selects the best encoder that is the most efficient one but sometimes it gets the wrong one and when that happen the screen starts to lag if that is your case we'll first list down all the encoders that are available on your particular Android device so to do that we'll simply type the command list encoders and we'll hit enter and you can see over here there are three video encoders over here it is mentioned and there are two audio encoders in my case what I found was if I use the video Codec h64 video Codec with a encoder of omx Google h64 encoder this encoder the this fix the problem the lag and audio codec you can use any of these that is not causing the problem but even if you don't you you might not need to specify the audio code first try checking the video Codec so check whether this video Codec Works simply you have to copy this command over here like this if you want to check whether this video codc works simply copy this hit in select this and hit enter and then when you are trying to stream from this device just paste this command oops I'm double pasted it so by pasting this command it will select the first video encoder which is not the correct one in my case I found that selecting the Google h64 encoder in Fire TV sck third gen did the trick so we do this and we'll also enable the FPS so that we can see whether it's you can see now it's going above 9 maximum was above 9 10 you can see over 10 also it has gone so it already is much 11 you can see where ear it was fixed at maximum 5 now it's going 10 11 12 if you want to increase further then the next STP will be to reduce the quality of the stream because we are using Wi-Fi connectivity while connecting SC CPI wirelessly and without reducing the resolution and the bit rate we might not get a buty smooth performance while using SC CPI so the next thing to tweak is the bit rate and the resolution to do that we have got two parameters for the maximum screen resolution I'll pass M and you can type them maximum screen resolution so so you pass in 1024 depending on the default aspect ratio in my case it is 16 is to 9 so it will be 1024 by 720 and the bit rate is controlled by bit and I'll make it 8 Bits 8 MVPs that is MVPs 8 million bits per second so the default is 16 so I have reduced it to half by doing that you will find that when the screen gets updated there's some pixelation if the large amount of screen gets updated then there's more pixelation so we'll be reducing the quality but at the same time that will increase our FPS so let's see you can see the screen size has reduced quite a bit we go to full screen and it's already working much much smoother but we have reduced the quality of course and we'll check the FPS and you can see the FPS is again going till maximum is 16 when 20 we have 24 is also there so that is the maximum FPS that we can get also one more flag that you can pass is Max FPS and I usually pass it to 25 because normally 25 FPS is the good enough rate for normal screen mirroring and this will force the fps to never exceed this value so this also will improve your performance of course if the video gets updated quite frequently then it will reduce the quality so this also has improved the FPS reporting you can see now it's constantly above 10 of course when the screen stops updating then the FPS will reduce but it's quite good now compared to from where we started I hope friends you like this video if yes smack that like button if you're still facing the problem in SC CPA or you're having some other issue with ccpi you can post that down in the comment section and I'll try to help you out and if this video solved your problem make sure to share this video with your friends and family whom you think could benefit from it thanks for watching friends this is Neil signing off bye-bye thanks for watching
Info
Channel: How I Solve
Views: 1,392
Rating: undefined out of 5
Keywords: howisolve, How To, Troubleshoot, Fix, Error, SCRCPY, ScreenMirroring, TechFix, LagFix, ScreenMirroringIssues, TechTutorial, HowTo, SoftwareFix, ConnectionQuality, VideoEncoder, BitRate, Resolution, TechTips, TechSolutions, TechTroubleshooting, AndroidScreenMirroring, WirelessScreenMirroring, USBConnectivity, TechEnthusiast, TechHelp
Id: 8We7NGm3F-4
Channel Id: undefined
Length: 12min 4sec (724 seconds)
Published: Thu Feb 01 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.