Go to advanced search

by 6by9
Tue Nov 30, 2021 5:42 pm
Forum: Graphics programming
Topic: What's the fast way to convert UYVY data to BGR or Grayscale
Replies: 4
Views: 124

Re: What's the fast way to convert UYVY data to BGR or Grayscale

Use the ISP via V4L2 memory to memory device /dev/video12. GStreamer's v4l2convert uses this.

Greyscale is the same as looking at only the Y plane of a YUV format - don't expect to find anything doing the explicit conversion to GREY.
by 6by9
Tue Nov 30, 2021 3:49 pm
Forum: Camera board
Topic: Pi Zero W2 and Bullseye: *** no cameras available ***
Replies: 39
Views: 3427

Re: Pi Zero W2 and Bullseye: *** no cameras available ***

"vcgencmd get_camera" is not relevant for libcamera. It reports the cameras that the firmware is supporting, and the firmware explicitly backs off any cameras configured for the Linux kernel and libcamera as accessing the same peripheral from both Linux and the firmware is a sure fire way...
by 6by9
Mon Nov 29, 2021 6:46 pm
Forum: Camera board
Topic: Running 2 different cameras one after the other
Replies: 18
Views: 474

Re: Running 2 different cameras one after the other

It looks like your overlay is doing the right thing then, but as I'd already said Libcamera currently only expects to set the format on the sensor subdev. I'd need to check whether that is sufficient for the mux, but I don't think it is as it also needs to be set on the sink pad of the mux. IIRC med...
by 6by9
Mon Nov 29, 2021 6:26 pm
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5345
Views: 1826195

Re: RPi Cam Web Interface

It is not so much motivation on this rather the technical challenge and the desire to make this work OK on Pi Zero. The software uses many aspects of the MMAL facilities using the GPU to provide the functionality with low cpu usage. It is not clear to me at the moment how to replicate this processi...
by 6by9
Mon Nov 29, 2021 6:10 pm
Forum: Troubleshooting
Topic: pi touchscreen under Buster not recognized?
Replies: 3
Views: 73

Re: pi touchscreen under Buster not recognized?

Do you mean Bullseye?
Buster was the previous release.

https://github.com/raspberrypi/linux/issues/4686
Add "dtparam=i2c_vc_baudrate=50000" to /boot/config.txt as a current workaround.
by 6by9
Mon Nov 29, 2021 5:52 pm
Forum: Troubleshooting
Topic: Official 7in display fading out - RPi 1 B+
Replies: 1
Views: 38

Re: Official 7in display fading out - RPi 1 B+

Are you running Bullseye?
https://github.com/raspberrypi/linux/issues/4686

Workaround is to add "i2c_vc_baudrate=50000" to /boot/config.txt.

If you have a 1B+, then you do not need the SDA and SCL cables. Those are only needed on original model A & B variants.
by 6by9
Mon Nov 29, 2021 4:31 pm
Forum: Troubleshooting
Topic: The display resolution changes according to the panel Connection (hdmi TFT LCD)
Replies: 1
Views: 36

Re: The display resolution changes according to the panel Connection (hdmi TFT LCD)

The Pi drivers are now supporting HDMI hotplug, so it will adjust to the connected display.
If the display is 1024x600, then that is what it will adopt.
by 6by9
Mon Nov 29, 2021 3:43 pm
Forum: General discussion
Topic: Disable ALL audio on bullseye
Replies: 14
Views: 349

Re: Disable ALL audio on bullseye

I guess this is the message he wants rid (which I have 1000 times in dmesg) hdmi-audio-codec hdmi-audio-codec.3.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19 Which is annoying for me as I do not use hdmi audio nor i2s audio but I do use analogue audio. Trickier due to why it is being ge...
by 6by9
Mon Nov 29, 2021 2:01 pm
Forum: General discussion
Topic: Disable ALL audio on bullseye
Replies: 14
Views: 349

Re: Disable ALL audio on bullseye

Disabling all audio is non-trivial. Disabling individual audio devices can be achieved. For disabling HDMI audio, altering the config.txt line "dtoverlay=vc4-kms-v3d" to "dtoverlay=vc4-kms-v3d,noaudio" disables it. The analogue audio output can be disabled by omitting "dtpar...
by 6by9
Mon Nov 29, 2021 1:12 pm
Forum: General discussion
Topic: Disable ALL audio on bullseye
Replies: 14
Views: 349

Re: Disable ALL audio on bullseye

What errors are you seeing, there should not be any so perhaps another approach is to sort those out so they don't appear. Thanks. If we can do that, I'd be grateful hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19 Also, at startup vc4_hdmi fef00700.hdmi...
by 6by9
Mon Nov 29, 2021 12:06 pm
Forum: Camera board
Topic: Legacy camera stack under Bullseye
Replies: 42
Views: 4486

Re: Legacy camera stack under Bullseye

Good explanation. I think I follow you now. When i first read planes, I thought you mean putting aeroplanes as in sprites to the display. But I think your planes mean the rendering plane where there are 1..N (N is a number) and each plane has a buffer. Am I understanding this right? When you say .....
by 6by9
Mon Nov 29, 2021 9:40 am
Forum: Camera board
Topic: STICKY: libcamera - open source camera stack
Replies: 134
Views: 39911

Re: STICKY: libcamera - open source camera stack

