2

私は、decoder( HEVC)FFMPEGを Android のに統合するという新しいタスクを持っていますStagefright。これを行うには、まずコンポーネントを作成する必要があります。次にOMX、コーデックを に登録し、コンポーネントを に登録します。media_codecs.xmlOMXOMXCore

OMXビデオ デコーダー用のコンポーネントを作成するためのガイドや手順はありますか? 次に、このデコーダーは基本ストリーム (.binまたは.h265ファイル) のみを再生するため、ここにはコンテナー形式はありません。

OMXビデオコーデックのコンポーネントを作成する際に従うべきいくつかの手順またはガイドラインを誰かが提供できますか? どんな種類の指針も私にとって本当に役に立ちます。

前もって感謝します。

4

1 に答える 1

2

In general, you could follow the steps pointed in this question for integrating a decoder into OMX Core.

HEVC is not yet part of the OMX IL specification. Hence, you would have to introduce a new role like video_decoder.hevc for your component while registering in media_codecs.xml. Please do check that your OMX core can support this new role.

If you are trying to play only elementary streams, you can consider modifying the stagefright command line utility to read the elementary stream data and feed the decoder.

Another option is to modify the current recordVideo utility to read a frame data and create a decoder instead of the encoder. With these, I presume you should be able to play your decoder from command line.

EDIT: If you wish to build a new OMX component, I would recommend that you could refer to the Bellagio Component Writers Guide which should give good information on how to build an OMX component. This gives a pretty comprehensive guide to build a new component. Please do ensure that you are able to identify the dependencies with the Bellagio implementation and your core implementation.

Also, you could look at other public domain OMX implementations as here: http://androidxref.com/4.4.2_r1/xref/hardware/ti/omap4xxx/domx/ http://androidxref.com/4.4.2_r1/xref/hardware/qcom/media/mm-video-v4l2/vidc/

I feel Bellagio could work as a good starting reference if you haven't build an OMX component earlier. The sources for Bellagio are available on Sourceforge.

于 2014-02-20T15:15:59.283 に答える