Urho3D Raspberry PI 3 and omxplayer

Everything about the development of Urho3D.

Urho3D Raspberry PI 3 and omxplayer

PostPosted by fpecheux » 30 Aug 2016, 20:55

Hi,

For a project of mine involving a Raspberry PI 3, I'd like to be able to temporarily suspend a Urho3D application, say ./04_StaticScene for instance, run an omxplayer instance showing a 1920x1080 H264 video, and then resume the Urho3D application. The problem is that they share the same framebuffer and GPU stuff, and when I launch omxplayer, I get the sound but the image remains produced by the Urho3D engine.

My question: how can I suspend the Urho3D app correctly so that omxplayer can take control of the framebuffer momentarily then give it back to the Urho3D app ?

BTW, your environment is really awesome.

Best regards,

Francois
User avatar
fpecheux
New user
New user
 
Posts: 1
Joined: 30 Aug 2016, 19:15

Re: Urho3D Raspberry PI 3 and omxplayer

PostPosted by cadaver » 31 Aug 2016, 11:21

Welcome to the forums.
On desktop platforms you can call Graphics::Minimize() which will minimize the app window to the taskbar. Depending on Engine class config the frame updates may still go on, but it doesn't render to the minimized window. You could try if the same works on RPi3; this depends on how SDL actually handles the windowing, ie. does it relinquish the framebuffer when the window shouldn't be visible.
User avatar
cadaver
Urho3D author
Urho3D author
 
Posts: 1802
Joined: 16 Jan 2014, 14:52
Location: Finland

Re: Urho3D Raspberry PI 3 and omxplayer

PostPosted by weitjong » 31 Aug 2016, 14:36

SDL "video driver" for RPI is quite simple or broken, depends on how you see it. It mainly only contains stubs without actually implementing those windowing functions. So, minimizing window may not give the same result as in the desktop platform. I think you may have to get your hand dirty to experiment with the dispmanx's element layer or alpha settings directly.
YaoWT - Leave no window unbroken ♪ (^。^) 
User avatar
weitjong
Contributor
Contributor
 
Posts: 1094
Joined: 16 Jan 2014, 15:34
Location: Singapore, 新加坡

Re: Urho3D Raspberry PI 3 and omxplayer

PostPosted by weitjong » 22 Oct 2016, 03:48

It may be too late for you by now but it looks like this commit in SDL 2.0.5 release tag is exactly what you are looking for. https://github.com/urho3d/SDL-mirror/co ... 061d76ac8e
YaoWT - Leave no window unbroken ♪ (^。^) 
User avatar
weitjong
Contributor
Contributor
 
Posts: 1094
Joined: 16 Jan 2014, 15:34
Location: Singapore, 新加坡


Return to Developer Talk

Who is online

Users browsing this forum: No registered users and 0 guests

cron