Go to advanced search

by 6by9
Fri Sep 21, 2018 4:38 pm
Forum: OpenMAX
Topic: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?
Replies: 8
Views: 109

Re: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?

Again, a simple example app that is showing what you are doing is far easier than trying to guess what you're doing.
by 6by9
Fri Sep 21, 2018 4:18 pm
Forum: Camera board
Topic: Raspiraw issue: permanent buffer delay of 1 useless frame
Replies: 11
Views: 647

Re: Raspiraw issue: permanent buffer delay of 1 useless frame

"vcgencmd version" please to tell us what version of firmware you are using. If you haven't updated recently then please do so.
by 6by9
Fri Sep 21, 2018 3:16 pm
Forum: OpenGLES
Topic: EGLImageKHR to OpenMax
Replies: 19
Views: 237

Re: EGLImageKHR to OpenMax

All Clear. Another cuorisity question: could i pass the vcsm_buffer retrieve with vcsm_buffer = (unsigned char *) vcsm_lock_cache(vcsm_info.vcsm_handle, VCSM_CACHE_TYPE_HOST, &cache_type) to the pBuffer and the proper size to the EmptyThisBuffer? Of course the encoder input port is set with OMX_COL...
by 6by9
Fri Sep 21, 2018 2:00 pm
Forum: OpenGLES
Topic: EGLImageKHR to OpenMax
Replies: 19
Views: 237

Re: EGLImageKHR to OpenMax

I have another question there is a workaround on this requirement Do note the requirement on RSO buffers to be a power of two in width. ? Because it limits my resolution only to the ones having power of two. Thanks a lot for your very professional answer. Nope, AIUI it's a limitation of the hardwar...
by 6by9
Fri Sep 21, 2018 1:56 pm
Forum: OpenMAX
Topic: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?
Replies: 8
Views: 109

Re: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?

I think I found the answer to this one myself: Setting zero-copy on either the decoder input or output will cause the error. This is somehow strange, since zero copy worked on the example2 discussed above... Sorry, mmal_graph is a wrapper I've never used so don't know what is likely to be going on....
by 6by9
Fri Sep 21, 2018 10:43 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Multiple RPI on I2C bus and hat EPROM
Replies: 5
Views: 164

Re: Multiple RPI on I2C bus and hat EPROM

GPIOs 2&3 can be used as an I2C master using BSC1 (Broadcom Serial Controller 1) via alt function 0. That peripheral does NOT support functioning as a slave, nor in a multi-master situation. It therefore makes total sense to include the I2C pull-ups on them to save every person wanting to use I2C ha...
by 6by9
Fri Sep 21, 2018 10:26 am
Forum: OpenMAX
Topic: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?
Replies: 8
Views: 109

Re: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?

My blunder in https://github.com/Hexxeh/rpi-firmware/commit/c8da643e606a55971d22482ce829a6c109a6a7ad with passing in codec config out of band (which isn't actually needed by the codec as you can pass it via buffers quite happily too). I'll get a fix merged as soon as poss, but in the meantime you ca...
by 6by9
Fri Sep 21, 2018 10:10 am
Forum: OpenGLES
Topic: EGLImageKHR to OpenMax
Replies: 19
Views: 237

Re: EGLImageKHR to OpenMax

Thanks!!!! you're my saviour!! It works (rollback the firmware to the 3 of july)!! Of course i use this code only as base/educational-example on how can encode EGLimage. If i make my own application i design it with the apporpiate accuracy. I must confess to getting lost in your various hacks as to...
by 6by9
Thu Sep 20, 2018 3:58 pm
Forum: OpenMAX
Topic: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?
Replies: 8
Views: 109

Re: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?

Do you really want GL, or just to overlay some random image? For encoding GL see https://www.raspberrypi.org/forums/viewtopic.php?f=68&t=222930. It appears that 99% of the required work is there. If a random overlay then hold fire a couple of weeks. I'm finishing off a MMAL(*) component that wraps t...
by 6by9
Thu Sep 20, 2018 3:49 pm
Forum: OpenGLES
Topic: EGLImageKHR to OpenMax
Replies: 19
Views: 237

Re: EGLImageKHR to OpenMax

So close. You need the VPU MEM_HANDLE, not the vcsm handle. diff --git a/gl_scenes/vcsm_square.c b/gl_scenes/vcsm_square.c index e5117b2..b6cccbc 100644 --- a/gl_scenes/vcsm_square.c +++ b/gl_scenes/vcsm_square.c @@ -308,7 +308,7 @@ static int vcsm_square_redraw(RASPITEX_STATE *raspitex_state) image...
by 6by9
Thu Sep 20, 2018 11:09 am
Forum: Camera board
Topic: Frames dropped the longer the recording with raspivid
Replies: 4
Views: 178

Re: Frames dropped the longer the recording with raspivid

> and tried recording 200 fps video > Please note that the Raspberry Pi GPU has a bug not allowing 202fps or higher. And @6by9 always states that 120fps is save to use for 640x480. I have seen problems with 200fps as you, but 180fps is fine for me. It seems that 200fps being so near to the 202fps G...
by 6by9
Wed Sep 19, 2018 8:16 pm
Forum: General discussion
Topic: Raspbian stretch iscsi root will not boot after kernel upgrade
Replies: 4
Views: 144

Re: Raspbian stretch iscsi root will not boot after kernel upgrade

So which kernel version have you been previously running where it has been working? ("uname -a")
by 6by9
Wed Sep 19, 2018 8:13 pm
Forum: Advanced users
Topic: GPIO number for CAM_GPIO0
Replies: 12
Views: 226

Re: GPIO number for CAM_GPIO0

