Go to advanced search

by dividuum
Thu Aug 08, 2019 11:54 am
Forum: Graphics programming
Topic: HEVC/H265 Decoding
Replies: 23
Views: 6723

Re: HEVC/H265 Decoding

MMAL does allow ARM side components, and indeed there is a libavcodec wrapper component. It hasn't been used for a long time, but it may be possible to resurrect it to allow use of H265 from MMAL. No such option really exists in IL, therefore this is not an option with that API. Isn't the ALSA supp...
by dividuum
Thu Aug 08, 2019 11:44 am
Forum: OpenGLES
Topic: Missing egl/gl function
Replies: 7
Views: 4641

Re: Missing egl/gl function

I'm using GL without X and use DRM directly. I also ran into this issue. I'm linking with -lGLESv2 -lEGL. Regardless of that, the call to eglGetPlatformDisplay seems to dynamically load libEGL_mesa.so.0 (after consulting /usr/share/glvnd/egl_vendor.d/50_mesa.json). So even without explicitly linking...
by dividuum
Thu Aug 08, 2019 10:28 am
Forum: Graphics programming
Topic: Pi4: MMAL video in GL (on DRM). Flickering texture. Any idea what might be wrong?
Replies: 6
Views: 2168

Re: Pi4: MMAL video in GL (on DRM). Flickering texture. Any idea what might be wrong?

I've noticed that the colors of the image seem weird is that what the image should look like? which drm fourcc are you using for your egl import? Is the incoming image RGB or YUV? DRM fourcc should be XB24. The isp component converts to RGBA and the colors are correct (it's 1:14 into this video ). ...
by dividuum
Wed Aug 07, 2019 6:16 pm
Forum: Graphics programming
Topic: Pi4: MMAL video in GL (on DRM). Flickering texture. Any idea what might be wrong?
Replies: 6
Views: 2168

Pi4: MMAL video in GL (on DRM). Flickering texture. Any idea what might be wrong?

Hi. I've managed a basic MMAL based video playback on a DRM GL surface on the Pi4. I've now run into an odd issue that I don't have any explanation for. Have a look at this image: https://usercontent.infobeamer.com/mmal-video-render-flickering.jpg Edit: Here's a video . What you see in screen captur...
by dividuum
Sat Aug 03, 2019 12:14 pm
Forum: Graphics programming
Topic: Pi4 DRM questions
Replies: 6
Views: 3903

Re: Pi4 DRM questions

Two threads, each independently wait on a drmModePageFlip for their respective display? Not at the moment. Is that how it's supposed to work? Right now I eglSwapBuffers, then gbm_surface_lock_front_buffer, optionally create a drm fb from if none exists yet and then issue two drmModePageFlip calls f...
by dividuum
Fri Aug 02, 2019 12:14 pm
Forum: Graphics programming
Topic: Pi4 DRM questions
Replies: 6
Views: 3903

Re: Pi4 DRM questions

Another day and a few follow up comments and questions. modetest is the lowest level DRM test tool. "modetest -M vc4" for my single headed display lists [...] Thanks for that. That makes it easier to see what's going on. I don't believe there is any guarantee that the displays will be in sync, and t...
by dividuum
Thu Aug 01, 2019 3:38 pm
Forum: Graphics programming
Topic: Pi4 DRM questions
Replies: 6
Views: 3903

Re: Pi4 DRM questions

Hey. Thanks a lot for the quick response and very useful insight. I'll see how far I get :-)
by dividuum
Thu Aug 01, 2019 2:28 pm
Forum: Graphics programming
Topic: Pi4 DRM questions
Replies: 6
Views: 3903

Pi4 DRM questions

I'm currently porting info-beamer pi to the Pi4. I'm using DRM to set up a GL surface without using X at all. A few questions came up while working on that: When is /dev/dri/card0 and when is /dev/dri/card1 active? Usually it's card1, but I remember seeing card0 successfully working as well. Are the...
by dividuum
Thu Aug 01, 2019 10:53 am
Forum: Graphics programming
Topic: Screen capture and video encoding
Replies: 5
Views: 2277

