Page 1 of 1

video_decode -> egl_render doesn't work for some videos

Posted: Sat Feb 24, 2018 11:28 pm
by Opilki_Inside
Hey there,

I have a h264 video stream (no audio) that comes from the network. It works fine with hello_video sample, however I have problems playing this video in hello_videocube. I verified that test.h264 works in hello_videocube.

I suspect that something wrong with the format of the video file, but it plays in other media players, and in hello_video. Maybe egl_render has some additional requirements for the format?

I never receive OMX_EventPortSettingsChanged event in hello_videocube only for my video stream.

Could anyone help me to understand what's going on?

Here's a link on the video file that doesn't work with the cube sample: ... sp=sharing

I haven't done any changes in hello_videocube sample code.


Re: video_decode -> egl_render doesn't work for some videos

Posted: Sun Feb 25, 2018 7:35 pm
by Opilki_Inside
After reboot things changed a little bit, so now I'm receiving OMX_EventPortSettingsChanged event.
However, after calling

Code: Select all

OMX_FillThisBuffer(ILC_GET_HANDLE(egl_render), eglBuffer)
I do not receive fill_buffer_done callback.

So it looks like some error happened during OMX_FillThisBuffer call.

After looking into vcdbg log msg (with log level 64) I found "EGL/Input image size mismatch". Then I found hard-coded image resolution in triangle.c and changed it.

Everything works fine now.