Comments (4)
It is possible for an app to record itself using the Presentation API to render on a virtual display. You can only record what the app draws, however, not the parts the system draws (like the status bar or nav bar).
Some links in the answer to http://stackoverflow.com/questions/26941104/screen-capture-of-external-display-on-android/ may be useful if you want to go that route. I've updated the bigflake page.
from grafika.
HI Andy,
Thanks for the input. This worked but after playing around
with the code, I figured out that the H.264 HW codec even on Samsung Galaxy
S5 only encode in High profile level 1.3. With VP8 codec(S5 has HW encoder)
FPS goes down to 10 even if target bit rate is 1Mbps.
I wanted to display the captured data on chromecast in real time but I am
guessing it's not possible for now with current capabilities of HW
encoders.
Thanks,
Rishi
On Sun, Nov 30, 2014 at 8:59 AM, Andy McFadden [email protected]
wrote:
It is possible for an app to record itself using the Presentation API to
render on a virtual display. You can only record what the app draws,
however, not the parts the system draws (like the status bar or nav bar).Some links in the answer to
http://stackoverflow.com/questions/26941104/screen-capture-of-external-display-on-android/
may be useful if you want to go that route. I've updated the bigflake page.—
Reply to this email directly or view it on GitHub
#14 (comment).
from grafika.
Can anyone tell how to exactly use the Presentation API to record the app activity?
I have created a VirtualDisplay which takes a Surface from a SurfaceView.
I understand that I need to use the Presentation API to render on this VirtualDisplay. However I am not really getting it. Any tips?
from grafika.
@omerjerk - I added a Screen recording activity sample to show how to use it.
from grafika.
Related Issues (20)
- Extend encode/decode test example with asynchronous API
- Sound not available in Video using CameraCaptureActivity HOT 1
- how can i remove shape HOT 1
- how can i add shapes in texture view using open gl
- glReadPixels returns a blank image on disabling blend
- Decoding four video streams simultaneous on Google Pixel 2 phone
- seconds of video in Continuous Capture mode becomes double after keeping it on for a while. HOT 3
- If you want to record mp4 with sound, use this one https://github.com/moo611/OpenCamera
- Memory leak of Texture2dProgram
- Continuous capture bug(Android5.1.1) HOT 1
- Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x38 in tid 9379, pid 9379
- Some OpenGL stuff doesn't work on some devices: eglMakeCurrent failed and glDrawArrays: glError 0x505 HOT 4
- How to show front and back camera simultaneously? HOT 5
- Can we play scene.json in grafika?
- Test HOT 1
- Doesn't build on Flamingo and Giraffe HOT 2
- fun fact HOT 1
- Camera2 Pass Images from ImageReader to MediaRecorder HOT 2
- Camera2 pipeline; synchronously get PRIVATE/YUV/RGB Image data from a Frame HOT 4
- Website
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafika.