<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><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><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">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">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">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" data-smartmail="gmail_signature"><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>