Re: Screen capture and video encoding

Thanks for the pointers. It looks like it might be possible through the dispmanx API. At least from my understanding (of up to the Pi3, no idea about what the Pi4 might do at some point), there's no way to efficiently get any kind of realtime screen capturing. The vc_dispmanx_snapshot function resu...
by dividuum
Mon Jul 01, 2019 10:31 am
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 37587

Re: OpenGL on Buster on both Pi 3 and Pi 4

DeluxePixel wrote:
Mon Jul 01, 2019 10:28 am
More to the point, is it possible on the pi4 to use any form of accelerated opengl without using X?

A simple yes or no from someone who knows would be great. :)
Yes. With the mechanism from my previous post. No X required.
by dividuum
Mon Jul 01, 2019 10:12 am
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 37587

Re: OpenGL on Buster on both Pi 3 and Pi 4

Not quite, EGL is still used, its dispmanx that has been replaced by X11 as the lower layer. You need to be able to provide and Xwindow id to eglCreateWindowSurface rather than a EGL_DISPMANX_WINDOW_T Not necessarily: You can also use DRM/GBM(?). See this code (run with ./kmscube -D /dev/dri/card1)...
by dividuum
Mon Jul 01, 2019 10:04 am
Forum: OpenGLES
Topic: OpenGL on Buster on both Pi 3 and Pi 4
Replies: 72
Views: 37587

Re: OpenGL on Buster on both Pi 3 and Pi 4

Is there any good documentation on DRM and all the other APIs that are used now? https://01.org/linuxgraphics/gfx-docs/drm/gpu/index.html seems to document the driver side point of view. Even the man pages link to non-existing documentation pages (for example drmModePageFlip). Only somewhat complete...
by dividuum
Mon Jul 01, 2019 9:33 am
Forum: OpenMAX
Topic: Playing UHD H264
Replies: 3
Views: 4055

Re: Playing UHD H264

Edited: The H264 decoder only supports 1920x1080. Oh. Didn't know that. Thanks. So HVEC is required for that? How does one decode that? I naively modified my existing code to send HVEC video frames to the `video_decode` component and never got a OMX_EventPortSettingsChanged event. Is OMX still supp...
by dividuum
Mon Jul 01, 2019 9:00 am
Forum: OpenMAX
Topic: Playing UHD H264
Replies: 3
Views: 4055

Playing UHD H264

How exactly does that work? Can we the existing OpenMAX API? I tried omxplayer with jellyfish-120-mbps-4k-uhd-h264.mkv from http://jell.yfish.us/ without success: root@raspberrypi:~# ffprobe jellyfish-120-mbps-4k-uhd-h264.mkv ffprobe version 4.1.3-1+rpt1 Copyright (c) 2007-2019 the FFmpeg developers...
by dividuum
Fri Jun 28, 2019 2:13 pm
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 87
Views: 26385

Re: Thread from Pi4 discussion

dom wrote:
Fri Jun 28, 2019 1:37 pm
But a simpler source might be kmscube.
Thanks a lot. That was exactly what I was looking for. That should be very helpful in porting my code over to the Pi4.
by dividuum
Fri Jun 28, 2019 9:32 am
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 87
Views: 26385

Re: Thread from Pi4 discussion

X isn't essential. Kodi for example runs as a fullscreen app. Any hint where to look at? I guess this is the GBM part? Is there any minimal example that shows how to set up a GL surface similar to how it worked with the legacy drivers? When opening a surface like that, I guess that's still on its o...
by dividuum
Thu Apr 18, 2019 11:22 am
Forum: Graphics, sound and multimedia
Topic: could omxplayer display non rectangular area ?
Replies: 2
Views: 400

Re: could omxplayer display non rectangular area ?

