View Full Version : Metadata extraction using openMAX AL

06-16-2014, 02:59 AM
I have a requirement where I need to extract metadata from an MPEG TS File in Android.I have found OpenMAX AL 1.0.1 Api provides features for extracting the metadata content in the stream.

According to the OpenMAX AL 1.0.1 specification,we can extract the metadata by creating a mediaplayer object and metadataextractor object

a)I created mediaplayer object using CreateMediaPlayer method in XAEngineItf interface.In mediaplayer object I implemented XAMetaDataExtractionItf interface.Since it is a dynamic interface for mediaplayer object.I have followed the way specified in the OpenMAX AL 1.0.1 specification to implement the dynamic interface for a particular object

But im getting error like:
W/libOpenSLES(26757): Leaving Engine::CreateMediaPlayer (SL_RESULT_FEATURE_UNSUPPORTED)

b)I created the metadata extractor object using CreateMetadataExtractor method in XAEngineItf interface.I implemented XAMetaDataExtractionItf Interface.Since it is a implicit interface so there is no need of any special implementaion for this interface in metadata extractor object.

But im getting error like:
W/libOpenSLES(26757): Leaving Engine::CreateMetadataExtractor (SL_RESULT_FEATURE_UNSUPPORTED)

I dont know why i'm getting these errors ,whether my implementation is wrong or i'm missing something.Can someone give me a hint, what i'm maybe doing wrong here?

So Please let me know any sample/example code or idea for the usage of these methods and Dynamic interface implementation to extract metadata from MPEG TS File in Android.
Thanks in advance.