Go to advanced search

by 6by9
Wed Oct 03, 2018 11:21 am
Forum: General discussion
Topic: RaspberryPi that supports MIPI -DSI
Replies: 10
Views: 306

Re: RaspberryPi that supports MIPI -DSI

For the standard Pi boards look at the display connector on the reduced schematic - https://www.raspberrypi.org/documentation/hardware/raspberrypi/schematics/rpi_SCH_3bplus_1p0_reduced.pdf For the Compute Module then read the CM datasheet for the pinout on the edge connector, or the CMIO schematics ...
by 6by9
Wed Oct 03, 2018 9:48 am
Forum: General discussion
Topic: RaspberryPi that supports MIPI -DSI
Replies: 10
Views: 306

Re: RaspberryPi that supports MIPI -DSI

All Pis except the Zero/ZeroW have a DSI port (the Compute Modules have 2). Only the official panel will work with the firmware drivers, but the KMS drivers can be made to work with random panels if you have the relevant skills. See https://github.com/anholt/linux/wiki/Raspberry-Pi-and-other-MIPI-DS...
by 6by9
Wed Oct 03, 2018 8:28 am
Forum: OpenMAX
Topic: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?
Replies: 27
Views: 718

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

Probably the same issue I hit - eos_received isnt initialised so it will randomly immediately abort.
by 6by9
Tue Oct 02, 2018 4:56 pm
Forum: OpenMAX
Topic: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?
Replies: 27
Views: 718

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

dickon wrote:
Tue Oct 02, 2018 3:44 pm
It's quite astonishing. The work you lot at Pi Towers have done is incredible.

12b 8k p60 H.265 (encode and decode) is all I want from a new Pi. Please :-)
:D :D :D :D :o
by 6by9
Tue Oct 02, 2018 3:24 pm
Forum: OpenMAX
Topic: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?
Replies: 27
Views: 718

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

You're right. Actually I never really tried setting zero copy AND writing to the buffer. I recall using gdb to debug my initial buffer problems (format change events and so on) and there I was unable to access the buffer if zero copy was set. See this gdb output (zero copy set ) (gdb) b draw_overla...
by 6by9
Tue Oct 02, 2018 1:22 pm
Forum: OpenMAX
Topic: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?
Replies: 27
Views: 718

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

Copying frame buffers? QT normally renders via the frame buffer so there is no copying required there. And zero copy can be used in MMAL. Or are you copying the resulting buffers into the QT window on the ARM? Yes, that hurts performance. Forget about the qt thingy for a moment. I'm referring to th...
by 6by9
Tue Oct 02, 2018 12:32 pm
Forum: OpenMAX
Topic: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?
Replies: 27
Views: 718

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

Thanks for the remarks regarding my draw_overlay :D I wrote the loop start/stop conditions that way on purpose because it's not clear how much of the pixels we'll be accessing in the final application. My goal was to find out if I can get 25 fps, even when we have a rather intensive overlay calcula...
by 6by9
Tue Oct 02, 2018 7:45 am
Forum: Advanced users
Topic: Moving Linux kernel to 4.14
Replies: 150
Views: 52988

Re: Moving Linux kernel to 4.14

Does Raspberry Pi only use LTS kernels e.g. 4.9 4.14? The main supported kernel will always be an lts kernel. The other kernel versions are in the github repo and will be brought up (mainly to keep the downstream patches current), but support is limited and will cease when the next version comes out.
by 6by9
Tue Oct 02, 2018 6:47 am
Forum: Off topic discussion
Topic: Windows 10 ARM64 on R-Pi 3
Replies: 11
Views: 1000

Re: Windows 10 ARM64 on R-Pi 3

I was referring to the Raspberry Pi form factor......Are there ANY boards that are Snapdragon based out there???? Not as far as i know. Most form factor clones use Allwinner or other Chinese chip sets. Nvidia used to do some sbc using their Tegra chips, but I haven't seen much of them. There are al...
by 6by9
Mon Oct 01, 2018 7:11 pm
Forum: Graphics, sound and multimedia
Topic: omxplayer, 1920x1200 aberration
Replies: 11
Views: 395

