[Bug 740101] amcaudiodec error: 'first buffer should have OMX_BUFFERFLAG_CODECCONFIG set'

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Feb 13 03:21:11 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=740101

shakin at outlook.com <shakin at outlook.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shakin at outlook.com

--- Comment #17 from shakin at outlook.com <shakin at outlook.com> ---
Met the same problem with 1.11, and led me here.
-----
01-01 08:30:47.003 12045 12077 D [gstplayer.c:665] <gst-player> Set
uri=http://10.9.44.131/1080p-hls/a012c3d1-1d3c-4b79-bdd2-0c6dd16aba3b/index.m3u8
...
01-01 08:30:48.902 12045 12292 D [gstamcaudiodec.c:834] <amcaudiodec-nonpublic>
Setting new caps audio/mpeg, framed=(boolean)true, mpegversion=(int)4,
level=(string)4, base-profile=(string)lc, profile=(string)lc, rate=(int)48000,
channels=(int)6, stream-format=(string)adts
...
01-01 08:30:48.966 12045 12299 E SoftAAC2: first buffer should have
OMX_BUFFERFLAG_CODECCONFIG set
01-01 08:30:48.966 12045 12299 W SoftAAC2: aacDecoder_ConfigRaw decoderErr =
0x2003
...
01-01 08:30:48.967 12045 12298 E ACodec  : [OMX.google.aac.decoder]
ERROR(0x80001001)
01-01 08:30:48.967 12045 12298 E ACodec  : signalError(omxError 0x80001001,
internalError -2147483648)


----
After testing, OMX.google.aac.decoder compared to ffmpeg‘s audio decoder,
stability and compatibility seems to be worse, so my temporary solution:

--- a/sys/androidmedia/gstamc.c
+++ b/sys/androidmedia/gstamc.c
@@ -3308,7 +3308,7 @@ register_codecs (GstPlugin * plugin)
           g_str_has_suffix (codec_info->name, ".sw.dec")) {
         /* For video we prefer hardware codecs, for audio we prefer software
          * codecs. Hardware codecs don't make much sense for audio */
-        rank = is_video ? GST_RANK_SECONDARY : GST_RANK_PRIMARY;
+        rank = is_video ? GST_RANK_SECONDARY : GST_RANK_NONE;
       } else if (g_str_has_prefix (codec_info->name, "OMX.Exynos.")
           && !is_video) {
         /* OMX.Exynos. audio codecs are existing on some devices like the
--

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list