The PR is merged, so no need to cherry-pick anything. Those are the correct instructions for building the kernel. It sounds like the overlay hasn't been updated in /boot/overlay as it should have updated cam0-pwdn etc. Check timestamps on the overlay, and "vcdbg log msg" for any info on what it is a...
by 6by9
Wed Sep 19, 2018 3:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: pin mux setting (bcm2710-rpi-cm3, dt-blob config.txt)
Replies: 2
Views: 62

Re: pin mux setting (bcm2710-rpi-cm3, dt-blob config.txt)

I’m trying to set the pin mux at the right values and I want to do that as early as possible. What I see is that I can use the dt-blob.dts or the overlay method. The preferred method is the dt-blob.dts way. But the firmware/kernel source doesn’t have the dt-blob.dts file anymore. So I have the foll...
by 6by9
Wed Sep 19, 2018 3:07 pm
Forum: OpenGLES
Topic: EGLImageKHR to OpenMax
Replies: 19
Views: 237

Re: EGLImageKHR to OpenMax

longo92 wrote:
Wed Sep 19, 2018 2:52 pm
I obtain OMX_StreamCorrupted :(
From which call?

Post a simple complete app to github or similar and I'll try to give it a quick run to see what is going on. I'm not going to try write my own app to debug this.
by 6by9
Wed Sep 19, 2018 11:41 am
Forum: OpenGLES
Topic: EGLImageKHR to OpenMax
Replies: 19
Views: 237

Re: EGLImageKHR to OpenMax

Discussion had with said colleague.
Create your EGL target buffer with EGL_IMAGE_BRCM_VCSM and you can get the relevant handle back - see vcsm_square in raspicam for an example.
There are a number of provisos that have to be followed, but it does appear to have a good chance of working.
by 6by9
Wed Sep 19, 2018 10:52 am
Forum: OpenGLES
Topic: EGLImageKHR to OpenMax
Replies: 19
Views: 237

Re: EGLImageKHR to OpenMax

Oh, and the buffer object will always be treated as RGBX32. No other formats are supported.
by 6by9
Wed Sep 19, 2018 10:48 am
Forum: OpenGLES
Topic: EGLImageKHR to OpenMax
Replies: 19
Views: 237

Re: EGLImageKHR to OpenMax

Set the port definition with eCompressionFormat = OMX_VIDEO_CodingUnused and eColorFormat = OMX_COLOR_FormatBRCMEGL. I would expect nBufferSize to be sizeof(OMX_BRCMVEGLIMAGETYPE), or 24 bytes. Cast the buffer pointer to be a OMX_BRCMVEGLIMAGETYPE and populate the fields. As previously stated, they'...
by 6by9
Wed Sep 19, 2018 9:28 am
Forum: Advanced users
Topic: GPIO number for CAM_GPIO0
Replies: 12
Views: 226

Re: GPIO number for CAM_GPIO0

Check your overlays, and the actual state of device tree. 003521.779: dtparam: cam0-pwdn-ctrl=23 003527.200: dtdebug: Found override cam0-pwdn-ctrl 003527.222: dtparam: cam0-pwdn=5 003532.665: dtdebug: Found override cam0-pwdn 003544.844: dtparam: cam0-led-ctrl=23 003550.313: dtdebug: Found override...
by 6by9
Wed Sep 19, 2018 9:04 am
Forum: OpenGLES
Topic: EGLImageKHR to OpenMax
Replies: 19
Views: 237

Re: EGLImageKHR to OpenMax

longo92 wrote:
Wed Sep 19, 2018 7:35 am
Instead if i use MMAL encoder with MMAL_ENCODING_EGL_IMAGE could be better?
Will make no difference. It's the same underlying code, and the two formats are identical - https://github.com/raspberrypi/userland ... _il.c#L732
by 6by9
Tue Sep 18, 2018 4:24 pm
Forum: OpenGLES
Topic: EGLImageKHR to OpenMax
Replies: 19
Views: 237

Re: EGLImageKHR to OpenMax

There's little point in quoting headers from Maemo - whilst IL is supposedly standardised, there are different versions. All the versions used on Pi are at https://github.com/raspberrypi/userland/tree/master/interface/vmcs_host/khronos/IL TBH I have no idea whether parsing EGL images will work or no...
by 6by9
Tue Sep 18, 2018 12:40 pm
Forum: Camera board
Topic: Questions regarding raspivid and ffmpeg streaming to YouTube using the v2.1 camera module
Replies: 5
Views: 231

Re: Questions regarding raspivid and ffmpeg streaming to YouTube using the v2.1 camera module

The pixelformat is for H264 encoded data, so there isn't another alternative there. If you ask for raw pixel data then FFmpeg will struggle to encode it in realtime on the CPU. My recollection of the linked issue is hazy. I recall fixing the V4L2 driver to ensure we always returned sensible timestam...
by 6by9
Tue Sep 18, 2018 11:19 am
Forum: Advanced users
Topic: GPIO number for CAM_GPIO0
Replies: 12
Views: 226

Re: GPIO number for CAM_GPIO0

PR created at https://github.com/raspberrypi/linux/pull/2686 for the mods. Sorry for the confusion.
by 6by9
Tue Sep 18, 2018 10:02 am
Forum: Camera board
Topic: programmable for raspberry pi with csi
Replies: 10
Views: 155

Re: programmable for raspberry pi with csi

I understand a little. I use a standard Pi 3 Raspberry camera with CSI, how to write a program on python that works like yavta command writing ? tks Ignore yavta, and ignore everything in any threads talking about TC358743, ADV7282, or Unicam. Start with a fresh Raspbian image. "sudo raspi-config" ...

Go to advanced search