Go to advanced search

by hjimbens
Sun Mar 29, 2020 2:06 pm
Forum: Graphics, sound and multimedia
Topic: Span images/videos across two monitors 3840x1080
Replies: 26
Views: 1869

Re: Span images/videos across two monitors 3840x1080

I finally managed to get the SAND frames into GL textures. The trick is to not try to get it into a single texture with eglCreateImageKHR, but to create a separate texture for each SAND strip. So for a 3840x2160 4K video you use 30 128x2160 textures. I don't have to many test files, but full hd file...
by hjimbens
Thu Mar 26, 2020 7:32 pm
Forum: Graphics, sound and multimedia
Topic: Span images/videos across two monitors 3840x1080
Replies: 26
Views: 1869

Re: Span images/videos across two monitors 3840x1080

Thank you for your replies 6by9 and dividuum. I will try to explain in more detail what I am seeing. Below is my code that tries to create a GL texture from a vcsm_handle: GLuint GetTextureForVcsmHandle (EGLDisplay inDisplay, int inVcsmHandle, int inWidth, int inHeight) { static const char* sAttrNam...
by hjimbens
Thu Mar 26, 2020 4:10 pm
Forum: Graphics, sound and multimedia
Topic: Span images/videos across two monitors 3840x1080
Replies: 26
Views: 1869

Re: Span images/videos across two monitors 3840x1080

@dividuum, did you manage to get HEVC into GL textures? I think I have managed to get gpu backed frames from ffmpeg. They seem to be in SAND format. When I try to create an image for them with eglCreateImageKHR (inDisplay, EGL_NO_CONTEXT, EGL_LINUX_DMA_BUF_EXT, NULL, attribs), using MMAL_ENCODING_YU...
by hjimbens
Thu Mar 26, 2020 9:18 am
Forum: Graphics programming
Topic: Where can I find sources for ffmpeg 7:4.1.4-1+rpt7~deb10u1
Replies: 8
Views: 376

Re: Where can I find sources for ffmpeg 7:4.1.4-1+rpt7~deb10u1

Thank you @rpdom. My /etc/apt/sources.list.d/raspi.list looked like deb http://archive.raspberrypi.org/debian/ buster main # Uncomment line below then 'apt-get update' to enable 'apt-get source' #deb-src http://archive.raspberrypi.org/debian/ buster main Uncommenting the last line did the trick. Now...
by hjimbens
Wed Mar 25, 2020 8:35 pm
Forum: Graphics programming
Topic: Where can I find sources for ffmpeg 7:4.1.4-1+rpt7~deb10u1
Replies: 8
Views: 376

Re: Where can I find sources for ffmpeg 7:4.1.4-1+rpt7~deb10u1

Thank you @6by9. Thats puzzling. I get: [email protected]:~/source $ apt source ffmpeg Reading package lists... Done NOTICE: 'ffmpeg' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/multimedia-team/ffmpeg.git Please use: git clone https://salsa.debian.org/multimedia...
by hjimbens
Wed Mar 25, 2020 1:34 pm
Forum: Graphics programming
Topic: Where can I find sources for ffmpeg 7:4.1.4-1+rpt7~deb10u1
Replies: 8
Views: 376

Re: Where can I find sources for ffmpeg 7:4.1.4-1+rpt7~deb10u1

Thank you @fruitoftheloom. The link you gave points to the standard Debian package page libavcodec58. In the sideline there are four links under the header 'Download Source Package'. I have downloaded and unpacked them all, but I cannot find the files libavcodec/rpi_zc.c and libavcodec/rpi_zc.h. Whe...
by hjimbens
Wed Mar 25, 2020 12:07 pm
Forum: Graphics programming
Topic: Where can I find sources for ffmpeg 7:4.1.4-1+rpt7~deb10u1
Replies: 8
Views: 376

Where can I find sources for ffmpeg 7:4.1.4-1+rpt7~deb10u1

I am trying to get ffmpeg (libavcodec58/testing,now 7:4.1.4-1+rpt7~deb10u1, the latest?) to decode an HEVC file into textures for displaying with OpenGL on X11 with fkms on a Pi4. To understand what is happening I have been looking at https://github.com/RPi-Distro/ffmpeg/tree/buster-rpt/libavcodec a...
by hjimbens
Tue Mar 10, 2020 9:59 pm
Forum: Graphics, sound and multimedia
Topic: FFmpeg hevc decoding
Replies: 2
Views: 316

Re: FFmpeg hevc decoding

The temporary Pi4 HEVC decoder that uses memmapped register ranges shows up as an FFmpeg hwaccel, not as an decoder. With ffmpeg -hwaccels I get vdpau vaapi drm rpi rpi I assume I have to use the drm hwaccel or one of the two rpi hwaccels. When I enumerate the hwconfigs for the hevc codec with avco...
by hjimbens
Tue Mar 10, 2020 4:04 pm
Forum: Graphics, sound and multimedia
Topic: FFmpeg hevc decoding
Replies: 2
Views: 316

FFmpeg hevc decoding

I am trying to get some hardware accelerated hevc on a Pi4. I am using ffmpeg 7:4.1.4-1+rpt7~deb10u1. It shows three codecs: hevc, hevc_rpi, hevc_v4l2m2m. If I am correct, hevc is a software codec, hevc_rpi is a codec for Pi3 but it cannot be used with fkms and hevc_v4l2m2m is the codec for hardware...
by hjimbens
Tue Nov 19, 2019 12:38 pm
Forum: Graphics programming
Topic: Application hangs
Replies: 0
Views: 517

Application hangs

We have an application that plays videos using mmal and audio via OpenMaxIL. Usually the application hangs within a day, sometimes within a few hours, sometimes it plays fine for a whole day. Below is gdb output from one of the freezes: (gdb) info threads Id Target Id Frame * 1 Thread 0xafd83ad0 (LW...
by hjimbens
Wed Nov 13, 2019 8:16 am
Forum: Graphics programming
Topic: MMal saying "unhandled 128"
Replies: 4
Views: 453

Re: MMal saying "unhandled 128"

Should be this one: https://github.com/mesa3d/mesa/blob/cac51829920ae6df05459c7f0884150fefdc31a3/src/mesa/state_tracker/st_program.h#L96 Thank you very much. I grepped through all .so files but I could not find the source of the string. I grepped through the kernels in /boot and the only candidate ...
by hjimbens
Tue Nov 12, 2019 3:21 pm
Forum: Graphics programming
Topic: MMal saying "unhandled 128"
Replies: 4
Views: 453

MMal saying "unhandled 128"

Some videos when played with mmal produce a lot of "unhandled 128" lines on stdout. What does it mean? Which library is producing this output?
by hjimbens
Tue Aug 20, 2019 10:08 am
Forum: Graphics programming
Topic: Relationship between mode set with `tvservice` and DRM
Replies: 8
Views: 2687

Re: Relationship between mode set with `tvservice` and DRM

After cloning and building https://cgit.freedesktop.org/mesa/drm/t ... s/modetest and calling with

Code: Select all

builddir/tests/modetest/modetest -M vc4 -d -s [email protected]:1920x1080-60
I get

Code: Select all

setting mode [email protected] on connectors 51, crtc 49
failed to set mode: Permission denied
and nothing changes.
by hjimbens
Thu Aug 01, 2019 10:21 am
Forum: Graphics programming
Topic: Playing video in an OpenGL(ES) application on Pi4
Replies: 1
Views: 1516

Playing video in an OpenGL(ES) application on Pi4

I am trying to integrate hardware accelerated video playback in an OpenGL(ES) application with zero copy. /opt/vc/src/hello_pi/hello_videocube/video.c shows how to do that for a Pi1-3 with OpenMAX egl_render. For the Pi4 there are some challenges. First of all there are two different ways to do Open...
by hjimbens
Tue Jul 02, 2019 8:47 am
Forum: OpenGLES
Topic: Full screen OpenGL ES on Pi 4
Replies: 23
Views: 11083

Re: Full screen OpenGL ES on Pi 4

- is is possible to make OpenGL ES render to a dispmanx layer as in older RPis using new drivers? No, as far as I can tell that is not possible. - is it possible to use OpenGL ES without X? Yes, by using GBM/DRM. My application (RPi3-) application used OpenGL ES on Dispmanx, OpenMax to render video...
by hjimbens
Thu Jun 27, 2019 8:31 am
Forum: OpenGLES
Topic: Full screen OpenGL ES on Pi 4
Replies: 23
Views: 11083

Re: Full screen OpenGL ES on Pi 4

In another thread https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=243372&start=400#p1486236 , 6by9 explained There is no firmware driver for the 3D hardware on the Pi4, therefore there will be no "legacy" OpenGLES driver. . In the past I used gbm (drm) with the fkms driver to use full screen...
by hjimbens
Wed Jun 26, 2019 1:27 pm
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 945
Views: 134037

Re: Raspberry Pi 4 Thread - general discussion

When I change to hello_triangle demo to not bail out on a Pi 4, it hangs in the same eglCreateContext. Is there any way to get OpenGL ES/Dispmanx applications working on the Pi 4? No it will need minor changes to the code. The good news is after the changes the code will run unchanged on earlier Pi...
by hjimbens
Wed Jun 26, 2019 12:22 pm
Forum: OpenGLES
Topic: Full screen OpenGL ES on Pi 4
Replies: 23
Views: 11083

Full screen OpenGL ES on Pi 4

The Pi 4 seems to be very exciting new hardware. I can't wait to see the performance improvements. My application uses the legacy OpenGL ES driver in combination with Dispmanx. I compiled my application on a fresh Buster image and everything works fine on a Pi 3 B+. Unfortunately the application doe...
by hjimbens
Wed Jun 26, 2019 11:01 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 945
Views: 134037

Re: Raspberry Pi 4 Thread - general discussion

My application that is similar to the hello_pi demos hangs in the eglCreateContext call on a Pi 4. I disabled the FKMS driver in config.txt and I am using a buster image that works fine on a Pi 3B+. When I change to hello_triangle demo to not bail out on a Pi 4, it hangs in the same eglCreateContext...
by hjimbens
Thu Apr 19, 2018 12:08 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3 B+ lockups
Replies: 464
Views: 72688

Re: Raspberry Pi 3 B+ lockups

I just did an update with sudo rpi-update . I also added arm_freq=1200 to /boot/config.txt so it is running with arm_freq=1200 and sdram_freq=450. It is more stable than before, but it still locks up under load (I am running an application that decodes two mpeg-dash streams and displays them using O...
by hjimbens
Mon Apr 16, 2018 7:53 am
Forum: OpenGLES
Topic: function to return available GPU memory?
Replies: 2
Views: 6337

Re: function to return available GPU memory?

As far as I know there is no direct call to query this, but popen ("sudo vcdbg reloc stats", "r") returns a FILE pointer to a file containing something like total space allocated is 236M, with 234M relocatable, 2.3M legacy and 0 offline 143M free memory in 35 free block(s) You can parse it to read t...
by hjimbens
Thu Apr 05, 2018 2:57 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3 B+ lockups
Replies: 464
Views: 72688

Re: Raspberry Pi 3 B+ lockups

Earlier in this thread I reported that I have two Pi 3 B+'s, one of which repeatedly freezes after a few minutes, even with "arm_freq=700". However after adding "arm_freq=1200 and "sdram_freq=450" to config.txt I have not seen any freezes yet. Right now I am trying with only "sdram_freq=450" and I h...
by hjimbens
Wed Mar 28, 2018 7:38 am
Forum: Troubleshooting
Topic: Raspberry Pi 3 B+ lockups
Replies: 464
Views: 72688

Re: Raspberry Pi 3 B+ lockups

I have a similar situation. I have two Pi 3 B+. The first one locks up after five or ten minutes of operation. Screen freezes, ssh connections freeze, the Pi no longer responds to keyboard. Both red and green leds are on. I am using the official power supply. I monitor temperature via a separate ssh...
by hjimbens
Mon Jan 08, 2018 8:07 am
Forum: Advanced users
Topic: Boot sometimes fails with kernel panic
Replies: 5
Views: 3727

Re: Boot sometimes fails with kernel panic

To investigate the issue I monitor the serial port of three Pi's from a fourth Pi. I didn't know you could monitor more than one serial port from a single Pi. How are you doing this? Are you using USB to serial adaptors? Yes, I am using three USB to serial adapters. As for the crashes, try underclo...

Go to advanced search