<div dir="ltr"><div dir="ltr"><div>HI,</div><div><br></div><div>after further examination, I'd like to solve the AAC problem first. From the logs there are four errors/warnings with AAC,</div><div><br></div><div>1. gstamc.c:3508:gst_amc_codec_info_to_caps Unable to map AAC profile 0x00000005<br>    0:00:00.653634917 0x99abe8e0 ../sys/androidmedia/gstamc.c:3508:gst_amc_codec_info_to_caps Unable to map AAC profile 0x0000001d<br>    0:00:00.653776667 0x99abe8e0 ../sys/androidmedia/gstamc.c:3508:gst_amc_codec_info_to_caps Unable to map AAC profile 0x00000017<br>    0:00:00.653877583 0x99abe8e0 ../sys/androidmedia/gstamc.c:3508:gst_amc_codec_info_to_caps Unable to map AAC profile 0x00000027</div><div>2. E/MediaCodec: getBufferAndFormat - not executing</div><div>3. <amcaudiodec-omxgoogleaacdecoder0> error: <br>Failed to call Java method: java.lang.IllegalStateException<br>    java.lang.IllegalStateException<br>        at android.media.MediaCodec.getBuffer(Native Method)<br>        at android.media.MediaCodec.getInputBuffer(MediaCodec.java:2992)</div><div>4. E/ACodec: [OMX.rk.video_decoder.avc] storeMetaDataInBuffers failed w/ err -1010</div><div><br></div><div>Maybe they are all from the same error.<br></div><div><br></div><div>In order to find a solution to this problem, I'd like to build my version of gstramer binaries android Universal。How can I do it? the master branch says it requires Android API level >= 28. But the rk3229 board runs API 25. Should I use the old Anroid Universal 1.14.4. How can I build an Android Universal 1.14.4? or because I only need a version for armv7, can I build one only for armv7?<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca" target="_blank">nicolas@ndufresne.ca</a>> 於 2019年10月11日 週五 下午7:55寫道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 11 oct. 2019 01 h 11, 吳政昌 <<a href="mailto:ccwu660601@gmail.com" target="_blank">ccwu660601@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I've modified the android tutorial 5. What I modified is changing the movie to an HLS link and adding plugins specified by GSTREAMER_PLUGINS_CODECS_RESTRICTED.</div><div><br></div><div>The modified tutorial encountered a general supporting library error. <br></div><div><br></div><div>From the logs below, I found androidmedia cannot map some AAC profiles, but still is initialized successfully. So I think its no problem.</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It's a problem if that prevents software fallback.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>There is a internal error storeMetaDataInBuffers failed,but on stackoverflow someone said this is harmless.</div><div><br></div><div>There is another error from libEGL saying validate_display:99 error 3008 (EGL_BAD_DISPLAY)。And another one saying  called unimplemented OpenGL ES API。</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">That would need some investigation, aka finding which GLES API isn't implemented on your Mali blob. Looks like the Mali saga continues ...</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>How can I decide the reason for the general supporting library error?</div><div><br></div><div><div><div>-- Logs start here.</div><div><br></div><div>Connected to process 20951 on device 'rockchip-k10c-H201906110844'.<br>Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.<br>I/art: Late-enabling -Xcheck:jni<br>I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es<br>I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es<br>E/GStreamer+amc: 0:00:00.653369500 0x99abe8e0 ../sys/androidmedia/<br>gstamc.c:3508:gst_amc_codec_info_to_caps Unable to map AAC profile 0x00000005<br>    0:00:00.653634917 0x99abe8e0 ../sys/androidmedia/gstamc.c:3508:gst_amc_codec_info_to_caps Unable to map AAC profile 0x0000001d<br>    0:00:00.653776667 0x99abe8e0 ../sys/androidmedia/gstamc.c:3508:gst_amc_codec_info_to_caps Unable to map AAC profile 0x00000017<br>    0:00:00.653877583 0x99abe8e0 ../sys/androidmedia/gstamc.c:3508:gst_amc_codec_info_to_caps Unable to map AAC profile 0x00000027<br>I/GStreamer: GStreamer initialization complete<br>D/lvjinhua:  Failed while trying resolve alarm filter file, not exists<br>I/GStreamer: Activity created with no saved state:<br>      playing:false position:0 duration: 0 uri: <a href="https://indonesia-out.oss-ap-southeast-1.aliyuncs.com/indonesia_video_out/20190919/videoHlsHd/video.m3u8" rel="noreferrer" target="_blank">https://indonesia-out.oss-ap-southeast-1.aliyuncs.com/indonesia_video_out/20190919/videoHlsHd/video.m3u8</a><br>D/GStreamer+tutorial-5: 0:00:03.696905626 0x99abe8e0 /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:482:gst_native_init Created CustomData at 0x99276b80<br>    0:00:03.697111835 0x99abe8e0 /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:484:gst_native_init Created GlobalRef for app object at 0x10084e<br>D/GStreamer+tutorial-5: 0:00:03.697472335 0x99693c00 /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:396:app_function Creating pipeline in CustomData at 0x99276b80<br>D/GStreamer+tutorial-5: 0:00:03.700560210 0x99693c00 /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:449:app_function Entering main loop... (CustomData:0x99276b80)<br>    0:00:03.700755335 0x99693c00 /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:75:attach_current_thread Attaching thread 0x99693c00<br>D/GStreamer+tutorial-5: 0:00:03.702067835 0x99693c00 /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:115:set_ui_message Setting message to: State changed to READY<br>I/[Gralloc]:  ion device open success! fd = 46<br>I/GStreamer: onMeasure called with 320x240<br>I/mali_so: [File] : hardware/rockchip/driver/./src/base/arch/arch_011_udd/base_arch_main.c; [Line] : 565; [Func] : deal_with_version_affairs_rk_ext;<br>    arm_release_ver of this mali_so is 'r7p0-00rel1', rk_so_ver is '4@0' for 312x_android_7.1, built at '09:49:26', on 'Aug 18 2017'.<br>    [File] : hardware/rockchip/driver/./src/base/arch/arch_011_udd/base_arch_main.c; [Line] : 578; [Func] : deal_with_version_affairs_rk_ext;<br>    mali_ver_property has been set to 'r7p0-00rel1-5-4@0', to return.<br>I/GStreamer: onMeasure called with 320x240<br>I/OpenGLRenderer: Initialized EGL, version 1.4<br>D/OpenGLRenderer: Swap behavior 1<br>D/GStreamer: Surface created: Surface(name=null)/@0x992c82d<br>    Surface changed to format 4 width 577 height 433<br>D/GStreamer+tutorial-5: 0:00:03.821582918 0x99abe8e0 /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:607:gst_native_surface_init Received surface 0xbe9883b0 (native window 0x991b3808)<br>    0:00:03.821784168 0x99abe8e0 /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:75:attach_current_thread Attaching thread 0x99abe8e0<br>    0:00:03.821885668 0x99abe8e0 /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:369:check_initialization_complete Initialization complete, notifying application. native_window:0x991b3808 main_loop:0x9938ae10<br>I/GStreamer: GStreamer initialized:<br>      playing:false position:0 uri: <a href="https://indonesia-out.oss-ap-southeast-1.aliyuncs.com/indonesia_video_out/20190919/videoHlsHd/video.m3u8" rel="noreferrer" target="_blank">https://indonesia-out.oss-ap-southeast-1.aliyuncs.com/indonesia_video_out/20190919/videoHlsHd/video.m3u8</a><br>D/GStreamer+tutorial-5: 0:00:03.822406001 0x99abe8e0 /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:515:gst_native_set_uri Setting URI to <a href="https://indonesia-out.oss-ap-southeast-1.aliyuncs.com/indonesia_video_out/20190919/videoHlsHd/video.m3u8" rel="noreferrer" target="_blank">https://indonesia-out.oss-ap-southeast-1.aliyuncs.com/indonesia_video_out/20190919/videoHlsHd/video.m3u8</a><br>    0:00:03.823171043 0x99abe8e0 /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:566:gst_native_set_position Scheduling seek to 0:00:00.000000000 for later<br>D/GStreamer+tutorial-5: 0:00:03.823424501 0x99abe8e0 /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:547:gst_native_pause Setting state to PAUSED<br>W/libOpenSLES: Leaving Object::GetInterface (SL_RESULT_FEATURE_UNSUPPORTED)<br>I/MediaCodec: callingProcessName:org.freedesktop.gstreamer.tutorials.tutorial_5<br>I/OMXClient: MuxOMX ctor<br>I/ACodec: onAllocateComponent:6728 mSoftCodecPref:0 componentName:OMX.google.aac.decoder<br>    onAllocateComponent:6759 mSoftCodecPref:0 componentName:OMX.google.aac.decoder<br>E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)<br>W/GStreamer+glcontext: 0:00:05.144984544 0x976b0030 ../gst-libs/gst/gl/egl/gstglcontext_egl.c:325:gst_gl_context_egl_dump_config:<glcontextegl0> unknown EGL_COLOR_BUFFER_TYPE value 3300<br>    0:00:05.145724210 0x976b0030 ../gst-libs/gst/gl/egl/gstglcontext_egl.c:325:gst_gl_context_egl_dump_config:<glcontextegl0> unknown EGL_COLOR_BUFFER_TYPE value 3300<br>E/libEGL: called unimplemented OpenGL ES API<br>I/MediaCodec: callingProcessName:org.freedesktop.gstreamer.tutorials.tutorial_5<br>I/OMXClient: MuxOMX ctor<br>I/ACodec: onAllocateComponent:6728 mSoftCodecPref:0 componentName:OMX.rk.video_decoder.avc<br>I/ACodec: onAllocateComponent:6759 mSoftCodecPref:0 componentName:OMX.rk.video_decoder.avc<br>E/ACodec: [OMX.google.aac.decoder] ERROR(0x80001001)<br>    signalError(omxError 0x80001001, internalError -2147483648)<br>E/MediaCodec: Codec reported err 0x80001001, actionCode 0, while in state 6<br>E/MediaCodec: getBufferAndFormat - not executing<br>I/MediaCodec: [OMX.rk.video_decoder.avc] setting surface generation to 21453825<br>W/GStreamer+amcaudiodec: 0:00:05.264748127 0x976b2ac0 ../sys/androidmedia/gstamcaudiodec.c:1218:gst_amc_audio_dec_handle_frame:<amcaudiodec-omxgoogleaacdecoder0> error: <br>Failed to call Java method: java.lang.IllegalStateException<br>    java.lang.IllegalStateException<br>        at android.media.MediaCodec.getBuffer(Native Method)<br>        at android.media.MediaCodec.getInputBuffer(MediaCodec.java:2992)<br>E/ACodec: [OMX.rk.video_decoder.avc] storeMetaDataInBuffers failed w/ err -1010<br>D/GStreamer+tutorial-5: 0:00:05.265847711 0x99693c00 /media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/gst-docs/examples/tutorials/android/android-tutorial-5/jni/tutorial-5.c:115:set_ui_message Setting message to: Error received from element amcaudiodec-omxgoogleaacdecoder0: GStreamer encountered a general supporting library error.</div><div></div><div><br>-- <br><div dir="ltr"><div dir="ltr"><div><div><span> 吳政昌 </span>Sirius Wu<br></div><div><br>+886927161530</div><div>+88662970665</div>Mapacode Inc.<br>7F.-1, No.159, Jianping 17th St., Anping Dist., Tainan City 708, Taiwan (R.O.C.)<br></div></div></div></div></div></div></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><span></span>Sirius Wu<br></div></div></div></div></div></div></div></div>