Go to advanced search

by 6by9
Mon Aug 06, 2018 3:21 pm
Forum: Camera board
Topic: MMALSharp - C# API for Raspberry Pi Camera
Replies: 8
Views: 303

Re: MMALSharp - C# API for Raspberry Pi Camera

The issue I believe I'm having is that once completion has been triggered, MMALSharp will begin to disable any active ports in use (this isn't done in the buffer callback BTW) and if the buffer_header_callback function https://github.com/raspberrypi/userland/blob/master/interface/mmal/core/mmal_por...
by 6by9
Mon Aug 06, 2018 2:23 pm
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 17
Views: 667

Re: TC358743 and interlaced HDMI modes

No, the encoder can't encode interlaced video. Or at least it can't set up the headers correctly to denote interlaced.

I'm back in the office so will have a look at what is going on with image_fx.
by 6by9
Mon Aug 06, 2018 2:17 pm
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 74
Views: 1271

Re: ADV7282 Analogue video to CSI chip with interlaced modes

https://github.com/6by9/linux/tree/rpi-4.14.y-unicam-interlaced includes both the module parameter to allow interlaced modes, and the driver change to try and give the correct signalling. I get the signalling through, but Murphy's law says it'll be inverted and I don't think I've got any test kit to...
by 6by9
Mon Aug 06, 2018 12:25 pm
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 74
Views: 1271

Re: ADV7282 Analogue video to CSI chip with interlaced modes

It looks like we're in luck. Reading the SoC datasheet, if CPH (Capture Packet Header) is set in UNICAM_CMPx, then it stores the header in UNICAM_CAPx. We're already triggering the packet capture interrupt, so it's valid to check it in the isr (the value is latched until you write 0x80000000 to CAPx...
by 6by9
Mon Aug 06, 2018 9:24 am
Forum: Camera board
Topic: MMALSharp - C# API for Raspberry Pi Camera
Replies: 8
Views: 303

Re: MMALSharp - C# API for Raspberry Pi Camera

What completion signalling? RaspiVid releases the buffer in the callback, and if the port is then still enabled it pulls it from the pool and sends it back to the component. I'm not clear what you're considering as completion signalling from there. AFAIK There is no issue with calling mmal_port_disa...
by 6by9
Mon Aug 06, 2018 8:45 am
Forum: General discussion
Topic: Playing be-at.tv Videos smoothly?
Replies: 4
Views: 138

Re: Playing be-at.tv Videos smoothly?

They appear to have chosen Adobe's Flash Player rather than any of the standards based video transport mechanisms. Whilst Adobe do give RPF binary drops for Flash to be shipped with Raspbian, AFAIK it has no hardware acceleration for video and therefore it will struggle. Adobe themselves are droppin...
by 6by9
Sun Aug 05, 2018 1:37 pm
Forum: Camera board
Topic: Official V4L2 driver
Replies: 526
Views: 375288

Re: Official V4L2 driver

Hi all, I've started interacting with my new PiNoIR camera v2 using the v4l2 C API, and I must say that until now it's a bit of a let-down. First I queried the device capabilities, and it's telling me that I can capture in RGB3 or BGR3 format in any resolution from 32x32 up to 3280x2464 with a step...
by 6by9
Sun Aug 05, 2018 1:05 pm
Forum: Camera board
Topic: Hardware camera sync pulses
Replies: 27
Views: 2665

Re: Hardware camera sync pulses

gordon77 wrote:
Thu Aug 02, 2018 12:24 pm
Thanks. It looks like I misunderstood "There have been various requests over the years for external triggers for frame synchronisation."
True, I could have possibly phrased that better - now edited.
This is purely an output which synchronised with frame start/end events as received by the SoC.
by 6by9
Sun Aug 05, 2018 1:01 pm
Forum: General discussion
Topic: V4L2 camera video into hello_videocube (camera video texture in openGL)
Replies: 1
Views: 65

Re: V4L2 camera video into hello_videocube (camera video texture in openGL)

