I am getting an error while switching the video files and displaying on Android. On desktop switching and displaying video files worked fine but on Android (Google Pixel 2 Phone), it's working for few videos changing and displaying but then got stopped and giving me the error of
06-29 20:56:19.996 845-1781/? E/OMX-VDEC-1080P: Enable/Disable allocate-native-handle allowed only on input port!
set_parameter: Error: 0x80001019, setting param 0x7f00005d
06-29 20:56:19.996 845-1781/? E/OMXNodeInstance: setParameter(0xebfea6c4:qcom.decoder.avc, OMX.google.android.index.allocateNativeHandle(0x7f00005d): Output:1 en=0) ERROR: UnsupportedSetting(0x80001019)
06-29 20:56:20.000 845-1781/? E/OMXNodeInstance: getConfig(0xebfea6c4:qcom.decoder.avc, ??(0x7f000062)) ERROR: UnsupportedSetting(0x80001019)
and GStreamer related error I found:
06-29 21:59:27.679 10893-10948/? E/GStreamer+amcvideodec: 0:00:06.522870389 0xd0f0d350 gstamcvideodec.c:1979:gst_amc_video_dec_set_format: Codec only supports GL output but downstream does not
06-29 21:59:27.716 10893-10948/? E/GStreamer+amcvideodec: 0:00:06.559957789 0xd0f0d350 gstamcvideodec.c:1956:gst_amc_video_dec_set_format: Failed to negotiate
06-29 21:59:21.437 10893-10908/? E/GStreamer+amc: 0:00:00.280372267 0xcc7a2b20 gstamc.c:3274:register_codecs Type 'GstAmcVideoEnc-OmxQcomVideoEncoderH263' already exists for codec 'OMX.qcom.video.encoder.h263'
06-29 21:59:21.437 10893-10908/? E/GStreamer+amc: 0:00:00.280407059 0xcc7a2b20 gstamc.c:3274:register_codecs Type 'GstAmcVideoEnc-OmxGoogleH263Encoder' already exists for codec 'OMX.google.h263.encoder'
06-29 21:59:21.437 10893-10908/? E/GStreamer+amc: 0:00:00.280438153 0xcc7a2b20 gstamc.c:3274:register_codecs Type 'GstAmcVideoEnc-OmxQcomVideoEncoderHevc' already exists for codec 'OMX.qcom.video.encoder.hevc'
06-29 21:59:21.437 10893-10908/? E/GStreamer+amc: 0:00:00.280470392 0xcc7a2b20 gstamc.c:3274:register_codecs Type 'GstAmcVideoEnc-OmxQcomVideoEncoderMpeg4' already exists for codec 'OMX.qcom.video.encoder.mpeg4'
06-29 21:59:21.437 10893-10908/? E/GStreamer+amc: 0:00:00.280500705 0xcc7a2b20 gstamc.c:3274:register_codecs Type 'GstAmcVideoEnc-OmxGoogleMpeg4Encoder' already exists for codec 'OMX.google.mpeg4.encoder'
06-29 21:59:21.437 10893-10908/? E/GStreamer+amc: 0:00:00.280531069 0xcc7a2b20 gstamc.c:3274:register_codecs Type 'GstAmcVideoEnc-OmxQcomVideoEncoderVp8' already exists for codec 'OMX.qcom.video.encoder.vp8'
06-29 21:59:21.437 10893-10908/? E/GStreamer+amc: 0:00:00.280563309 0xcc7a2b20 gstamc.c:3274:register_codecs Type 'GstAmcVideoEnc-OmxGoogleVp8Encoder' already exists for codec 'OMX.google.vp8.encoder'
06-29 21:59:21.437 10893-10908/? E/GStreamer+amc: 0:00:00.280593257 0xcc7a2b20 gstamc.c:3274:register_codecs Type 'GstAmcVideoEnc-OmxGoogleVp9Encoder' already exists for codec 'OMX.google.vp9.encoder'
After that, the app gets stopped after a certain time.
After 10 updates, I am repeating the following code
Stop();
fID++;
m_URI = "file:///C:/sdcard/viking_play/" + fID.ToString() + ".mp4";
Setup(m_URI, m_VideoIndex, m_AudioIndex);
Play();
Can anyone please tell me why I am getting the error while switching videos and displaying it on android? Any help will highly be appreciated.
Hey @spaul13 , how did you get it to work on Android at all? Is it hard to set up and would you mind posting some sort of documentation or instruction?