mediacodec decoder: AMediaCodec.configure failed

This forum is about all development around libVLC.
dvblogic
New Cone
New Cone
Posts: 2
Joined: 28 Mar 2016 16:27

mediacodec decoder: AMediaCodec.configure failed

Postby dvblogic » 28 Mar 2016 16:36

I am writing a libvlc-based player for Android platform. The player is tested on Nexus Player, running Android 6.0.1.
libvlc version is 3.0.0-1.9.6, full hardware acceleration is turned on.

The issue is that when playback is switch between streams with SD mpeg-2 video and HD x264 video, video decoder stops working.
The log file reports:

Code: Select all

03-28 15:59:16.542 169-527/? E/BufferQueueProducer﹕ [SurfaceView] connect(P): already connected (cur=2 req=3) 03-28 15:59:16.542 2668-2824/com.dvblogic.dvblinklive I/MediaCodec﹕ native window already connected. Assuming no change of surface 03-28 15:59:16.542 2668-2818/com.dvblogic.dvblinklive E/MediaCodec﹕ configure failed with err 0xffffffea, resetting... ..... 03-28 15:59:16.548 2668-2818/com.dvblogic.dvblinklive E/NdkMediaCodec﹕ sf error code: -22 03-28 15:59:16.549 2668-2818/com.dvblogic.dvblinklive E/VLC﹕ [f7bdf9a4] mediacodec decoder: AMediaCodec.configure failed
If hardware acceleration is set to video or turned off, video decoder continues to work properly after stream switch (albeit with performance related artifacts).
The correct behavior can be restored by exiting and re-entering application. Deleting and re-initializing libvlc/mediaplayer does not help.

Any pointers or help is highly welcome and much appreciated.

Thank you.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: mediacodec decoder: AMediaCodec.configure failed

Postby Jean-Baptiste Kempf » 28 Jun 2016 09:56

You need to fix that yourself, unfortunately.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

SaundersB
Blank Cone
Blank Cone
Posts: 16
Joined: 30 Dec 2016 15:44

Re: mediacodec decoder: AMediaCodec.configure failed

Postby SaundersB » 06 Mar 2017 15:34

What I think he means is that you need to manually reinitialize the libVLC instance yourself along with the other things you specified.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests