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

Workaround android screen recorder 3 minutes limit #796

Open
Nikitae57 opened this issue May 18, 2023 · 7 comments
Open

Workaround android screen recorder 3 minutes limit #796

Nikitae57 opened this issue May 18, 2023 · 7 comments
Labels
enhancement New feature or request

Comments

@Nikitae57
Copy link

Is your feature request related to a problem? Please describe.
Google increased video limit up to 30 minutes starting from android 14, but all older versions have the 3 minutes limit which makes us to capture a screenshots GIF with a low framerate and quality on most of the tests

Describe the solution you'd like
Capture a new video after the screen recorder exits and glue them all together when test ends

@Nikitae57 Nikitae57 added the enhancement New feature or request label May 18, 2023
@Malinskiy
Copy link
Member

Gluing videos together is a huge undertaking that requires supporting codecs that Android devices produce. For kotlin ecosystem this hard to achieve. I understand why, but maybe just capturing more than one video is better?

@Nikitae57
Copy link
Author

@Malinskiy sure, why not? Better than nothing

@Malinskiy
Copy link
Member

Can you take a stab at this and create a PR? If so, do you need any guidance?

@Nikitae57
Copy link
Author

Nikitae57 commented May 18, 2023

I'll take a look and contact you if I got any questions

@mikepenz
Copy link
Contributor

Android 14 may bring some changes to this: https://twitter.com/MishaalRahman/status/1694872392529522739?s=20

@tokou
Copy link

tokou commented Oct 31, 2023

Here's an interesting approach for this issue https://blog.mobile.dev/fixing-androids-3-minute-screen-recording-limitation-4839abc74aee

@Malinskiy
Copy link
Member

While this may work for hacking purposes, modifying the binaries bundled with OS should be done by patches to the OS's source code, not runtime. For older devices we can present multiple files in the future instead of changing the limit.

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

No branches or pull requests

4 participants