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

Beginners • media-ctl issue

$
0
0
Hi,

I was playing around with media-ctl to increase the FPS while using libcamera-vid. Previously, if the resolution was not specified it defaulted to 1456x1088. After I ran this command :

Code:

media-ctl -d /dev/media3 --set-v4l2 "'imx296 10-001a':0 [fmt:SBGGR10_1X10/640x480 crop:(0,0)/640x480]" -v
I got a bump in fps (from 60 to 130) but now I can't go back to 1456x1088 (using media-ctl).
The error I get + the command I'm trying to go back to full resolution.

Code:

pi@raspberrypi:~ $ media-ctl -d /dev/media3 --set-v4l2 "'imx296 10-001a':0 [fmt:SBGGR10_1X10/1456x1088 crop:(0,0)/1456x1088]" -vOpening media device /dev/media3Enumerating entitieslooking up device: 81:6looking up device: 81:7looking up device: 81:8looking up device: 81:9Found 5 entitiesEnumerating pads and linksno such entity "imx296 10-001a" 'imx296 10-001a':0 [fmt:SBGGR10_1X10/1456x1088 crop:(0,0)/1456x1088]  ^Unable to parse formatUnable to setup formats: Invalid argument (22)
I'm getting this while using Tony for a python script:

Code:

WARNING: consider inline headers with 'pause'/split/segment/circular[1:28:35.069176795] [13021]  INFO Camera camera_manager.cpp:297 libcamera v0.0.5+83-bde9b04f[1:28:35.117867172] [13025]  INFO RPI vc4.cpp:437 Registered camera /base/soc/i2c0mux/i2c@1/imx296@1a to Unicam device /dev/media0 and ISP device /dev/media3[1:28:35.117951153] [13025]  INFO RPI pipeline_base.cpp:1101 Using configuration file '/home/pi/libcamera/src/libcamera/pipeline/rpi/vc4/data/rpi_apps.yaml'Mode selection:    SRGGB10_CSI2P 1456x1088 - Score: 3357.84[1:28:35.122124306] [13021]  INFO Camera camera.cpp:1033 configuring streams: (0) 640x480-YUV420 (1) 1456x1088-SBGGR10_CSI2P[1:28:35.122620708] [13025]  INFO RPI vc4.cpp:565 Sensor: /base/soc/i2c0mux/i2c@1/imx296@1a - Selected sensor format: 1456x1088-SBGGR10_1X10 - Selected unicam format: 1456x1088-pBAA
I'm using a GS camera and I followed the commands in this forum :
viewtopic.php?p=2155912#p2155912
viewtopic.php?p=2090381#p2090381
Just a mention, if I force the resolution to 1456x1088 everything works fine but as soon as the resolution is not "forced" it defaults to 640x480 as I set it using media-ctl.

Thanks in advance!

Statistics: Posted by mariush26 — Wed Feb 21, 2024 1:49 pm



Viewing all articles
Browse latest Browse all 4848

Trending Articles