openmax

Developing H264 hardware decoder Android - Stagefright or OpenMax IL?

拜拜、爱过 提交于 2019-12-04 23:56:59
问题 I am developing H264 H/W accelerated video decoder for android. So far, I've come around with some libraries MediaCodec , Stagefright , OpenMax IL , OpenMax AL and FFmpeg . After a bit research, I've found that - I found a great resource of using stagefright with FFmpeg, but I can not use FFmpeg as for its license, it is quite restrictive for distributed software. (Or possible to discard FFmpeg from this approach?) I can not use MediaCodec as its a Java API and I have to call it via the JNI

Decode video in Raspberry Pi without using OpenMAX?

十年热恋 提交于 2019-12-04 16:05:22
问题 I am looking for an example of decoding video on Raspberry Pi directly , without using OpenMAX. This explains the different layers of multimedia software: There is an additional layer which is not shown in here, the "MMAL" layer which is (I believe) a Broadcom wrapper around OpenMAX. (If not, it would be an OpenMAX alternative, sitting on top of the kernel driver) raspivid and raspistill for example are written using MMAL. I want an example of video decode where the input is raw H.264, and

Android: MPEG4Writer fails to start when using OMXCodec as MediaSource

家住魔仙堡 提交于 2019-12-04 14:54:41
I'm trying to encode a video from a byte array buffer and to do so I'm using MPEG4Writer API from native code. I have created my custom MediaSource class to provide the data and I'm wrapping it with OMXCodec to give it to MPEG4Writer : sp<MediaSource> mVideoEncoder = OMXCodec::Create(client.interface(), omxEncMeta, true, mVideoOutSource); mVideoEncoder->start(); mVideoOutSource is my custom MediaSource class, omxEncMeta is the following: int32_t colorFormat = OMX_COLOR_FormatYUV420SemiPlanar; int32_t width = 480; int32_t height = 360; int32_t frameRate = 24; int32_t bitRate = 500 * 1024; int32

QOMX_COLOR_FormatYUV420PackedSemiPlanar64x32Tile2m8ka converter

南楼画角 提交于 2019-12-04 05:29:24
问题 I need to handle YUV data from H/W decoding output on Android. Actually, I'm using Nexus4 and the decoding output format is QOMX_COLOR_FormatYUV420PackedSemiPlanar64x32Tile2m8ka type. But I need YUV420 Planar format data, it need to be converted. Could you share the converting function or any way? 来源: https://stackoverflow.com/questions/21797923/qomx-color-formatyuv420packedsemiplanar64x32tile2m8ka-converter

How to register a OMX core for adding a new decoder

佐手、 提交于 2019-12-04 01:52:50
问题 I'm referring to the post: Android: How to integrate a decoder to multimedia framework Following it i have registered my new decoder (Which is currently not supported by Android) in media_codecs.xml . The Step 2 of the above post requires me to perform OMX core registration . However, Since i'm really new to this topic, i'm not able to follow the step 2. I have the working code of the decoder in C and is already ported to android. So i request if anybody can provide information on: A step-by

Access camera via OpenMAX in Android

天大地大妈咪最大 提交于 2019-12-03 22:10:16
I currently try to figure out how to access the Camera via OpenMAX in Android 4.0. The documentation is not sufficient for me so I currently struggle with how I can retrieve the correct XADataSource for the following call. (*_engine)->CreateMediaRecorder(_engine, &_mediaRecorder, //pRecorder nullptr, //pAudioSrc XADataSource *, //pImageVideoSrc XADataSink *, //pDataSnk XAuint32, // numInterfaces const XAInterfaceID *, //pInterfaceIds const XAboolean *, //pInterfaceRequired ); And please spare me the just use Java -"answers". This is basically a definition of XADataSource, taken from http://www

Developing H264 hardware decoder Android - Stagefright or OpenMax IL?

我们两清 提交于 2019-12-03 15:47:32
I am developing H264 H/W accelerated video decoder for android. So far, I've come around with some libraries MediaCodec , Stagefright , OpenMax IL , OpenMax AL and FFmpeg . After a bit research, I've found that - I found a great resource of using stagefright with FFmpeg, but I can not use FFmpeg as for its license, it is quite restrictive for distributed software. (Or possible to discard FFmpeg from this approach?) I can not use MediaCodec as its a Java API and I have to call it via the JNI from C++ layer which is relatively slow and I am not allowed. I can not use OpenMax AL as it only

How MediaCodec finds the codec inside the framework in Android?

拜拜、爱过 提交于 2019-12-03 07:15:23
I am trying to understanding how MediaCodec is used for hardware decoding. My knowledge in android internal is very limited. Here is my findings: There is a xml file which represents the codec details in the android system . device/ti/omap3evm/media_codecs.xml for an example. Which means, that If we create a codec from the Java Application with Media Codec MediaCodec codec = MediaCodec.createDecoderByType(type); It should be finding out respective coder with the help of xml file. What am I doing? I am trying to figure our which part of the code is reading xml and find the codec based on given

QOMX_COLOR_FormatYUV420PackedSemiPlanar64x32Tile2m8ka converter

烂漫一生 提交于 2019-12-02 04:44:37
I need to handle YUV data from H/W decoding output on Android. Actually, I'm using Nexus4 and the decoding output format is QOMX_COLOR_FormatYUV420PackedSemiPlanar64x32Tile2m8ka type. But I need YUV420 Planar format data, it need to be converted. Could you share the converting function or any way? 来源: https://stackoverflow.com/questions/21797923/qomx-color-formatyuv420packedsemiplanar64x32tile2m8ka-converter

How to register a OMX core for adding a new decoder

白昼怎懂夜的黑 提交于 2019-12-01 10:47:59
I'm referring to the post: Android: How to integrate a decoder to multimedia framework Following it i have registered my new decoder (Which is currently not supported by Android) in media_codecs.xml . The Step 2 of the above post requires me to perform OMX core registration . However, Since i'm really new to this topic, i'm not able to follow the step 2. I have the working code of the decoder in C and is already ported to android. So i request if anybody can provide information on: A step-by-step guide to preform OMX code registration for a decoder that is currently not supported by android.