New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to stop the muxer (timestamps problem?) #23
Comments
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. |
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. |
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). |
I have been going for 2 days and cant run your app it fails with Unable to generate content dialog and this shows on the logcat. My device is a samsung tablet running cynogenmod 12.1 (Lollipop 5.1)
Any ideas?
The text was updated successfully, but these errors were encountered: