Skip to content

Android screen record example#1203

Open
zhuker wants to merge 2 commits intoSaschaWillems:masterfrom
zhuker:screenrecord
Open

Android screen record example#1203
zhuker wants to merge 2 commits intoSaschaWillems:masterfrom
zhuker:screenrecord

Conversation

@zhuker
Copy link

@zhuker zhuker commented May 6, 2025

This example demonstrates video screen recording on Android by using AMediaCodec API

0 Create codec surface AMediaCodec_createInputSurface
1 Create Vulkan surface from codec surface
2 Blit images from display surface to codec surface

How to retrieve and play the encoded file?

adb shell run-as de.saschawillems.vulkanScreenRecord cat video.h264 >video.h264
ffplay video.h264

or on windows

adb exec-out run-as de.saschawillems.vulkanScreenRecord cat video.h264 > video.h264
ffplay video.h264

@zhuker zhuker changed the title screen record example Android screen record example May 6, 2025
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

Successfully merging this pull request may close these issues.

1 participant