Go to advanced search

by jannewmarch
Sat Mar 07, 2020 1:35 am
Forum: OpenMAX
Topic: egl_render on the vc4 driver
Replies: 13
Views: 2180

Re: egl_render on the vc4 driver

Thanks 6by9! This kind of detailed explanation of where things are and where they are going is invaluable.
by jannewmarch
Fri Mar 06, 2020 12:44 am
Forum: OpenMAX
Topic: egl_render on the vc4 driver
Replies: 13
Views: 2180

Re: egl_render on the vc4 driver

Thanks 6by9. My understanding now is OpenMAX should be deprecated and not used for new projects. According to Wikipedia Khronos entry, OpenMAX is now an inactive group and 6by9 says it will not be actively supported on the RPi Some features of OpenMAX IL that worked on the RPi0-3 using DispmanX are ...
by jannewmarch
Tue Mar 03, 2020 10:07 am
Forum: OpenMAX
Topic: egl_render on the vc4 driver
Replies: 13
Views: 2180

Re: egl_render on the vc4 driver

From sam_nazarko in the OSMC forum on 31 Oct 2019 at [Any update on the Pi4?][https://discourse.osmc.tv/t/any-update-on-the-pi4/82775] I don’t have any news at this time. As the device is new and MMAL is being deprecated from Kodi, we need to support V4L2/GBM. This is still a work in progress by Ras...
by jannewmarch
Wed Feb 05, 2020 10:23 am
Forum: OpenGLES
Topic: esUtil for OpenGL ES fullscreen using DRM/KMS
Replies: 10
Views: 1845

esUtil for OpenGL ES fullscreen using DRM/KMS

The book "Open GL ES 3.0 Programming Guide" by Dan Ginsburg et al has example programs and implementations using a variety of platforms. For Linux, it only gives an implementation for the X11 platform (esUtil_X11.c). Based on the kmscube code, I have created an alpha version that gives an implementa...
by jannewmarch
Sun Jan 19, 2020 6:44 am
Forum: Graphics programming
Topic: libdrm with dump buffers, support on RPI4?
Replies: 5
Views: 2303

Re: libdrm with dump buffers, support on RPI4?

I found 6by9's explanation a little cryptic so I've been digging a bit more. If you look at /dev/dri/by-path/ it shows platform-fec00000.v3d-card -> ../card0 platform-fec00000.v3d-render -> ../renderD128 platform-soc:gpu-card -> ../card1 so that card0 and renderD128 are both related to V3D (6by9 say...
by jannewmarch
Sat Feb 03, 2018 12:16 am
Forum: Networking and servers
Topic: Getting IPv6 working over a PPPoE interface
Replies: 1
Views: 2366

Re: Getting IPv6 working over a PPPoE interface

Adding +ipv6 to /etc/ppp/options seems to have fixed it. I'm now getting a GUA IPv6 address.
by jannewmarch
Sat Jan 27, 2018 10:23 am
Forum: Networking and servers
Topic: Getting IPv6 working over a PPPoE interface
Replies: 1
Views: 2366

Getting IPv6 working over a PPPoE interface

Problem: Trying to use an RPi as a router to my ISP. Can get IPv4 working to the RPi on a PPPoE link, but can't get IPv6 addresses assigned. IPv4 and IPv6 work okay with a Linksys EA6900 router. Details: I have a Linksys router which gives me an IPv4 address and and a /64 IPv6 network. When I run rd...
by jannewmarch
Sun Nov 08, 2015 1:28 am
Forum: OpenVG
Topic: additional font types for openvg C/C++ ?
Replies: 14
Views: 3927

Re: additional font types for openvg C/C++ ?

See the chapter "Text processing in OpenVG" at https://jan.newmarch.name/RPi/OpenVG/Text/ in my "RPi GPU" ebook at https://jan.newmarch.name/RPi/
by jannewmarch
Sun Nov 08, 2015 1:16 am
Forum: OpenVG
Topic: Memory problem using pbuffers: EGL_BAD_ALLOC
Replies: 3
Views: 2140

Re: Memory problem using pbuffers: EGL_BAD_ALLOC

Solved - not enough garbage collection. I'm using 64M GPU memory, so the problem showed up early. I was assuming that memory used during an application would be reclaimed by the O/S, as usually happens with ordinary applications. That isn't the case with the GPU: memory allocated must be explicitly ...
by jannewmarch
Thu Oct 29, 2015 11:50 pm
Forum: OpenGLES
Topic: A few questions...
Replies: 3
Views: 2864

Re: A few questions...

I reckon my online book "Programming AudioVideo on the Raspberry Pi GPU " at https://jan.newmarch.name/RPi/ is maybe half-decent. It concentrates more on OpenMAX but has some coverage of OpenGL ES
by jannewmarch
Thu Oct 29, 2015 11:16 am
Forum: OpenVG
Topic: Memory problem using pbuffers: EGL_BAD_ALLOC
Replies: 3
Views: 2140

Memory problem using pbuffers: EGL_BAD_ALLOC

I am drawing into an off-screen VGImage using a pbuffer. The image is 2048 bytes x 2048 bytes, the maximum allowed on the RPi. The surface is an EGLSurface created using eglCreatePbufferFromClientBuffer. As a standalone program it works fine. However, when I load the same program as a .so module int...
by jannewmarch
Wed Sep 16, 2015 11:43 am
Forum: Troubleshooting
Topic: Problems with audio rpi2
Replies: 1
Views: 603

Re: Problems with audio rpi2

This is explained at http://raspberrypi.stackexchange.com/questions/44/why-is-my-audio-sound-output-not-working . I edited the file /boot/config.txt and uncommented the line "hdmi_drive=2". I also used the command sudo amixer cset numid=3 <n> where n is 0=auto, 1=headphones, 2=hdmi to toggle between...
by jannewmarch
Thu Sep 10, 2015 10:20 am
Forum: Graphics, sound and multimedia
Topic: RPi and real-time, low-latency audio
Replies: 189
Views: 85565

Re: RPi and real-time, low-latency audio

Update for RPi 2 Model B using 2015-05-05-raspbian-wheezy.img. The version of jackd in the distro is still 1.9.9 from 2012 and still has the rough sound problem. The jackd site (http://jackaudio.org/downloads) now has version 1.9.10 in source code form which dates from 2014 but that does not improve...
by jannewmarch
Thu Jul 16, 2015 10:56 am
Forum: Graphics programming
Topic: Drawing to the screen without using X
Replies: 4
Views: 3194

Re: Drawing to the screen without using X

Check out my online book "Programming AudioVideo on the Raspberry Pi GPU" at http://jan.newmarch.name/RPi/. That deals with OpenMAX, OpenGL ES and OpenVG without using X
by jannewmarch
Sat Jul 04, 2015 12:26 pm
Forum: OpenMAX
Topic: Problem with omx video_decode
Replies: 2
Views: 2691

Re: Problem with omx video_decode

Is it an MP4 file? If so, you will need to demultiplex it using ffmpeg before you can decode the video stream (using the Broadcom video_decode) and the audio stream (using ffmpeg). I tested this using an MP4 I downloaded from YouTube with il_ffmpeg_demux_render_audio_video.c from the new chapter in ...
by jannewmarch
Sun Jun 07, 2015 11:24 am
Forum: OpenMAX
Topic: Are there any VLL plugins for image transitions?
Replies: 0
Views: 2010

Are there any VLL plugins for image transitions?

The OMX.broadcom.visualisation and OMX.broadcom.transition components seem to rely on plugins to perform functionality such as OMX_EffectDissolve between two images. The plugins end in .vll according to the Broadcom documentation. I can't find any on my RPi, and when I query the transition component...
by jannewmarch
Sun Jun 07, 2015 11:11 am
Forum: OpenMAX
Topic: Pi openmax audio video sync
Replies: 5
Views: 4716

Re: Pi openmax audio video sync

No, you don't need audio_decode - if you use that you have to stick a WAV header in front of the PCM data. omxplayer is fantastic but there are hardly any comments saying why things are done. I've just added another chapter to my RPi/GPU online book at jan.newmarch.name/RPi which talks through many ...
by jannewmarch
Sun Jun 07, 2015 10:49 am
Forum: OpenMAX
Topic: audio_decode/audio_render capabilities/questions
Replies: 7
Views: 5812

Re: audio_decode/audio_render capabilities/questions

The audio_decode component seems happier with WAV data than with PCM data. In omxplayer the output from the ffmpeg decoder is PCM, and a WAV header is added before sending it to the audio_decode component. After months of breaking my head over the omxplayer code I have added a chapter to my online R...
by jannewmarch
Mon Nov 10, 2014 9:27 am
Forum: OpenMAX
Topic: OpenGL, OpenMAX ebook available
Replies: 7
Views: 3461

Re: OpenGL, OpenMAX ebook available

Thanks for the feedback. The book isn't finished yet, so I guess you've given me some (strong) clues about where to focus next! Actually, I was intending to look at the egl_render component soon because I think that hello_teapot and hello_videocube are really cool and they combine both OpenGL and Op...
by jannewmarch
Fri Nov 07, 2014 10:20 am
Forum: OpenMAX
Topic: OpenGL, OpenMAX ebook available
Replies: 7
Views: 3461

OpenGL, OpenMAX ebook available

My ebook on programming the RPi's Broadcom GPU is now up to version 1.0. There is still plenty more to do, but it now covers drawing simple graphics using Dispmanx and OpenGL ES, and rendering audio, images and video using OpenMAX IL. It is at http://jan.newmarch.name/RPi/
by jannewmarch
Fri Nov 07, 2014 10:15 am
Forum: OpenMAX
Topic: ilclient_enable_port_buffers() always fails for audio_decode
Replies: 2
Views: 1877

Re: ilclient_enable_port_buffers() always fails for audio_de

That's because it doesn't support these formats. From http://www.raspberrypi.org/forums/viewtopic.php?f=70&t=28313&p=272804#p272804 From jamesh: "Checked with the team. The way it works is that the component passes back success for all the codecs it can potentially support. (i.e. all the codecs we'v...
by jannewmarch
Mon Nov 03, 2014 9:58 am
Forum: OpenMAX
Topic: newbie question
Replies: 7
Views: 2674

Re: newbie question

As far as I know, you are out of luck. If you want OpenMAX then the RPi libraries are only IL. If you want (say) AL or SL, you will probably have to put it on top of IL yourself. LIM has an implementation of AL, you could try that.
by jannewmarch
Mon Oct 13, 2014 4:22 am
Forum: OpenMAX
Topic: openmax programming guide
Replies: 3
Views: 6069

Re: openmax programming guide

I'm now rewriting all my OpenMAX stuff specifically for the RPi. It will be an ongoing project and also includes OpenGL It is at http://jan.newmarch.name/RPi/ "Programming AudioVideo on the Raspberry Pi GPU". It is still at a fairly early stage but may be useful anyway.
by jannewmarch
Tue Sep 02, 2014 12:21 pm
Forum: OpenMAX
Topic: Reading an image using OMX.broadcom.image_read
Replies: 4
Views: 5301

Reading an image using OMX.broadcom.image_read

Has anyone succeeded in reading an image using the OMX.broadcom.image_read component? It has one (output) port that I have disabled, but when I ask to transition to Idle state I get an OMX_ErrorInsufficientResources event and it stays in Loaded state. The URL I am using is a relative local file "ima...
by jannewmarch
Tue Sep 02, 2014 12:05 pm
Forum: OpenMAX
Topic: Audio PCM rendering, transition to OMX_StateIdle after alloc
Replies: 2
Views: 2444

Re: Audio PCM rendering, transition to OMX_StateIdle after a

That one I can help with: code that works (for me at least!) is in the OpenMAX chapter of my Linux Sound book: http://jan.newmarch.name/LinuxSound/Sampled/OpenMAX/http://jan.newmarch.name/LinuxSound/Sampled/OpenMAX/

Go to advanced search