Go to advanced search

by hjimbens
Thu Apr 01, 2021 1:17 pm
Forum: Graphics programming
Topic: decoding h264 with mmal on latest image
Replies: 0
Views: 221

decoding h264 with mmal on latest image

It seems to me that decoding h264 with mmal with the latest image (2021-03-04-raspios-buster-armhf-lite.zip) is less stable than before. In particular the executable produced with the x11 branch of https://github.com/6by9/drm_mmal often hangs. The following instructions on a clean image build the ex...
by hjimbens
Thu Feb 04, 2021 4:00 pm
Forum: SDK
Topic: [Solved] No USB serial device when plugging in Pico
Replies: 28
Views: 3769

Re: No USB serial device when plugging in Pico

If you reread my steps, you'll see that my problem isn't with using minicom, I've done that several times before on this machine with other MCU's. The serial device is just not showing up. I already added my user to dialout when I first setup the machine. When you go to the "Getting started wi...
by hjimbens
Thu Feb 04, 2021 2:20 pm
Forum: SDK
Topic: [Solved] No USB serial device when plugging in Pico
Replies: 28
Views: 3769

Re: No USB serial device when plugging in Pico

On Ubuntu 20.04 you have to run sudo minicom -b 115200 -o -D /dev/ttyACM0 because the the default user is not member of the dialout group and cannot open /dev/ttyACM0. Unfortunately minicom does not complain, it just quits (from a Raspberry Pi, sudo is not needed because pi is member of the group di...
by hjimbens
Thu Feb 04, 2021 1:47 pm
Forum: SDK
Topic: [Solved] No USB serial device when plugging in Pico
Replies: 28
Views: 3769

Re: No USB serial device when plugging in Pico

I have been trying to follow https://www.raspberrypi.org/documentation/pico/getting-started/ on Ubuntu 20.04 and on MacOS Catalina. On Ubuntu, the "Blink an LED" example works fine. I can follow all five steps of the "Hello World" example, I can even see /dev/ttyACM0 appear, but ...
by hjimbens
Wed Jul 29, 2020 9:47 am
Forum: Graphics programming
Topic: Application hangs
Replies: 5
Views: 1661

Re: Application hangs

I am sorry. I have gone through my notes and I found that this particular hang was probably caused by https://github.com/popcornmix/omxplayer/issues/749. It was fixed by a change in the firmware on Nov 1, 2019, https://github.com/raspberrypi/firmware/commit/b79618b5db4e4e7c02f9ad9d3ada51713825313e. ...
by hjimbens
Tue Jul 28, 2020 11:44 am
Forum: Graphics programming
Topic: Application hangs
Replies: 5
Views: 1661

Re: Application hangs

My application was leaking resources, in particular VC memory.
by hjimbens
Wed Jul 22, 2020 12:19 pm
Forum: Troubleshooting
Topic: Scrambled fullscreen video in Chromium after latest Pi Os update!
Replies: 98
Views: 7341

Re: Scrambled fullscreen video in Chromium after latest Pi Os update!

Possible fix for this has been determined (something weird with DMA). Just to confirm that everyone above seeing this is on a 8GB Pi4? I double checked. The problem with the distinctive garbled/striped pattern as described in https://github.com/raspberrypi/linux/issues/3665 occurs both on 8GB and o...
by hjimbens
Wed Jul 22, 2020 10:18 am
Forum: General discussion
Topic: 5.4 update today makes boot time longer (RPOS 32 Bit)
Replies: 44
Views: 2789

Re: 5.4 update today makes boot time longer (RPOS 32 Bit)

Since the latest update I have kind of the same problem. In chromium video still works fine until full screen: How do I fix this? This is the same problem as https://github.com/raspberrypi/linux/issues/3665 , that happens with the 5.4 kernel when using fkms. You can work around the problem by enabl...
by hjimbens
Tue Jul 21, 2020 4:46 pm
Forum: Advanced users
Topic: Moving Linux Kernel to 5.4
Replies: 474
Views: 102340

Re: Moving Linux Kernel to 5.4

of course..here it is I am convinced that this is the same issue. I have not had any response on https://github.com/raspberrypi/linux/issues/3665 . I am not sure it cannot be reproduced by the people working on the kernel or that it is considered low priority. by the way using kms module with mpv g...
by hjimbens
Tue Jul 21, 2020 3:49 pm
Forum: Advanced users
Topic: Moving Linux Kernel to 5.4
Replies: 474
Views: 102340

Re: Moving Linux Kernel to 5.4

Looks similar but even more garbled... Thank you for pointing me there...I had the xcompmgr disabled to prevent screen tearing, but it looks like reenabking it make it work in full screen...even if some tearing comes back specially in webvideos...but at least mpv works fullscreen also.. Could you p...
by hjimbens
Tue Jul 21, 2020 3:48 pm
Forum: Advanced users
Topic: Moving Linux Kernel to 5.4
Replies: 474
Views: 102340

Re: Moving Linux Kernel to 5.4

AkulaMD wrote:
Tue Jul 21, 2020 3:44 pm
Hi, may i know how to disable it? Thank you in advance.
To disable compositor:

Code: Select all

sudo rm /etc/xdg/autostart/xcompmgr.desktop
by hjimbens
Tue Jul 21, 2020 2:50 pm
Forum: Advanced users
Topic: Moving Linux Kernel to 5.4
Replies: 474
Views: 102340

Re: Moving Linux Kernel to 5.4

Anyway I reverted back to vc4-fkms-v3d overlay that was working great in kernel 4.19.118 and everything is back to "normal" except that with mpv is showing screen all garbled when I set it full screen...all normal when I go in windowed mode.... Does the garbled screen look similar to the ...
by hjimbens
Mon Jul 13, 2020 11:40 am
Forum: OpenGLES
Topic: Best practice in shaders....
Replies: 3
Views: 994

Re: Best practice in shaders....

It is hard to imagine that there would be a performance difference. It is even harder to imagine that the second option would be slower. If you are using the fkms or kms open source driver you can inspect the generated code by starting you software with export V3D_DEBUG=qpu For a typical fragment sh...
by hjimbens
Fri Jul 10, 2020 7:09 am
Forum: Graphics programming
Topic: Glitch in my video using OPENCV
Replies: 2
Views: 623

Re: Glitch in my video using OPENCV

This might be a case of the tearing when using fkms as described in https://www.raspberrypi.org/forums/viewtopic.php?t=259876 . I am not posting my code because even the most simple example of any code that tries to play a video has the same issue. In my experience the chances of getting a useful re...
by hjimbens
Sat Jul 04, 2020 12:23 pm
Forum: Graphics programming
Topic: Vrmac Video
Replies: 2
Views: 609

Re: Vrmac Video

That source code also answers the question I saw here, “how do I decode video into GLES texture”. In the README it says: The C++ pieces compiled into Vrmac.dll and libVrmac.so are currently closed source. If I am correct that is where video is decoded into GLES textures. So I am afraid that not a l...
by hjimbens
Tue Jun 23, 2020 8:41 am
Forum: Graphics programming
Topic: MMAL decoding to texture with dma_bufs on GBM
Replies: 0
Views: 361

MMAL decoding to texture with dma_bufs on GBM

I am trying to decode h264 with MMal to an OpenGLES texture with a GBM application. A similar application on X11 that uses the X11 branch of https://github.com/6by9/drm_mmal works fine. Output buffers for the vc.ril.isp component are created as follow. First a dumb buffer is created with DRM_IOCTL_M...
by hjimbens
Thu Jun 04, 2020 9:54 am
Forum: General discussion
Topic: STICKY: Raspberry Pi OS (64 bit) beta test version feedback
Replies: 793
Views: 179705

Re: Raspberry Pi OS (64 bit) beta test version

Does the beta 64bit image support KMS? The image boots fine to a desktop with dtoverlay=vc4-fkms-v3d , but my screen shows nothing when I switch to dtoverlay=vc4-kms-v3d-pi4 in /boot/config.txt. dmesg shows ... [ 19.679456] [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:65...
by hjimbens
Sat May 30, 2020 11:45 am
Forum: Graphics, sound and multimedia
Topic: Headless graphics programming?
Replies: 2
Views: 444

Re: Headless graphics programming?

If you add

Code: Select all

hdmi_force_hotplug=1
hdmi_group=1 # CEA
hdmi_mode=4 # 720p60

to /boot/config.txt, there is no need to attach a screen. When you use Raspbian Buster Lite and install the stuff needed to run X11, you can start a basic Xserver with xinit and you can use hardware accelerated OpenGLES.
by hjimbens
Wed May 27, 2020 8:30 am
Forum: Graphics programming
Topic: Garbled screen with latest 5.4 firmware and fkms
Replies: 3
Views: 642

Re: Garbled screen with latest 5.4 firmware and fkms

Thank you @pik33! You are right. When I add eglSwapInterval (mEGLDisplay, 0); , to swap immediately and not wait for vsync, the output is ok. When I change it to eglSwapInterval (mEGLDisplay, 1); , to wait for vsync, the output is garbled again. Could you take a picture of the garbled screen you see...
by hjimbens
Tue May 26, 2020 9:43 am
Forum: Graphics programming
Topic: Garbled screen with latest 5.4 firmware and fkms
Replies: 3
Views: 642

Garbled screen with latest 5.4 firmware and fkms

On the raspberry firmware repository there is an issue https://github.com/raspberrypi/firmware/issues/1382 about the name of the high quality camera that was solved with a firmware update. Applying that firmware update made my application produce a garbled screen. This was reported in the same issue...
by hjimbens
Thu May 14, 2020 3:00 pm
Forum: Advanced users
Topic: Moving Linux Kernel to 5.4
Replies: 474
Views: 102340

Re: Moving Linux Kernel to 5.4

I just ran sudo rpi-update to check whether https://github.com/raspberrypi/firmware/issues/1382 was fixed and because 5.4 is now on the master branch I accidentally updated to 5.4. My OpenGLES2 application on X11 stopped working. It showed a garbled screen where the pixels seemed to be transposed in...
by hjimbens
Mon May 11, 2020 8:26 am
Forum: Graphics programming
Topic: Playing video in an OpenGL(ES) application on Pi4
Replies: 5
Views: 2448

Re: Playing video in an OpenGL(ES) application on Pi4

I submitted a pull request https://github.com/6by9/drm_mmal/pull/3 that fixes the coloured stripes problem. If you apply this pull request you can see the video. The annoying "unhandled 128" lines are produced by Mesa as dividuum kindly pointed out in https://www.raspberrypi.org/forums/vie...
by hjimbens
Mon Apr 13, 2020 1:02 pm
Forum: Advanced users
Topic: Moving Linux Kernel to 5.4
Replies: 474
Views: 102340

Re: Moving Linux Kernel to 5.4

Is the stateless v4l2 HEVC codec available in this kernel? In /lib/modules/5.4.29-v7l+/kernel/drivers/staging/media/rpivid/ there is a rpivid_hevc.ko. When I load it with sudo modprobe rpivid_hevc , I would expect a new device to appear such as /dev/video19, but nothing happens. I can see the module...
by hjimbens
Fri Apr 10, 2020 9:57 am
Forum: Advanced users
Topic: Moving Linux Kernel to 5.4
Replies: 474
Views: 102340

Re: Moving Linux Kernel to 5.4

Thank you 6by9. I compiled FFmpeg from https://github.com/popcornmix/FFmpeg/tree/kodi_v4l2_1, which was surprisingly easy on a Pi4 with make -j4, and now I get AV_PIX_FMT_DRM_PRIME frames. The only problem I encountered is missing dts and pts timestamps in those frames. This seems to be caused by ht...
by hjimbens
Thu Apr 09, 2020 10:16 am
Forum: Advanced users
Topic: Moving Linux Kernel to 5.4
Replies: 474
Views: 102340

Re: Moving Linux Kernel to 5.4

Read the V4L2 spec. Originally it had webcam, or "capture", devices, and overlay render, or "output" devices. So "capture" creates data, and "output" consumes it. This naming becomes pretty confusing when it comes to a memory to memory device. It consumes dat...

Go to advanced search