Go to advanced search

by 6by9
Fri Sep 17, 2021 6:01 pm
Forum: Compute Module
Topic: 3D Stereoscopic Limits (compute module with two camera's)
Replies: 32
Views: 1051

Re: 3D Stereoscopic Limits (compute module with two camera's)

Help text -roi, --roi : Set region of interest (x,y,w,d as normalised coordinates [0.0-1.0]) '-roi','0.02,0,0.98,1' therefore asks for (0.02,0) to (0.02+0.98,1), which would be (1,1) or the right hand edge. likewise '-roi','0.20,0,0.80,1', would be (0.20,0) to (0.20+0.80,1), aka the right hand edge.
by 6by9
Fri Sep 17, 2021 5:57 pm
Forum: Camera board
Topic: gstreamer w/v4l2/libcamera woes
Replies: 11
Views: 258

Re: gstreamer w/v4l2/libcamera woes

Well that's an odd pipeline. libcamerasrc producing NV21. v4l2convert then producing UYVY. Red/blue swapping could also be U & V getting swapped, rather than an RGB ordering issue. You could try setting the caps explicitly on one or more of those links to alternate formats to try and narrow down...
by 6by9
Fri Sep 17, 2021 6:53 am
Forum: Camera board
Topic: gstreamer w/v4l2/libcamera woes
Replies: 11
Views: 258

Re: gstreamer w/v4l2/libcamera woes

Please use - vvv to tell us the format selections made between each component.
Rgb pixel ordering is one of those things that is easy to get wrong, but we have been through this loop several times in the past and believed it to be correct.
by 6by9
Fri Sep 17, 2021 6:03 am
Forum: Graphics programming
Topic: Video acceleration on the Raspberry Pi 4
Replies: 22
Views: 40878

Re: Video acceleration on the Raspberry Pi 4

Andresayang wrote:
Thu Sep 16, 2021 4:50 pm
Is there any chance tho have h264 3d-mvc running on Pi4 ?
It works under mmal and IL, but AFAIK there is no standard mechanism to advertise stereoscopic video through v4l2. Delivering a buffer with the pair of images in is relatively simple, it's just the signalling that isn't defined.
by 6by9
Thu Sep 16, 2021 2:19 pm
Forum: Camera board
Topic: HQ camera low frame rate with 1080p resolution via v4l2 driver (3 fps)
Replies: 4
Views: 129

Re: HQ camera low frame rate with 1080p resolution via v4l2 driver (3 fps)

bcm2835-v4l2 is already loaded by default, so unless you've manually removed it with "sudo rmmod bcm2835-v4l2" then your modprobe line will be doing nothing. It's probably easier to create a file of /etc/modprobe.d/bcm2835-v4l2.conf (you'll need sudo) containing options bcm2835-v4l2 max_vi...
by 6by9
Thu Sep 16, 2021 8:04 am
Forum: Compute Module
Topic: 3D Stereoscopic Limits (compute module with two camera's)
Replies: 32
Views: 1051

Re: 3D Stereoscopic Limits (compute module with two camera's)

By the way, on the CM4 does switching to I420 still cause a significant performance hit on the GPU? It does introduce a performance hit, but it'll be down to your use case as to whether it is achievable. In OPAQUE mode the ISP is generating the images in the format that the codec needs, but it has ...
by 6by9
Wed Sep 15, 2021 6:23 pm
Forum: Compute Module
Topic: 3D Stereoscopic Limits (compute module with two camera's)
Replies: 32
Views: 1051

Re: 3D Stereoscopic Limits (compute module with two camera's)

MRV wrote:
Wed Sep 15, 2021 5:49 pm
So, will this process replace the existing Raspivid system-wide or will it create a separate, local instance of the Raspivid app?
Replace.
by 6by9
Wed Sep 15, 2021 5:33 pm
Forum: Compute Module
Topic: 3D Stereoscopic Limits (compute module with two camera's)
Replies: 32
Views: 1051

Re: 3D Stereoscopic Limits (compute module with two camera's)

Code: Select all

git clone https://github.com/raspberrypi/userland.git
cd userland
nano host_applications/linux/apps/raspicam/RaspiVid.c
Ctrl-_, 1666 <return>
Edit the line to 
format->encoding = MMAL_ENCODING_I420;
Ctrl-X, y
./buildme
by 6by9
Wed Sep 15, 2021 5:31 pm
Forum: Troubleshooting
Topic: Hardware video acceleration issue
Replies: 20
Views: 503

Re: Hardware video acceleration issue

You've told it to use the hardware?

Code: Select all

ffmpeg -c:v h264_v4l2m2m -i foo.mp4 ....
by 6by9
Wed Sep 15, 2021 5:21 pm
Forum: Compute Module
Topic: 3D Stereoscopic Limits (compute module with two camera's)
Replies: 32
Views: 1051

Re: 3D Stereoscopic Limits (compute module with two camera's)

MRV wrote:
Wed Sep 15, 2021 5:18 pm
Hmm. How / where / what Raspivid files are to be modified?
https://github.com/raspberrypi/userland ... id.c#L1666
by 6by9
Wed Sep 15, 2021 2:11 pm
Forum: Troubleshooting
Topic: Hardware video acceleration issue
Replies: 20
Views: 503

Re: Hardware video acceleration issue

Harlock21 wrote:
Wed Sep 15, 2021 2:09 pm
6by9 wrote:
Wed Sep 15, 2021 1:57 pm
What's your problem? You've said you're building 4.4. I've already stated that my fix and other related ones are in 4.3 and above.
The gif is a yes!

Thanks :)
Misinterpreted. It looked like you were bashing your head on the desk.
by 6by9
Wed Sep 15, 2021 1:57 pm
Forum: Troubleshooting
Topic: Hardware video acceleration issue
Replies: 20
Views: 503

Re: Hardware video acceleration issue

Harlock21 wrote:
Wed Sep 15, 2021 1:53 pm
6by9 wrote:
Wed Sep 15, 2021 1:35 pm
...
There were a number of other fixes applied at around the same time which also improve the situation.
(Animated GIF)
What's your problem? You've said you're building 4.4. I've already stated that my fix and other related ones are in 4.3 and above.
by 6by9
Wed Sep 15, 2021 1:35 pm
Forum: Troubleshooting
Topic: Hardware video acceleration issue
Replies: 20
Views: 503

Re: Hardware video acceleration issue

$ ./configure -h | grep v4l2 --enable-libv4l2 enable libv4l2/v4l-utils [no] --disable-v4l2-m2m disable V4L2 mem2mem code [autodetect] On a standard Raspberry Pi OS install $ ffmpeg -decoders | grep v4l2 ... libpostproc 55. 3.100 / 55. 3.100 V..... h263_v4l2m2m V4L2 mem2mem H.263 decoder wrapper (co...
by 6by9
Wed Sep 15, 2021 1:00 pm
Forum: Compute Module
Topic: 3D Stereoscopic Limits (compute module with two camera's)
Replies: 32
Views: 1051

Re: 3D Stereoscopic Limits (compute module with two camera's)

As a thought, if you alter the raspivid code to use MMAL_ENCODING_I420 instead of MMAL_ENCODING_OPAQUE between camera->output[1] and video_encode->input[0], then you should be able to run with any width that is a multiple of (I think) 64 per image. The use of planar on the output of the ISP reduces ...
by 6by9
Wed Sep 15, 2021 12:23 pm
Forum: Device Tree
Topic: [Solved] Overlay with PCA9538 and PCA9632
Replies: 15
Views: 681

Re: Overlay with PCA9538 - looking for advice how to initialize/configure I/O

You have no symbol called <bl1>

Code: Select all

				bl1: bl1@0 { <<<<<<<
					reg = <0>;
					function = LED_FUNCTION_BACKLIGHT;
					color = <LED_COLOR_ID_WHITE>;
					linux,default-trigger = "backlight";
					label = "bl1";
				};
by 6by9
Wed Sep 15, 2021 10:07 am
Forum: Android
Topic: android does not work for 12.6" 1920x515 Pi4
Replies: 2
Views: 97

Re: android does not work for 12.6" 1920x515 Pi4

Your Lineage config.txt loads vc4-kms-v3d which ignores all config.txt entries for display configuration as it has all shifted to the kernel. Does your display advertise a correct EDID? If so then vc4-kms-v3d should pick that up and run with it. You may want "disable_fw_kms_setup=1" to sto...
by 6by9
Wed Sep 15, 2021 10:03 am
Forum: Troubleshooting
Topic: Hardware video acceleration issue
Replies: 20
Views: 503

Re: Hardware video acceleration issue

omx-rpi uses OpenMax IL which will not be supported on 64 bit systems. h264_v4l2m2m should work for encode and decode within FFmpeg. There are a couple of patches for it that aren't in Buster, but were merged to FFmpeg master about 18 months ago so you should be fine if you're building your own FFmp...
by 6by9
Wed Sep 15, 2021 9:50 am
Forum: Camera board
Topic: detecting camera without firmware stack
Replies: 18
Views: 448

Re: detecting camera without firmware stack

from what ive heard, the blob is barely doing anything with the ISP now, its just exposing every control over the VCHIQ? protocol, so why is it still in blob land? ISP (and codec) hardware are both Broadcom IP which we can not publish. In both cases they take higher level controls to configure them...
by 6by9
Wed Sep 15, 2021 9:45 am
Forum: Graphics, sound and multimedia
Topic: TC358743 HDMI to CSI-2 install instructions
Replies: 71
Views: 14354

Re: TC358743 HDMI to CSI-2 install instructions

Pi0 uses the 22pin connector, but only has 2 lanes wired up. Only the Compute Modules (all varieties) exposes a 4 lane interface. this puts an end on everything, I would prefer to have the latest module and io board, but at the moment the cm4 is unavailable anywhere in my country in addition, speak...
by 6by9
Wed Sep 15, 2021 7:57 am
Forum: Graphics, sound and multimedia
Topic: TC358743 HDMI to CSI-2 install instructions
Replies: 71
Views: 14354

Re: TC358743 HDMI to CSI-2 install instructions

I know that no one can know for sure, but I have no experience with the pi 0 will the Raspberrypi 0 WH able to run this simple line in RGB with an auvidea b102 to capture a full rgb 1080p50 or I need a compute module 4? Pi0 uses the 22pin connector, but only has 2 lanes wired up. Only the Compute M...
by 6by9
Tue Sep 14, 2021 3:47 pm
Forum: Compute Module
Topic: Dual camera with COMPUTE MODULE 4 IO BOARD
Replies: 6
Views: 307

Re: Dual camera with COMPUTE MODULE 4 IO BOARD

What does "v4l2-ctl --list-devices" tell you of the devices connected?
by 6by9
Tue Sep 14, 2021 3:40 pm
Forum: Camera board
Topic: detecting camera without firmware stack
Replies: 18
Views: 448

Re: detecting camera without firmware stack

For the cameras supported by the firmware it has just been implemented https://github.com/Hexxeh/rpi-firmware/commit/fcf2c03ccf0a1285280fa63173469bc7d43c17c5 Add "camera_auto_detect=1" to config.txt and it should check for the supported and add the appropriate dtoverlay. Note that sensors ...
by 6by9
Tue Sep 14, 2021 3:33 pm
Forum: Graphics, sound and multimedia
Topic: TC358743 HDMI to CSI-2 install instructions
Replies: 71
Views: 14354

Re: TC358743 HDMI to CSI-2 install instructions

I think that the result it is what you were hoping for https://i.postimg.cc/zBp0vDd5/file-rgb.png so what now?, do you have an idea for a temp workaround in gstreamer? I am truly thankful for that result! I think that kicks it back into GStreamer's court. My suggestion would be to rebuild GStreamer...
by 6by9
Tue Sep 14, 2021 2:18 pm
Forum: Compute Module
Topic: 3D Stereoscopic Limits (compute module with two camera's)
Replies: 32
Views: 1051

Re: 3D Stereoscopic Limits (compute module with two camera's)

I've just tried this. 1920 is 15 columns of 128 pixels. Each image would therefore be 7.5 columns, which is not an integer and therefore fails. You even quoted me correctly before 6by9 states “…the requirement for the width of each image being a multiple of 128” However Using 1920 width (which is a ...

Go to advanced search