Comments (3)
The inability to generate content, which is expected on emulators but not on physical devices, does not prevent all of the app from working. The activities which rely on the generated content, such as "double decode", will fail unless you copy your own video clips into the app data directory, but things like "show + capture camera" should work fine.
My guess would be a cyanogen bug. Generally speaking, the stuff Grafika does is also exercised by CTS tests, so any devices that pass CTS should be able to run Grafika.
"Failed to stop the muxer" can happen when you tell the muxer to stop without ever having sent it any data. (It doesn't think it started, so it doesn't think it needs to stop, but instead of ignoring the redundant call it throws an exception at you.) I'm guessing the code that feeds Surface input to MediaCodec is failing, hence the BufferQueueProducer error, but the muxer error is what is getting reported.
from grafika.
Hum just tried "show + capture camera" and it also fails with same timestamp problem, i am developing screen capture app and tried several ways to record the screen tried the code from https://github.com/yrom/ScreenRecorder and also gave me the timestamp problems i thought it was a problem with cynogen but to my surprise "AZ Recorder" and "Lollipop Screen Recorder" run fine on my device.
After so many hours/days and going into frustration i reversed enginered AZ Recorder (not cool i know) just to see what kind of code he was using, it was not easy with proguard but i managed to identify that he was using your code from http://bigflake.com/mediacodec/CameraToMpegTest.java.txt adapted to capture screen.
So i also took your example and made the changes he did for what i could see and again i got the timestamp error how is that even possible? The only difference i saw was that his app seems to record with a resolution of 1228x720 a weird resolution but if i use that resolution in my app it instantly crashs on MediaEnconder config.
Lollipop Screen Recorder can also record my screen without problem using a resolution of 480x720 which i also tried to no avail. I am so lost right now.
from grafika.
I'm afraid I don't have any insights into this. I've never used Cyanogen, and I'm not in a position to investigate this further (I left Google about 10 months back).
from grafika.
Related Issues (20)
- 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
- OpenGL + MediaRecorder.VideoEncoder.AV1 - a freezing video (like very low fps)
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.