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

ERROR: The hardware encoder is not able to encode at the given definition. #1087

Closed
Assino-tl opened this issue Jan 15, 2020 · 7 comments
Closed

Comments

@Assino-tl
Copy link

I keep getting the following error every time I try to execute scrcpy:

[server] ERROR: The hardware encoder is not able to encode at the given definition.
[server] ERROR: Try with a lower definition:
[server] ERROR: scrcpy -m 1024
Exit due to uncaughtException in main thread:
INFO: Initial texture: 1080x2336
WARN: Device disconnected
WARN: Could not terminate server
Press any key to continue...

After pressing enter, the entire thing closes.
Any help will be appreciated.
Thanks.

@rom1v
Copy link
Collaborator

rom1v commented Jan 15, 2020

@Assino-tl
Copy link
Author

Thank you but where exactly i should use the code (scrcpy -m 1024) just after "Press any key to continue..." ??

@rom1v
Copy link
Collaborator

rom1v commented Jan 15, 2020

See #385 (comment)

@Assino-tl
Copy link
Author

Thank you, problem solved.

@artemisssssss
Copy link

#1087
Annotation 2020-07-25 021301
Annotation 2020-07-25 015906

so first of all extract this zip file and copy that folder into c drive of windows , then open a notepad and type like this image
Annotation 2020-07-25 030044

then save that notepad in desktop as "SCRCPY.bat"
in that notepad values can be changed accordingly to fix the issue change the values "1920" and "2m" SHOWN IN THE NOTE PAD SSCREENSHOT ,1920 IS THE SCREEN RESOLUTION WHICH YOU CAN CHANGE INTO [1024,720,480 ETC...] ,2M IS THE BIT RATE WHICH CAN BE CHANGED INTO [8,7,6,5,4,3,2,1] . SO BOTH OF THIS VALUES KEEP LOWERING THEN TEST , IF SHOWN ERROR , THEN LOWER THE VALUE AND SAVE AND TEST ... SO AS SOON AS THE VALUE MATCH YOUR DEVICE CAPABILITY THE PROGRAM WILL WORK ..... [[[ TO RUN THE SCRCPY.BAT FILE , DOUBLE CLICK THEN IT'LL SHOW " PRESS ANY KEY TO CONTINUE THEN PRESS "ENTER" THEN IT'LL AUTOMATICALLY START THE APP BY THE RESOLUTION YOU ENTERED .
SO BOYS ,WISH YOU ALL GOOD LUCK.... I FIXED YOUR NO BATCH FILE TO AUTMATE OPENING ISSUE AND EXPLAINED IT SIMPLE #GIRLPOWER# .HEHEHEHEHE . A BIG THANKS FOR THE DEVELOPER OF THIS APP , IT WAS A LIFESAVER to me, so that's why i took time to contribute to community .

@NikolaVIP
Copy link

NikolaVIP commented Nov 26, 2020

@Artemissssssss thank you very very much !
Snipaste_2020-11-26_19-07-25

I also ran into this problem
按照上面这位高手的指示,在 scrcpy 的安装文件夹中创建了bat文件,就解决了
image

@echo OFF
cd \scrcpy-win64-v1.16
PAUSE
scrcpy -m 1920 -b 2M

@artemisssssss
Copy link

@NikolaVIP glad to know it helped✨✨✨ ,🥳🥳🥳 .😄😄😄

@rom1v rom1v closed this as completed Oct 27, 2021
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

5 participants
@rom1v @Assino-tl @NikolaVIP @artemisssssss and others