Skip to content
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

IllegalStateException MediaCodec configure() #52

Open
Satsrag opened this issue Jul 27, 2017 · 2 comments
Open

IllegalStateException MediaCodec configure() #52

Satsrag opened this issue Jul 27, 2017 · 2 comments

Comments

@Satsrag
Copy link

Satsrag commented Jul 27, 2017

07-27 12:40:17.928 22970-23128/com.zuga.smallvideo E/ACodec: [OMX.qcom.video.decoder.avc] configureCodec returning error -1010
07-27 12:40:17.928 22970-23127/com.zuga.smallvideo E/MediaCodec: Codec reported an error. (omx error 0x80001001, internalError -1010)
07-27 12:40:18.008 22970-23114/com.zuga.smallvideo E/MediaTranscoder: Fatal error while transcoding, this might be invalid format or bug in engine or Android.
                                                                      java.lang.IllegalStateException
                                                                          at android.media.MediaCodec.native_configure(Native Method)
                                                                          at android.media.MediaCodec.configure(MediaCodec.java:262)
                                                                          at net.ypresto.androidtranscoder.engine.VideoTrackTranscoder.setup(VideoTrackTranscoder.java:89)
                                                                          at net.ypresto.androidtranscoder.engine.MediaTranscoderEngine.setupTrackTranscoders(MediaTranscoderEngine.java:172)
                                                                          at net.ypresto.androidtranscoder.engine.MediaTranscoderEngine.transcodeVideo(MediaTranscoderEngine.java:96)
                                                                          at net.ypresto.androidtranscoder.MediaTranscoder$4.call(MediaTranscoder.java:184)
                                                                          at net.ypresto.androidtranscoder.MediaTranscoder$4.call(MediaTranscoder.java:166)
                                                                          at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                          at java.lang.Thread.run(Thread.java:841)
@Satsrag Satsrag changed the title IllegalStateException MediaCodec onfigure() IllegalStateException MediaCodec configure() Jul 27, 2017
@Satsrag
Copy link
Author

Satsrag commented Jul 27, 2017

I found a regular pattern. Video size 16:9, went wrong and 4:3 is ok while decode video

@b005t3r
Copy link

b005t3r commented Apr 3, 2018

@Saqrag so, did you find out what the problem was? Were you able to fix it?

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

No branches or pull requests

2 participants