info-beamer can do that. It has the option to render videos on OpenGL textures. So you can use all kinds of transformations. The downside is that this is more GPU intensive and FullHD might be problematic. The feature is used for example in this magic video wall package to arbitrarily transform vid...
by dividuum
Wed Apr 10, 2019 9:45 am
Forum: Advanced users
Topic: WiFi Connection manager with fallback web configuration portal
Replies: 7
Views: 1274

Re: WiFi Connection manager with fallback web configuration portal

Paul Hutch wrote:
Tue Apr 02, 2019 5:55 pm
From what I've read nobody who has coded this type of system for the Raspberry Pi has released it as free software.
While I'm guilty of that too, the following exists and might be what OP is looking for: https://github.com/balena-io/wifi-connect
by dividuum
Tue Feb 19, 2019 8:02 pm
Forum: Graphics programming
Topic: How synchronize videos on Raspberry CM3 ?
Replies: 2
Views: 1340

Re: How synchronize videos on Raspberry CM3 ?

How to sync different videos on differents Raspberry? If you're ok with using a commercial product, our info-beamer hosted product can do that. You can easily build video walls or individual screens that play either the same content or different content of the same duration in sync. info-beamer wor...
by dividuum
Sat Oct 13, 2018 1:12 pm
Forum: Advanced users
Topic: Writing to OTP registers without rebooting
Replies: 2
Views: 739

Re: Writing to OTP registers without rebooting

There's also this readme that describes how to write(?) some OTP values. No idea if that's helpful and I didn't try any of the mentioned commands. Proceed with care.
by dividuum
Sat Aug 04, 2018 8:41 pm
Forum: Graphics, sound and multimedia
Topic: Multiple displays running simultaneously
Replies: 12
Views: 2343

Re: Multiple displays running simultaneously

Info Beamer looks interesting, yes I would really like a turn key solution with start and stop times to control the media players. Unfortunately I think your solution David is rather out of my budget as it has more commercial features than I require as a poor Artist. info-beamer is really on the lo...
by dividuum
Tue Jul 31, 2018 4:42 pm
Forum: Graphics, sound and multimedia
Topic: Multiple displays running simultaneously
Replies: 12
Views: 2343

Re: Multiple displays running simultaneously

Thanks for the suggestions, very helpful, I have looked at the Pi Wall before which is interesting. [...] Mike what is SSH ? I’m not much of a programmer If you're willing to trade money for convenience, you can look at our info-beamer hosted digital signage solution . It can do what you describe e...
by dividuum
Wed Jul 25, 2018 1:31 pm
Forum: Graphics, sound and multimedia
Topic: use omxplayer to streaming youtube
Replies: 7
Views: 4714

Re: use omxplayer to streaming youtube

Thanks for the replay Is same thing it play 2 sec then freeze 1 sec and then stop I trying to stream this video to a Raspberry Pi https://www.youtube.com/watch?v=RtU_mdL2vBM I'm the developer of info-beamer hosted , a digital signage system for the RPi. I've been playing around with live streaming ...
by dividuum
Wed Jul 25, 2018 1:19 pm
Forum: Graphics, sound and multimedia
Topic: Info display screen
Replies: 1
Views: 845

Re: Info display screen

Hi there - I have a wall mounted TV in a corridor I use to display welcome information etc. The TV has no ethernet port, just HDMI in. I used to drive this via a PC the other side of the wall but I now want to use a spare Raspberry Pi I have kicking about. There's an ethernet port on the wall behin...
by dividuum
Wed Jul 25, 2018 1:12 pm
Forum: Graphics, sound and multimedia
Topic: RANDOM VIDEO PLAYER FOR ART INSTALATION
Replies: 8
Views: 2208

Re: RANDOM VIDEO PLAYER FOR ART INSTALATION

True seamless will be hard to do with a rpi just based on the processing power. That's not correct. My info-beamer pi software is capable of that. It works by preloading and pausing the next video before the current video ends. Once it ends, it unpauses the next video. It works pretty well. Here's ...

Go to advanced search