Re: omxplayer, 1920x1200 aberration

Sorry, had run out of time in the office and hit submit before I'd written all I wanted. At the moment I can quite say what the full parameter list would be, but high profile has more compression options than base or mainline. I'm a little puzzled as I know that the codec can cope with 1080x1920 enc...
by 6by9
Mon Oct 01, 2018 6:49 pm
Forum: Camera board
Topic: Cannot get specified FPS values
Replies: 6
Views: 178

Re: Cannot get specified FPS values

So either the settings weren't applied, or OpenCV has some overhead. Run "dmesg" to view the kernel log and it should include a line "V4L2 device registered as <string> - stills mode > WxH", where WxH should be the 1920x1088 that you specified. If that is correct, then install v4l-utils and run the ...
by 6by9
Mon Oct 01, 2018 5:36 pm
Forum: Graphics, sound and multimedia
Topic: omxplayer, 1920x1200 aberration
Replies: 11
Views: 395

Re: omxplayer, 1920x1200 aberration

Wow, thanks for the help! Here's a link to the video in question: https://www.dropbox.com/s/1bo2qe4770bf1j5/brighamSam-animation_3.mp4?dl=0 I've tried this on a monitor who's native resolution I'm unsure and I tried it on my 4k TV. But if the video works for you, then maybe I'll try to get to the b...
by 6by9
Mon Oct 01, 2018 5:27 pm
Forum: Camera board
Topic: Cannot get specified FPS values
Replies: 6
Views: 178

Re: Cannot get specified FPS values

hello 6by9, thanks for your advice. yes, bcm2835-v4l2 is loaded without any flags. the format I capture is BGR as it is controlled by OpenCV flag of CAP_OPENNI_BGR_IMAGE for member function of cv::VideoCapture::retreive(img,flag). as a quick test I reloaded bcm2835-v4l2 max_video_width=1920 max_vid...
by 6by9
Mon Oct 01, 2018 3:50 pm
Forum: OpenMAX
Topic: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?
Replies: 27
Views: 718

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

I hadn't looked at that one. Low hanging fruit and all that. A proper compiler would optimise it, except for the -O0 at https://github.com/t-moe/rpi_mmal_examples/blob/master/Makefile#L9 :( You are quite correct with your version, and indeed running it is taking about 18ms between frames (although a...
by 6by9
Mon Oct 01, 2018 3:43 pm
Forum: Camera board
Topic: Cannot get specified FPS values
Replies: 6
Views: 178

Re: Cannot get specified FPS values

I'm assuming you're using V4L2 to capture, in which case there are several things to check. Firstly V4L2 has no concept of video vs stills, whereas the GPU does. Stills emphasizes image quality over frame rate. With JPEG it assumes stills, whilst H264 and MJPEG assumes video. With raw pixel data the...
by 6by9
Mon Oct 01, 2018 2:43 pm
Forum: OpenMAX
Topic: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?
Replies: 27
Views: 718

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

