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

can you invent custom frame cap for less usage of mobile #1108

Closed
StylishBoyGaming opened this issue Jan 22, 2020 · 7 comments
Closed

can you invent custom frame cap for less usage of mobile #1108

StylishBoyGaming opened this issue Jan 22, 2020 · 7 comments
Labels

Comments

@StylishBoyGaming
Copy link

No description provided.

@rom1v
Copy link
Collaborator

rom1v commented Jan 22, 2020

custom frame cap

@rom1v rom1v added the question label Jan 22, 2020
@StylishBoyGaming
Copy link
Author

example: i want use device encoder to record only 30 frame

@rom1v
Copy link
Collaborator

rom1v commented Jan 22, 2020

30 frames then stop? Or 30 frames per second? (--max-fps 30)

@StylishBoyGaming
Copy link
Author

30 frame per second ---max-fps 30 ..is this available in scrcpy ???

@rom1v
Copy link
Collaborator

rom1v commented Jan 24, 2020

Yes, #488.

@rom1v rom1v closed this as completed Jan 24, 2020
@StylishBoyGaming
Copy link
Author

StylishBoyGaming commented Jan 24, 2020

this is showing
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:231)
at java.io.FileInputStream.(FileInputStream.java:165)
at java.io.FileInputStream.(FileInputStream.java:112)
at java.io.FileReader.(FileReader.java:58)
at miui.content.res.ThemeCompatibilityLoader.getVersion(ThemeCompatibilityLoader.java:108)
at miui.content.res.ThemeCompatibilityLoader.getConfigDocumentTree(ThemeCompatibilityLoader.java:126)
at miui.content.res.ThemeCompatibilityLoader.loadConfig(ThemeCompatibilityLoader.java:59)
at miui.content.res.ThemeCompatibility.(ThemeCompatibility.java:31)
at miui.content.res.ThemeCompatibility.isThemeEnabled(ThemeCompatibility.java:111)
at android.content.res.MiuiResourcesImpl.(MiuiResourcesImpl.java:41)
at android.content.res.Resources.(Resources.java:267)
at android.content.res.MiuiResources.(MiuiResources.java:49)
at android.content.res.Resources.getSystem(Resources.java:190)
at android.app.LoadedApk.(LoadedApk.java:211)
at android.app.ContextImpl.createSystemContext(ContextImpl.java:2332)
at android.app.ActivityThread.getSystemContext(ActivityThread.java:2199)
at java.lang.reflect.Method.invoke(Native Method)
at com.genymobile.scrcpy.Workarounds.fillAppInfo(Workarounds.java:66)
at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:56)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:34)
at com.genymobile.scrcpy.Server.main(Server.java:163)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:388)
[server] WARN: Max FPS is only supported since Android 10, the option has been ignored

@rom1v
Copy link
Collaborator

rom1v commented Jan 24, 2020

In scrcpy 12.1, it works only for Android 10 devices.
In dev branch (not released yet), it also works on earlier devices.

#488 (comment)

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

No branches or pull requests

2 participants