Are you using the OpenGL driver (vc4-kms-v3d), or the firmware OpenGLES driver? It makes a big difference. And is the camera one of the two Raspberry Pi cameras, or some USB camera? Of V4L2_PIX_FMT_H264, V4L2_PIX_FMT_H264_MVC, and V4L2_PIX_FMT_H264_NO_SC, only V4L2_PIX_FMT_H264_NO_SC (H264 with no s...
by 6by9
Sun Aug 05, 2018 8:40 am
Forum: Advanced users
Topic: Raspberry Pi3 I2C baud rate setting
Replies: 13
Views: 312

Re: Raspberry Pi3 I2C baud rate setting

Huh? A fair amount of rubbish being posted here. The hardware is driven off PLLs and divisors. It will go down to about 10kHz IIRC. Dedicated I/O driver C++ API? Er, the kernel driver is the correct thing to be looking at https://github.com/raspberrypi/linux/blob/rpi-4.14.y/drivers/i2c/busses/i2c-bc...
by 6by9
Fri Aug 03, 2018 5:01 pm
Forum: Camera board
Topic: RaspiVid/RaspiTex Output Port
Replies: 1
Views: 47

Re: RaspiVid/RaspiTex Output Port

The major issue on encoding the output of OpenGL is that it produces rgb data and h264 always works on yuv. The conversion, whilst relatively simple, tends to end up taking a big chunk of processing purely due to the number of pixels to be handled. Video_encode does now make use of a hardware block ...
by 6by9
Thu Aug 02, 2018 10:02 am
Forum: Camera board
Topic: Hardware camera sync pulses
Replies: 27
Views: 2665

Re: Hardware camera sync pulses

There have been various requests over the years for external triggers for frame synchronisation. Generally it's been stated that doing such things isn't trivial, and it wasn't. However, as of the 22nd July firmware , there is support for repurposing the camera LED GPIO to change state on frame star...
by 6by9
Thu Aug 02, 2018 7:06 am
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 74
Views: 1271

Re: ADV7282 Analogue video to CSI chip with interlaced modes

OK, it sounds like you've found the relevant data for the ADV728x-M, and it's nearly the same as the ADV748x in that it manipulates the frame and line start values. These are the only devices I've come across that does so. Those functions are from the Broadcom soc_camera driver, not mine. soc_camera...
by 6by9
Wed Aug 01, 2018 4:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C working -> not working after firmware update from #893
Replies: 9
Views: 219

Re: I2C working -> not working after firmware update from #893

I hadn't read your original post to say that you had tried the latest kernel. At least you have tried. According to section 15.4.1.3 of that document, the pic is using clock stretching for transmission to give the pic cpu a chance to work out what data to return. Clock stretching is widely documente...
by 6by9
Wed Aug 01, 2018 6:55 am
Forum: Camera board
Topic: Raspiraw broken by new userland / firmware version
Replies: 4
Views: 180

Re: Raspiraw broken by new userland / firmware version

I'm aware, but also on holiday until Monday. It's not buffer number that is the issue. That was increased as part of a change that was believed to sort the issue of a double buffer swap dropping/duplicating frames. There have also been updates to the isp component to relax the alignment requirements...
by 6by9
Tue Jul 31, 2018 6:25 am
Forum: Camera board
Topic: RasPiRaw camera compatibility
Replies: 3
Views: 137

Re: RasPiRaw camera compatibility

There are no standard pinout for those flexi cables, and there are many different pitches of the conductors within them too. Particularly in a dslr I'd expect it to be a finer pitch than the standard camera connector on the Pi. Be very careful plugging in random cables - there is a high risk of shor...
by 6by9
Mon Jul 30, 2018 6:41 pm
Forum: Camera board
Topic: RasPiRaw camera compatibility
Replies: 3
Views: 137

Re: RasPiRaw camera compatibility

Have you got any electrical information on the sensor itself? A pinout would be a start.
Dslrs rarely use csi2 sensors as the spec was written for mobile sensors, and there are faster interfaces around if you are designing custom asics.
by 6by9
Mon Jul 30, 2018 4:21 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C working -> not working after firmware update from #893
Replies: 9
Views: 219

Re: I2C working -> not working after firmware update from #893

Open an issue if you have fairly concrete evidence of a bug. Ask on the forum if you just have questions. I2c_bcm2708 is the old driver. It's been i2c_bcm2835 for a fair while. If you're seeing an acknowledgement at the hardware level but the kernel isn't then check pin muxing. Setting two pins to t...
by 6by9
Mon Jul 30, 2018 8:16 am
Forum: Advanced users
Topic: How to use "MMAL_COMPONENT_DEFAULT_CONTAINER_WRITER"
Replies: 1
Views: 67

Re: How to use "MMAL_COMPONENT_DEFAULT_CONTAINER_WRITER"

You have the full source code to the component - https://github.com/raspberrypi/userland/blob/master/interface/mmal/components/container_reader.c (it's both reader and writer). And you have the source to the container libraries - https://github.com/raspberrypi/userland/tree/master/containers https:/...
by 6by9
Sun Jul 29, 2018 8:38 pm
Forum: Python
Topic: Python picamera error
Replies: 39
Views: 525

Re: Python picamera error

Code: Select all

camera = picamera.PiCamera()
needs to be before any of the other lines that start camera.
by 6by9
Sat Jul 28, 2018 3:29 pm
Forum: Advanced users
Topic: There is no automatic cropping to unpadded buffer size?
Replies: 3
Views: 134

Re: There is no automatic cropping to unpadded buffer size?

es->width and es->height define the overall buffer size including any padding - ie stride and effective frame height (and therefore offsets to chroma planes if YUV). es->crop.width and es->crop.height define the active portions of that buffer. In theory it doesn't have to be based at the top left if...
by 6by9
Sat Jul 28, 2018 8:05 am
Forum: Advanced users
Topic: Can't seem to be able to implement a resizing component.
Replies: 4
Views: 135

Re: Can't seem to be able to implement a resizing component.

If the buffer is too small then it is returned without processing because it is obviously wrong.

Go to advanced search