Most of the extra time is in your draw overlay function. Nasty hacked together timing between frames: @@ -252,8 +252,9 @@ int main(int argc, char* argv[]) { MMAL_COMPONENT_T *decoder = NULL, *encoder=NULL; MMAL_POOL_T *decoder_pool_in = NULL, *encoder_pool_out = NULL; MMAL_ES_FORMAT_T * format_in=NU...
by 6by9
Mon Oct 01, 2018 2:02 pm
Forum: OpenMAX
Topic: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?
Replies: 27
Views: 718

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

Take it at face value as a beta - https://drive.google.com/file/d/1asP0As8TNHTmi6Ycjq5HSUdVfV49urBh/view?usp=sharing New component is "vc.ril.hvs". 5 input ports, 1 output port, only supporting RGB (various formats). input[0] is the master port. input[1] to input[4] are for the overlays. All ports s...
by 6by9
Mon Oct 01, 2018 8:54 am
Forum: General discussion
Topic: 4K videos on Rasp Pi 3 B+
Replies: 2
Views: 235

Re: 4K videos on Rasp Pi 3 B+

But whichever way software codecs fall (most likely failure), the HDMI output is realistically limited to 1080P60 so you can't display the resulting frames at full resolution.
by 6by9
Fri Sep 28, 2018 3:57 pm
Forum: OpenMAX
Topic: OpenMAX - Capturing raw decoded H.264 frames
Replies: 8
Views: 346

Re: OpenMAX - Capturing raw decoded H.264 frames

I'm with you on OMX IL, though. Ghastly as it is, it is at least crossish-platform. Vaguely cross-platform, although if you speak to some of the gst-omx developers you'll find out just how badly standardised it is as an API, with various quirks required . We're looking at V4L2 M2M (memory to memory...
by 6by9
Fri Sep 28, 2018 1:43 pm
Forum: OpenMAX
Topic: OpenMAX - Capturing raw decoded H.264 frames
Replies: 8
Views: 346

Re: OpenMAX - Capturing raw decoded H.264 frames

The simple answer is that IL is an absolute swine to get it to work, and does fail in many non-obvious ways. This is one of the main reasons that MMAL was written as a replacement. IL was supposed to be the standard for multimedia integration on embedded systems, but it has fallen out of favour with...
by 6by9
Thu Sep 27, 2018 4:07 pm
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 428
Views: 105984

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

Hi 6by9, I have a question about the frame rate control of MMAL lib. I want to know whether the MMAL lib have some ways to control the frame rate which fed into the input of encode component? The v4l2-ctl seems to provide a similar function. v4l2-ctl does? I can't see it with a quick look at the he...
by 6by9
Thu Sep 27, 2018 3:58 pm
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 428
Views: 105984

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

I got distracted today into looking at GStreamer. 4 patches added to https://github.com/6by9/gst-omx/tree/pi that add full support for RGB/BGR, ARGB/ABGR, and the YUYV family of formats to omxh264enc. It also includes the fixes for handling encoded buffer sizes more sensibly (GStreamer fell over and...
by 6by9
Thu Sep 27, 2018 12:11 pm
Forum: General discussion
Topic: Onboard Chip Dimensions
Replies: 13
Views: 386

Re: Onboard Chip Dimensions

Oh and the Zero does get hot enough if you are powering IR LEDs through the camera cable. As in the usual 'bug eye' IR switching one. Well if you will stick a stupidly large load on the 3.3V rail which isn't designed for it, then yes things will get hot. "Usual" as in a third party product NOT from...
by 6by9
Thu Sep 27, 2018 10:10 am
Forum: OpenGLES
Topic: EGLImageKHR to OpenMax
Replies: 26
Views: 758

Re: EGLImageKHR to OpenMax

Ok, this is the encoding format. But OMX_BRCMVEGLIMAGETYPE is the data struct that i pass to the encoder (through the pBuffer of OMX_BUFFERHEADERTYPE), there is an equivalent struct in MMAL? Or pass directly the vcsm handle to Data field of MMAL_BUFFER_HEADER_T ? Sorry, misread what you were lookin...
by 6by9
Thu Sep 27, 2018 10:02 am
Forum: Graphics, sound and multimedia
Topic: omxplayer, 1920x1200 aberration
Replies: 11
Views: 395

Re: omxplayer, 1920x1200 aberration

Having searched for 1920x1200 clips, the discussion at https://e2e.ti.com/support/processors/f/791/p/450886/1725398#1725398 linked to some clips on https://drive.google.com/drive/u/0/folders/0B3yo-VUrGU4vN3JxTVBlQUlPdWs I've downloaded the first couple of those clips and they play fine for me on a 3...

Go to advanced search