The sensor can read out with horizontal or vertical flips, but can't natively transpose. When writing JPEGs the easiest approach is to add the EXIF Orientation tag, and the viewer will do the right thing. For display, several of the display paths allow for rotation as part of the request. The ISP ca...
by 6by9
Mon Nov 29, 2021 9:35 am
Forum: Camera board
Topic: GStreamer auto-exposure filter.
Replies: 2
Views: 50

Re: GStreamer auto-exposure filter.

vc_mipi_modules_0 implies you're using Vision Components driver rather than the standard one. Do Vision Components ship libcamera tunings for OV9281? Switch to using the standard kernel drivers via "dtoverlay=ov9281" in config.txt, and it should have all the required controls, and have a n...
by 6by9
Mon Nov 29, 2021 9:04 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C problem
Replies: 3
Views: 109

Re: I2C problem

SDA shorted to ground for all addresses responding.
SCL shorted to ground gives a slow response as the master sees it as clock stretching.
by 6by9
Sun Nov 28, 2021 2:24 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: vc4-fkms-v3d and i2c-gpio at bullseye
Replies: 9
Views: 367

Re: vc4-fkms-v3d and i2c-gpio at bullseye

UU means that the address is in use by a kernel driver. The device has responded on address 5d, so check your kernel logs (dmesg) for the reason why the touchscreen driver won't probe. Probably some contention on a resource, but it's near impossible to guess what that is going to be.
by 6by9
Sun Nov 28, 2021 9:10 am
Forum: Compute Module
Topic: Using CM4 CSI 4 lane to film 1080p@240fps
Replies: 3
Views: 173

Re: Using CM4 CSI 4 lane to film 1080p@240fps

Assuming you're using libcamera, then all the sensor configuration is in https://github.com/raspberrypi/linux/blob/rpi-5.10.y/drivers/media/i2c/imx477.c What are you planning on doing with 1080p240 raw Bayer images? The ISP runs at 1pixel/clock cycle, but has overlaps. Pi4 can clock it up to about 4...
by 6by9
Sun Nov 28, 2021 9:03 am
Forum: Camera board
Topic: Raspberry Pi 4 Camera v1.3 not getting detected & Unable to import PiCamera
Replies: 2
Views: 163

Re: Raspberry Pi 4 Camera v1.3 not getting detected & Unable to import PiCamera

Raspberry Pi OS 64Bit. https://github.com/raspberrypi/userland/issues/688 Placeholder so that people can be made aware that MMAL is currently NOT SUPPORTED on 64 bit userland systems sudo v4l2-ctl --list-devices ... unicam (platform:fe801000.csi): /dev/video0 So you have enabled the libcamera kerne...
by 6by9
Sun Nov 28, 2021 8:59 am
Forum: Camera board
Topic: Problem with libcamera-vid
Replies: 11
Views: 704

Re: Problem with libcamera-vid

I have a POE Hat R3 attached, which I believe uses I2C for fan control, the address that shows up on i2cdetect. But I draw power via a USB-C power adapter. My camera is imx219. Without the POE Hat I haven't been able to reproduce the issue. With the Hat, the issue happens about 50% of the time, and...
by 6by9
Sun Nov 28, 2021 8:56 am
Forum: Camera board
Topic: Legacy camera stack under Bullseye
Replies: 42
Views: 4486

Re: Legacy camera stack under Bullseye

Hi @6by9, Thank you for providing the method. I followed your solution and successfully enabled raspicam. But I have a question for you, I have a project that uses raspiraw to get raw rawdata, I tried to compile raspiraw on bullseye and it compiled successfully. But when I run it, it prompts mmal: ...
by 6by9
Sat Nov 27, 2021 4:48 pm
Forum: Camera board
Topic: libcamera and PoE hat
Replies: 2
Views: 136

Re: libcamera and PoE hat

The POE HAT fan controller uses I2C on GPIOs 0&1, using the same I2C controller as used by the camera module. There is no inter-processor arbitration between the ARM and firmware, so having both trying to access it causes issues as you've reported. We'll have to look at a kernel side POE HAT fan...
by 6by9
Sat Nov 27, 2021 4:44 pm
Forum: Compute Module
Topic: Dual Camera library for cm4
Replies: 1
Views: 107

Re: Dual Camera library for cm4

Picamera should be able to use both cameras simultaneously, but you may need to increase the amount of gpu_mem to allow it to do so.
by 6by9
Sat Nov 27, 2021 4:43 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: vc4-fkms-v3d and i2c-gpio at bullseye
Replies: 9
Views: 367

Re: vc4-fkms-v3d and i2c-gpio at bullseye

Are you sure you're using the right i2c bus? Use "i2cdetect -l" to list out all the I2C interfaces.
by 6by9
Sat Nov 27, 2021 4:38 pm
Forum: Official Display
Topic: Colour problem
Replies: 26
Views: 543

Re: Colour problem

The viewing angles are not symmetrical. https://www.raspberrypi.com/documentation/accessories/display.html#screen-orientation LCD displays have an optimum viewing angle, and depending on how the screen is mounted it may be necessary to change the orientation of the display to give the best results. ...
by 6by9
Sat Nov 27, 2021 4:34 pm
Forum: Official Display
Topic: Touch functionality does not work on Raspberry Pi 4
Replies: 3
Views: 165

Re: Touch functionality does not work on Raspberry Pi 4

A patch was merged yesterday to address some issues with the edt-ft5x06 driver - https://github.com/raspberrypi/linux/pull/4736
rpi-update has the fix (normal warnings apply).

Go to advanced search