Go to advanced search

by oomek
Tue Jun 11, 2019 9:36 pm
Forum: OpenGLES
Topic: undefined reference to BlendFuncSeparateOES
Replies: 5
Views: 720

Re: undefined reference to BlendFuncSeparateOES

It would be awesome if it worked. Thank you for your reply.
by oomek
Tue Jun 11, 2019 12:55 am
Forum: OpenGLES
Topic: undefined reference to BlendFuncSeparateOES
Replies: 5
Views: 720

Re: undefined reference to BlendFuncSeparateOES

There is still one more thing that wonders me. When I look at the userland repo I see that glBlendFunc and glBlendFuncSeparate are calling the same function set_blend_func() that is taking 4 blending parameters, but it's restricted by the IS_OPENGLES_20() check. Could anyone explain please why it's ...
by oomek
Wed May 29, 2019 6:51 pm
Forum: OpenMAX
Topic: eglCreateImageKHR takes 65ms with 1080p texture
Replies: 1
Views: 1350

Re: eglCreateImageKHR takes 65ms with 1080p texture

I've just realised that when I do not destroy the glTexture2D I used for egl image I get errors on recreating the egl image. Now when I delete it properly the eglCreateImageKHR finishes in 100us but the delay moves to glTexImage2D. The delay does not occur when I do not create egl image, this is wei...
by oomek
Mon May 27, 2019 12:35 pm
Forum: OpenMAX
Topic: eglCreateImageKHR takes 65ms with 1080p texture
Replies: 1
Views: 1350

eglCreateImageKHR takes 65ms with 1080p texture

1. When I initialize the EGL texture for the egl_render eglCreateImageKHR() takes a whooping 65 milliseconds to complete for 1080p texture, Is it normal? 2. After calling eglDestroyImageKHR I'm unable to recreate the texture when the size of the gltexture is the same as before. In that case eglCreat...
by oomek
Tue May 14, 2019 12:57 pm
Forum: OpenGLES
Topic: undefined reference to BlendFuncSeparateOES
Replies: 5
Views: 720

Re: undefined reference to BlendFuncSeparateOES

It seems that I have no other option, but to migrate to GLES 2.0 Thanks
by oomek
Sun May 12, 2019 8:57 pm
Forum: OpenGLES
Topic: undefined reference to BlendFuncSeparateOES
Replies: 5
Views: 720

undefined reference to BlendFuncSeparateOES

Please correct me if I'm wrong. I'm trying to call glBlendFuncSeparateOES in GLES 1.1 context which is defined in /opt/vc/include/GLES/glext.h but I'm getting linker errors. Since this is a legacy function that supposed to work in GLES 1.1 it should reside in /opt/vc/include/GLES/libGLESv1_CM.so rig...
by oomek
Sat Apr 20, 2019 1:59 pm
Forum: OpenMAX
Topic: Non sequential timestamps causing premature EOS flag
Replies: 5
Views: 695

Re: Non sequential timestamps causing premature EOS flag

Hi, freezing was caused by unneccessary usleep in my code, but now frames 2&3 and last 2 are not drawn on the second pass.
I've updated my post above to reflect the current state.
by oomek
Sat Apr 20, 2019 1:52 am
Forum: OpenMAX
Topic: Non sequential timestamps causing premature EOS flag
Replies: 5
Views: 695

Re: Non sequential timestamps causing premature EOS flag

There are few issues that I'm struggling with at the moment which I believe are related: 1. On the second and all consecutive video passes 2 last frames are not displayes due to the premature EOS flag 2. With timer preroll = 0ms frames 2&3 and last 2 are not drawn 3. With timer preroll = -200ms 2 la...
by oomek
Wed Apr 17, 2019 10:16 am
Forum: OpenMAX
Topic: Non sequential timestamps causing premature EOS flag
Replies: 5
Views: 695

Re: Non sequential timestamps causing premature EOS flag

If you need any further details please let me know as I desperately need to get to the bottom of this.
by oomek
Tue Apr 16, 2019 9:33 am
Forum: OpenMAX
Topic: Non sequential timestamps causing premature EOS flag
Replies: 5
Views: 695

Re: Non sequential timestamps causing premature EOS flag

Strangely this behaviour starts to manifests on the second pass in a looped video. EOS is signalled on the correct frame on the first pass.
by oomek
Mon Apr 15, 2019 12:45 pm
Forum: OpenMAX
Topic: Non sequential timestamps causing premature EOS flag
Replies: 5
Views: 695

Non sequential timestamps causing premature EOS flag

As you know after calling av_read_frame() you get AVPacket timestamps not always in the sequential order. This causes premature EOS flag in the fill_egl_texture_buffer callback. I emit the EOS in the follwing way after sending all the frames to the decoder: if ((flags & DONE_READING) && (~flags & LA...
by oomek
Sat Apr 13, 2019 10:17 pm
Forum: OpenMAX
Topic: video_scheduler / clock components -- playing video too fast
Replies: 12
Views: 7099

Re: video_scheduler / clock components -- playing video too fast

It seems I will have to stick to flushing the tunnels to make the video loop without any audio drifts, but there is one tiny roadblock that I have no idea how to overcome. I'm not sure how can I check for EOS in the callback, so I do not stop the clock or flush the tunnels before the last callback h...
by oomek
Sat Apr 13, 2019 6:12 pm
Forum: OpenMAX
Topic: video_scheduler / clock components -- playing video too fast
Replies: 12
Views: 7099

Re: video_scheduler / clock components -- playing video too fast

I did some tests and I finally know where this audio drift originates from.

It depends on the difference between the audio and video stream dutation, since both streams have different time bases when I reencode the audio ie. from 48kHz to 16kHz the drift changes.

I'm still stuck I'm afraid.
by oomek
Tue Apr 09, 2019 9:34 am
Forum: OpenMAX
Topic: video_scheduler / clock components -- playing video too fast
Replies: 12
Views: 7099

Re: video_scheduler / clock components -- playing video too fast

Thanks for the reply. Regarding the video timestamp compensation. This is what I'm actually doing at the moment, but I was treating it as a workaround and hoping to find a better solution. In short, Since an audio is the master I get the latest audio timestamp, multiply it by the repeat count and ad...
by oomek
Mon Apr 08, 2019 10:25 pm
Forum: OpenMAX
Topic: video_scheduler / clock components -- playing video too fast
Replies: 12
Views: 7099

Re: video_scheduler / clock components -- playing video too fast

I know this is an old thread, but I have stumbled across the same issue. My tunneling setup is as follows: video_decode ---> video_scheduler ---> egl_render ^ | clock ---------------------> audio_render I feed the frames from the ffmpeg splitter to the video_decode. When I reach the last frame I cal...
by oomek
Wed Oct 31, 2018 1:55 pm
Forum: General discussion
Topic: Freesync on RPI
Replies: 2
Views: 286

Freesync on RPI

Is there any chance for any form of Variable Refresh Rate like ( FreeSync / Adaptive-Sync ) to be added to RPI in some undefined future?

Go to advanced search