Вопрос

In android-NDK-r9c, Google provide a sample 'native-media'. In this sample, we can use OMXAL in the C level to do the MeidaPlayer job.

I am wondering if we can do media encoding this way? I tried to write the corresponding functions, but I failed, and according to the errors report, there is no such function defined in the local libs.

Does anyone know anything about this? Thank you!

Это было полезно?

Решение 2

Actually, android NDK doesn't support the API to omx encode now, although it provides the omx decode, one can find the google sample in the NDK sample 'jni-media'. If we want to use the omx encode, we must have the code provided by the hardware company. Here is a helpful link

Другие советы

NDK r10 comes with native lib to work with MediaCodec.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top