Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3862

Camera board • Re: Pi5 rpicam-vid does not allow for framerate set with media-ctl

$
0
0
I'm having some trouble using media-ctl on my new rpi5. Everything is up to date and stock. The exception is that I have two rpi GS imx296 cameras, wired for synchronous capture which appears to work as expected viewtopic.php?t=365356. I've experimented with both Picamera2 and rpicam-vid using default height,width,fps etc...

Now I'm working on moving to the same high fps capture I had on the rpi4 (single camera), but configuration of one of the cameras doesn't appear to be working:

Code:

rpicam-vid --list-camerasAvailable cameras-----------------0 : imx296 [1456x1088 10-bit RGGB] (/base/axi/pcie@120000/rp1/i2c@88000/imx296@1a)    Modes: 'SRGGB10_CSI2P' : 1456x1088 [60.38 fps - (0, 0)/1456x1088 crop]1 : imx296 [1456x1088 10-bit RGGB] (/base/axi/pcie@120000/rp1/i2c@80000/imx296@1a)    Modes: 'SRGGB10_CSI2P' : 1456x1088 [60.38 fps - (0, 0)/1456x1088 crop]
NOTE: I am having no luck getting --circular to work, but that will be different post

After a bunch of trials and fails, I found this thread and Naushir's post:
....

Code:

pi@pi5:~ $ media-ctl -d /dev/media4 --set-v4l2 "'imx296 4-001a':0 [fmt:SBGGR10_1X10/688x136 crop:(0,0)/688x136]" -vOpening media device /dev/media4Enumerating entitieslooking up device: 81:39looking up device: 81:40looking up device: 81:41looking up device: 81:31looking up device: 81:32looking up device: 81:33looking up device: 81:34looking up device: 81:35looking up device: 81:36looking up device: 81:37looking up device: 81:38Found 11 entities....
I updated everything again, rebooted, and tried exactly this for the master camera:

Code:

media-ctl -d /dev/media0 --set-v4l2 "'imx296 4-001a':0 [fmt:SBGGR10_1X10/688x136 crop:(0,0)/688x136]" -vOpening media device /dev/media0Enumerating entitieslooking up device: 81:38looking up device: 81:39looking up device: 81:40looking up device: 81:30looking up device: 81:31looking up device: 81:32looking up device: 81:33looking up device: 81:34looking up device: 81:35looking up device: 81:36looking up device: 81:3Found 11 entitiesEnumerating pads and linksno such entity "imx296 4-001a" 'imx296 4-001a':0 [fmt:SBGGR10_1X10/688x136 crop:(0,0)/688x136]  ^Unable to parse formatUnable to setup formats: Invalid argument (22)
Meanwhile, for the second camera (the slave)

Code:

media-ctl -d /dev/media1 --set-v4l2 "'imx296 4-001a':0 [fmt:SBGGR10_1X10/688x136 crop:(0,0)/688x136]" -vOpening media device /dev/media1Enumerating entitieslooking up device: 81:27looking up device: 81:28looking up device: 81:29looking up device: 81:19looking up device: 81:20looking up device: 81:21looking up device: 81:22looking up device: 81:23looking up device: 81:24looking up device: 81:25looking up device: 81:26Found 11 entitiesEnumerating pads and linksSetting up selection target 0 rectangle (0,0)/688x136 on pad imx296 4-001a/0Selection rectangle set: (0,0)/688x136Setting up format SBGGR10_1X10 688x136 on pad imx296 4-001a/0Format set: SBGGR10_1X10 688x136Setting up format SBGGR10_1X10 688x136 on pad csi2/0Format set: SBGGR10_1X10 688x136
Now list-cameras:

Code:

rpicam-vid --list-camerasAvailable cameras-----------------0 : imx296 [1456x1088 10-bit RGGB] (/base/axi/pcie@120000/rp1/i2c@88000/imx296@1a)    Modes: 'SRGGB10_CSI2P' : 1456x1088 [60.38 fps - (0, 0)/1456x1088 crop]1 : imx296 [1456x1088 10-bit RGGB] (/base/axi/pcie@120000/rp1/i2c@80000/imx296@1a)    Modes: 'SRGGB10_CSI2P' : 1456x1088 [406.67 fps - (0, 0)/688x136 crop]
System:

Code:

uname -aLinux rpi5 6.1.0-rpi8-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64 GNU/Linux

Statistics: Posted by ddbaron — Sat Feb 24, 2024 9:13 pm



Viewing all articles
Browse latest Browse all 3862

Trending Articles