Search found 24 matches
- Mon Feb 15, 2021 7:39 am
- Forum: C/C++
- Topic: uv4l with OpenCV
- Replies: 2
- Views: 211
Re: uv4l with OpenCV
So it is not enough to close the resource that use the uv4l device?
- Fri Feb 12, 2021 11:56 am
- Forum: C/C++
- Topic: uv4l with OpenCV
- Replies: 2
- Views: 211
uv4l with OpenCV
Hi, I am using uv4l with raspi-disp driver to take a "screenshot" of what is displaying, with OpenCv in C++ project. This is uv4l command that I launch: /usr/bin/uv4l -f -k --sched-fifo --mem-lock --sched-rr --config-file=/etc/uv4l/uv4l-raspidisp.conf --driver raspidisp --driver-config-fil...
- Fri Jan 08, 2021 8:26 am
- Forum: Graphics, sound and multimedia
- Topic: GStreamer HEVC
- Replies: 3
- Views: 398
Re: GStreamer HEVC
Thanks for the answer, is more clear now.
- Mon Dec 28, 2020 8:27 am
- Forum: Graphics, sound and multimedia
- Topic: GStreamer HEVC
- Replies: 3
- Views: 398
Re: GStreamer HEVC
Nobody can tell me if gstreamer is able to hardware decode HEVC and H264?
Nobody use Qt framework to playback videos?
Nobody use Qt framework to playback videos?
- Mon Dec 21, 2020 2:24 pm
- Forum: Graphics, sound and multimedia
- Topic: GStreamer HEVC
- Replies: 3
- Views: 398
GStreamer HEVC
Hello, I couldn't find a direct answer about my doubt. Is gstreamer capable of decoding h265 video with hardware acceleration? I see that gstreamer has avdec_hevc_rpi, but I don't understand if is software decoder or hardware. Actually I was wondering if Qt framework will be able to playback 4k vide...
- Thu Apr 16, 2020 7:22 am
- Forum: OpenMAX
- Topic: OMXPlayer over mmal layer
- Replies: 1
- Views: 1156
OMXPlayer over mmal layer
Hi, I am using OMXPlayer project to play video and I would like to render it over a image rendered with MMAL ( or OMX if helps) and the other way around. The problem is the screen blanking. I know that to solve this problem I have to set OMX_DISPLAY_ALPHA_FLAGS_DISCARD_LOWER_LAYERS flag, but with th...
- Wed Feb 05, 2020 2:25 pm
- Forum: OpenMAX
- Topic: render FreeType font to openmax
- Replies: 12
- Views: 3345
Re: render FreeType font to openmax
I am testing using your MMAL render example implementing Cairo library. It will show just a grey square, not my image with my text. Here how I modified your render.c /* * MMAL Video render example app * * Copyright © 2017 Raspberry Pi (Trading) Ltd. * * This file is subject to the terms and conditio...
- Wed Feb 05, 2020 2:21 pm
- Forum: OpenMAX
- Topic: render FreeType font to openmax
- Replies: 12
- Views: 3345
Re: render FreeType font to openmax
The following files are for my program using IL and ilclient: omxiv.c #include <stdio.h> #include <stdlib.h> #include "omx_render.h" #include "bcm_host.h" #include <cairo/cairo.h> #ifndef VERSION #define VERSION "UNKNOWN" #endif #define ALIGN16(x) (((x+0xf)>>4)<<4) stat...
- Wed Feb 05, 2020 10:46 am
- Forum: OpenMAX
- Topic: render FreeType font to openmax
- Replies: 12
- Views: 3345
Re: render FreeType font to openmax
I did exactly what you said, but didn't work. It works with 10000x800 but not with 20000x800 so I guess there is a limit even if I crop the src. But I cannot find any reference about this limit. The only thing there is in the middle is the resize component, but I cannot figure out how to set the buf...
- Tue Feb 04, 2020 2:38 pm
- Forum: OpenMAX
- Topic: render FreeType font to openmax
- Replies: 12
- Views: 3345
Re: render FreeType font to openmax
Thank you. I investigate MMAL and it could works for my needs, but I decided to stick with IL because I don't have time to rewrite my code. I solved my problem with Cairo library. Now I can create a buffer with image data with my text. I have another question now: IL or MMAL can handle a huge buffer...
- Wed Jan 29, 2020 1:50 pm
- Forum: OpenMAX
- Topic: render FreeType font to openmax
- Replies: 12
- Views: 3345
Re: render FreeType font to openmax
Thanks for your answer. Is using MMAL and FreeType the best way to render a text without windows manager and with a transparent background or there are a better and easier solutions? I couldn't find any example with those 2 components together, there are any demo code avalaible? I am not very famili...
- Wed Jan 29, 2020 10:04 am
- Forum: OpenMAX
- Topic: render FreeType font to openmax
- Replies: 12
- Views: 3345
Re: render FreeType font to openmax
Any help with this?
- Fri Dec 20, 2019 12:13 pm
- Forum: OpenMAX
- Topic: render FreeType font to openmax
- Replies: 12
- Views: 3345
render FreeType font to openmax
Hi, I am new on graphic programming and I am working on Raspberry Pi 4 without X11. I am trying to display a text on openmax layer. I am using FreeType library. I started from this project https://github.com/HaarigerHarald/omxiv, that show an image on openmax and it works well, so I try to combine i...
- Fri Nov 08, 2019 2:17 pm
- Forum: OpenMAX
- Topic: OMX resize
- Replies: 2
- Views: 1747
Re: OMX resize
Thank you so much! I solved my problem. This is the code that I used to crop in the center of image after resize it to fit to the bigger axie: dispConfRT.src_rect.x_offset = ALIGN2((int)(dispConf->cImageWidth - dispConf->width) / 2); dispConfRT.src_rect.y_offset = ALIGN2((int)(dispConf->cImageHeight...
- Fri Nov 08, 2019 10:39 am
- Forum: OpenMAX
- Topic: OMX resize
- Replies: 2
- Views: 1747
OMX resize
I found this project: https://github.com/HaarigerHarald/omxiv that is perfect for my needs, decode and render an image. I am trying to modify the code to render the image always to fill the rect but keeping the aspect ratio. For example with an image 500x500 I want to display it on a rectangle 500x8...
- Wed Nov 06, 2019 7:24 am
- Forum: Graphics programming
- Topic: How to use mmal to decode jpeg image
- Replies: 7
- Views: 5354
Re: How to use mmal to decode jpeg image
dividuum your code show the image, but I cannot manage to modify it to resize the image and position.
For example how can I show a FHD image in bottom right corner of the screen with 500x500px resolution and keep show the all other screen portion?
For example how can I show a FHD image in bottom right corner of the screen with 500x500px resolution and keep show the all other screen portion?
- Mon Oct 28, 2019 3:53 pm
- Forum: Graphics programming
- Topic: How to use mmal to decode jpeg image
- Replies: 7
- Views: 5354
Re: How to use mmal to decode jpeg image
Thank you, with a non progressive jpeg it works. Now I missing last step. I am tring to mix this 2 examples: https://github.com/6by9/userland/blob/hello_mmal/host_applications/linux/apps/hello_pi/hello_mmal_jpeg/jpeg.c https://github.com/6by9/mmal_render_example But it shows a grey square with black...
- Mon Oct 28, 2019 11:32 am
- Forum: Graphics programming
- Topic: How to use mmal to decode jpeg image
- Replies: 7
- Views: 5354
Re: How to use mmal to decode jpeg image
Thanks for the code, but in my enviroment doesn't work. There is a problem on line: while ((buffer = mmal_queue_get(context.queue)) != NULL) It never enter the loop. I am using Raspberry Pi 3B and this Raspbian version: Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/...
- Wed Oct 23, 2019 12:09 pm
- Forum: Graphics programming
- Topic: hello_jpeg example not working
- Replies: 7
- Views: 1867
Re: hello_jpeg example not working
Hi @alexander_rpi,
I didn't solve the problem, but now I am using SDL library that seem to work well: https://www.libsdl.org/
Maybe can help you too.
I didn't solve the problem, but now I am using SDL library that seem to work well: https://www.libsdl.org/
Maybe can help you too.
- Tue Oct 22, 2019 10:50 am
- Forum: Graphics programming
- Topic: hello_jpeg example not working
- Replies: 7
- Views: 1867
hello_jpeg example not working
Hi, I am trying to run hello_pi examples, in particular hello_jpeg, for my project. Everything is ok when I build, but when I run hello_jpeg.bin it return this messages and nothing happen: Did not receive executing stat -1 No EOS event on image decoder -1 No EOS event on image resizer -1 All other e...
- Tue Oct 22, 2019 7:41 am
- Forum: Graphics programming
- Topic: Raspberry Pi 3 B Decode and render image with GLES2
- Replies: 1
- Views: 1446
Raspberry Pi 3 B Decode and render image with GLES2
I am new with graphic programming and what I am trying to do is to decode and display with HW acceleration a JPEG on screen in specific position and dimension without X11. All example that I found doesn't work (https://www.raspberrypi.org/forums/viewtopic.php?f=33&t=57721&p=1555166#p1555166)...
- Mon Oct 21, 2019 2:53 pm
- Forum: C/C++
- Topic: OpenMAX+GLES2 : Decode and render JPEG (with source code)
- Replies: 24
- Views: 17252
Re: OpenMAX+GLES2 : Decode and render JPEG (with source code)
Is it still working on last raspbian version (Buster) on Raspberry Pi 3 B? When compile I get the following error /usr/bin/ld: video/VideoObjects/VideoObjectGLES2_EGL.o: undefined reference to symbol 'eglCreateImageKHR' /usr/bin/ld: //opt/vc/lib/libbrcmEGL.so: error adding symbols: DSO missing from ...
- Fri Sep 20, 2019 6:37 am
- Forum: Graphics programming
- Topic: Raspberry pi 4B - GStreamer
- Replies: 3
- Views: 2822
Re: Raspberry pi 4B - GStreamer
First of all thanks for the answer and sorry to post in the wrong forum, can I change to the correct one?
I will try to follow your indications.
I will try to follow your indications.
- Wed Sep 18, 2019 2:36 pm
- Forum: Graphics programming
- Topic: Raspberry pi 4B - GStreamer
- Replies: 3
- Views: 2822
Raspberry pi 4B - GStreamer
Hello, I am trying to playback a FHD H.264 video on my new Raspberry Pi 4 B - 4GB with Buster using gstreamer. I installed gstreamer from the repo, version 1.14.4 This are the command and the result that I tried: gst-launch-1.0 filesrc location=Setteventi.mp4 ! qtdemux ! h264parse ! omxh264dec ! kms...