Git Product home page Git Product logo

Comments (3)

fadden avatar fadden commented on May 5, 2024

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.

RazorPT avatar RazorPT commented on May 5, 2024

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.

fadden avatar fadden commented on May 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.