Allow screen recording on android for tests
Categories
(Testing :: General, enhancement)
Tracking
(Not tracked)
People
(Reporter: jcristau, Unassigned)
References
Details
Attachments
(1 file)
similar to bug 1892254 but for android.
Reporter | ||
Comment 1•2 months ago
|
||
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
.
Comment 2•2 months ago
|
||
(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
Reporter | ||
Comment 3•2 months ago
|
||
(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.
Reporter | ||
Comment 4•1 month ago
|
||
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.
Description
•