Android HW+ decoding problem
lucky chou
luckychsj at gmail.com
Tue Jun 13 02:39:54 UTC 2017
Maybe you have to build the SDK yourself using cerbero.
For some reasons, androidmedia has chosen to block non-google third-party
vendors's HW decoder.
As noted in the comment,
gst-plugins-bad/sys/androidmedia/gstamc.c
static gboolean
scan_codecs (GstPlugin * plugin)
{
...
/* FIXME: Non-Google codecs usually just don't work and hang forever
* or crash when not used from a process that started the Java
* VM via the non-public AndroidRuntime class. Can we somehow
* initialize all this?
*/
if (gst_amc_jni_is_vm_started () &&
!g_str_has_prefix (name_str, "OMX.google.")) {
GST_INFO ("Skipping non-Google codec '%s' in standalone mode",
name_str);
valid_codec = FALSE;
goto next_codec;
}
...
}
Just annotate this piece of code, and then debug your HW decoder to check
if it works.
Good luck. --)
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Android-HW-decoding-problem-tp4683293p4683320.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list