Open Bug 1918620 Opened 1 year ago Updated 8 months ago

Allow screen recording on android for tests

Categories

(Testing :: General, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: jcristau, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No longer depends on: 1918602

This doesn't actually work right now, because screenrecord in our images
doesn't have
https://android.googlesource.com/platform/frameworks/av/+/b88917cc3dcdf1cb58862729e7f7096e6476a55e
and so is limited to 3 minutes. So we'd have to either upgrade it somehow, or
record 3 minutes at a time then merge the files, e.g. adb shell "while true; do screenrecord --output-format=h264 -; done" | ffmpeg -i - screencast.mp4.

(In reply to Julien Cristau [:jcristau] from comment #1)

Created attachment 9425477 [details]
Bug 1918620 - android video recording (WIP)

This doesn't actually work right now, because screenrecord in our images
doesn't have
https://android.googlesource.com/platform/frameworks/av/+/b88917cc3dcdf1cb58862729e7f7096e6476a55e
and so is limited to 3 minutes. So we'd have to either upgrade it somehow, or
record 3 minutes at a time then merge the files, e.g. adb shell "while true; do screenrecord --output-format=h264 -; done" | ffmpeg -i - screencast.mp4.

can we build it and push to into the image maybe? rather than having to update the android version

(In reply to :gerard-majax from comment #2)

can we build it and push to into the image maybe? rather than having to update the android version

Maybe, but I don't know how to do that.

As an update, this is working(ish) when using an android 15 image on the emulator. However either the screenrecord or the adb process gets killed after a few minutes, and I haven't yet figured out why.

Depends on: 1969143
Blocks: 2005175
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: