Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolution vs. recorded area at imx477 #595

Closed
LeifSec opened this issue Nov 14, 2023 · 10 comments
Closed

resolution vs. recorded area at imx477 #595

LeifSec opened this issue Nov 14, 2023 · 10 comments

Comments

@LeifSec
Copy link

LeifSec commented Nov 14, 2023

When using e.g. imx708 camera setting the resolution (e.g. via libcamera-vid --width 640 --height 480 or using the PiCamera2 interface and `configuration["main"]["size"] result in a video (stream) of full sensor area and the set resolution.

But when using camera imx477 results in a video of just an area of the set resolution.

@naushir
Copy link
Collaborator

naushir commented Nov 14, 2023

This is entirely dependent on how the sensor mode is configured in the kernel driver. Could you provide exactly what you are trying to achieve, and what command you are using?

@LeifSec
Copy link
Author

LeifSec commented Nov 16, 2023

about the camer amodule:
libcamera-hello

[0:24:26.736960070] [2028]  INFO Camera camera_manager.cpp:284 libcamera v0.1.0+52-a858d20b
[0:24:26.898406297] [2031]  WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:24:26.908213868] [2031]  INFO RPI vc4.cpp:387 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
Stream configuration adjusted
[0:24:26.910858234] [2028]  INFO Camera camera.cpp:1213 configuring streams: (0) 2028x1520-YUV420
[0:24:26.911883127] [2031]  INFO RPI vc4.cpp:549 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
#0 (0.00 fps) exp 1911.00 ag 1.00 dg 1.00
#1 (30.01 fps) exp 1638.00 ag 1.00 dg 1.00
...

record a video
libcamera-vid --width 640 --height 480

[0:30:07.943977722] [2067]  INFO Camera camera_manager.cpp:284 libcamera v0.1.0+52-a858d20b
[0:30:08.105135513] [2070]  WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:30:08.115136521] [2070]  INFO RPI vc4.cpp:387 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:30:08.117394742] [2067]  INFO Camera camera.cpp:1213 configuring streams: (0) 640x480-YUV420
[0:30:08.118688853] [2070]  INFO RPI vc4.cpp:549 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
#0 (0.00 fps) exp 1820.00 ag 1.00 dg 1.00
#1 (30.01 fps) exp 1501.00 ag 1.00 dg 1.00
...

For imx708 this records a video of full sensors size with resolution 640x480. But for imx477 only a area of 640x480 is recorded.

@naushir
Copy link
Collaborator

naushir commented Nov 16, 2023

In both cases above, you are using the 2028x1520 full FoV sensor mode. If you take a full resolution still capture with libcamera-still, you ought to get the same field of view. Can you confirm?

Could it be that the field of view difference you are seeing between the imx708 and imx477 is purely down to the module lenses you are using?

@LeifSec
Copy link
Author

LeifSec commented Nov 16, 2023

libcamera-still is also for imx477 generating pictures with full sensor area.
But libcamera-vid (also libcamera-vid --rawfull=1) is generating videos with only one half (horizontal) of the sensor area.

@naushir
Copy link
Collaborator

naushir commented Nov 17, 2023

Can you share an image to show the difference between libcamera-vid and libcamera-still? Please also include the command line used, and the console output generated.

@LeifSec
Copy link
Author

LeifSec commented Nov 17, 2023

libcamera-still --raw -o libcamera_still_raw_imx477.jpg

Preview window unavailable
[0:03:51.751105794] [1470]  INFO Camera camera_manager.cpp:284 libcamera v0.1.0+52-a858d20b
[0:03:51.910695560] [1473]  WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:03:51.920999298] [1473]  INFO RPI vc4.cpp:387 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media3 and ISP device /dev/media0
Stream configuration adjusted
[0:03:51.924194659] [1470]  INFO Camera camera.cpp:1213 configuring streams: (0) 2028x1520-YUV420
[0:03:51.925615178] [1473]  INFO RPI vc4.cpp:549 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
#0 (0.00 fps) exp 29999.00 ag 3.52 dg 1.22
#1 (30.01 fps) exp 29999.00 ag 3.53 dg 1.21
#2 (30.01 fps) exp 29999.00 ag 3.52 dg 1.22
#3 (30.01 fps) exp 29999.00 ag 3.53 dg 1.21
#4 (30.01 fps) exp 32138.00 ag 4.00 dg 1.00
#5 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#6 (30.01 fps) exp 32123.00 ag 4.00 dg 1.00
#7 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#8 (30.01 fps) exp 32138.00 ag 4.00 dg 1.00
#9 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#10 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#11 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#12 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#13 (30.01 fps) exp 32229.00 ag 4.00 dg 1.00
#14 (30.01 fps) exp 32229.00 ag 4.00 dg 1.00
#15 (30.01 fps) exp 32229.00 ag 4.00 dg 1.00
#16 (30.01 fps) exp 32229.00 ag 4.00 dg 1.00
#17 (30.01 fps) exp 32229.00 ag 4.00 dg 1.00
#18 (30.01 fps) exp 32229.00 ag 4.00 dg 1.00
#19 (30.01 fps) exp 32229.00 ag 4.00 dg 1.00
#20 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#21 (30.00 fps) exp 32214.00 ag 4.00 dg 1.00
#22 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#23 (30.02 fps) exp 32214.00 ag 4.00 dg 1.00
#24 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#25 (30.01 fps) exp 32229.00 ag 4.00 dg 1.00
#26 (30.01 fps) exp 32229.00 ag 4.00 dg 1.00
#27 (30.01 fps) exp 32229.00 ag 4.00 dg 1.00
#28 (30.01 fps) exp 32229.00 ag 4.00 dg 1.00
#29 (30.01 fps) exp 32229.00 ag 4.00 dg 1.00
#30 (29.99 fps) exp 32229.00 ag 4.00 dg 1.00
#31 (30.03 fps) exp 32229.00 ag 4.00 dg 1.00
#32 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#33 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#34 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#35 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#36 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#37 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#38 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#39 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#40 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#41 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#42 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#43 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#44 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#45 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#46 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#47 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#48 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#49 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#50 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#51 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#52 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#53 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#54 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#55 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#56 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#57 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#58 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#59 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#60 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#61 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#62 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#63 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#64 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#65 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#66 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#67 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#68 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#69 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#70 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#71 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#72 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#73 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#74 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#75 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#76 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#77 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#78 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#79 (30.01 fps) exp 32214.00 ag 4.00 dg 1.00
#80 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#81 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#82 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#83 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#84 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#85 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#86 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#87 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#88 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#89 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#90 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#91 (30.01 fps) exp 32198.00 ag 4.00 dg 1.00
#92 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#93 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#94 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#95 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#96 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#97 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#98 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#99 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#100 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#101 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#102 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#103 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#104 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#105 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#106 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#107 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#108 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#109 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#110 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#111 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#112 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#113 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#114 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#115 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#116 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#117 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#118 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#119 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#120 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#121 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#122 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#123 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#124 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#125 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#126 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#127 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#128 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#129 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#130 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#131 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#132 (30.01 fps) exp 32183.00 ag 4.00 dg 1.00
#133 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#134 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#135 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#136 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#137 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#138 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#139 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#140 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
#141 (30.01 fps) exp 32168.00 ag 4.00 dg 1.00
[0:03:57.533877736] [1470]  INFO Camera camera.cpp:1213 configuring streams: (0) 4056x3040-YUV420 (1) 4056x3040-SBGGR12_CSI2P
[0:03:57.539398199] [1473]  INFO RPI vc4.cpp:549 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 4056x3040-SBGGR12_1X12 - Selected unicam format: 4056x3040-pBCC
Still capture image received
Bayer format is BGGR-12

libcamera_still_raw_imx477

libcamera-vid --width 1024 --height 768 -t 5000 -o libcamera_vid_10124_768_imx477.h264

Preview window unavailable
[0:15:52.254066576] [1666]  INFO Camera camera_manager.cpp:284 libcamera v0.1.0+52-a858d20b
[0:15:52.413960957] [1669]  WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:15:52.424019222] [1669]  INFO RPI vc4.cpp:387 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media3 and ISP device /dev/media0
[0:15:52.426459309] [1666]  INFO Camera camera.cpp:1213 configuring streams: (0) 1024x768-YUV420
[0:15:52.427582999] [1669]  INFO RPI vc4.cpp:549 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
#0 (0.00 fps) exp 29999.00 ag 3.26 dg 1.24
#1 (30.01 fps) exp 29999.00 ag 3.27 dg 1.23
#2 (30.01 fps) exp 29999.00 ag 3.26 dg 1.24
#3 (30.01 fps) exp 29999.00 ag 3.27 dg 1.23
#4 (30.01 fps) exp 30212.00 ag 4.00 dg 1.00
#5 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#6 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#7 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#8 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#9 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#10 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#11 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#12 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#13 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#14 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#15 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#16 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#17 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#18 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#19 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#20 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#21 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#22 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#23 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#24 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#25 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#26 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#27 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#28 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#29 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#30 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#31 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#32 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#33 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#34 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#35 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#36 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#37 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#38 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#39 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#40 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#41 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#42 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#43 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#44 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#45 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#46 (30.01 fps) exp 30257.00 ag 4.00 dg 1.00
#47 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#48 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#49 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#50 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#51 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#52 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#53 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#54 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#55 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#56 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#57 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#58 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#59 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#60 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#61 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#62 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#63 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#64 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#65 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#66 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#67 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#68 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#69 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#70 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#71 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#72 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#73 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#74 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#75 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#76 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#77 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#78 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#79 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#80 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#81 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#82 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#83 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#84 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#85 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#86 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#87 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#88 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#89 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#90 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#91 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#92 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#93 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#94 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#95 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#96 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#97 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#98 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#99 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#100 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#101 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#102 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#103 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#104 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#105 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#106 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#107 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#108 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#109 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#110 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#111 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#112 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#113 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#114 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#115 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#116 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#117 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#118 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#119 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#120 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#121 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#122 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#123 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#124 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#125 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#126 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#127 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#128 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#129 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#130 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#131 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#132 (30.01 fps) exp 30242.00 ag 4.00 dg 1.00
#133 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#134 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#135 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#136 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#137 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#138 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#139 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#140 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
#141 (30.01 fps) exp 30227.00 ag 4.00 dg 1.00
Halting: reached timeout of 5000 milliseconds.

VLC
-> Video resolution 1024x768
-> take snapshot
vlcsnap-2023-11-17-08h47m53s843

libcamera-vid --width 1920 --height 1280 -t 5000 -o libcamera_vid_1920_1280_imx477.h264

Overriding H.264 level 4.2
Preview window unavailable
[0:22:27.475952710] [1700]  INFO Camera camera_manager.cpp:284 libcamera v0.1.0+52-a858d20b
[0:22:27.636226028] [1703]  WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:22:27.646043686] [1703]  INFO RPI vc4.cpp:387 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media3 and ISP device /dev/media0
[0:22:27.648332412] [1700]  INFO Camera camera.cpp:1213 configuring streams: (0) 1920x1280-YUV420
[0:22:27.649368755] [1703]  INFO RPI vc4.cpp:549 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1080-SBGGR12_1X12 - Selected unicam format: 2028x1080-pBCC
ERROR: *** failed to start output streaming ***
pi@raspberrypi:~ $ libcamera-vid --width 1920 --height 1280 -t 5000 -o libcamera_vid_1920_1280_imx477.h264
Overriding H.264 level 4.2
Preview window unavailable
[0:23:53.795202002] [1707]  INFO Camera camera_manager.cpp:284 libcamera v0.1.0+52-a858d20b
[0:23:53.954202424] [1710]  WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:23:53.964293891] [1710]  INFO RPI vc4.cpp:387 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media3 and ISP device /dev/media0
[0:23:53.966601942] [1707]  INFO Camera camera.cpp:1213 configuring streams: (0) 1920x1280-YUV420
[0:23:53.967797921] [1710]  INFO RPI vc4.cpp:549 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1080-SBGGR12_1X12 - Selected unicam format: 2028x1080-pBCC
ERROR: *** failed to start output streaming ***

libcamera-vid --rawfull=1 -t 5000 -o libcamera_vid_rawfull_imx477.h264

Preview window unavailable
[0:25:44.852617901] [1728]  INFO Camera camera_manager.cpp:284 libcamera v0.1.0+52-a858d20b
[0:25:45.011558518] [1731]  WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:25:45.021548380] [1731]  INFO RPI vc4.cpp:387 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media3 and ISP device /dev/media0
[0:25:45.023948255] [1728]  INFO Camera camera.cpp:1213 configuring streams: (0) 640x480-YUV420
[0:25:45.026033289] [1731]  INFO RPI vc4.cpp:549 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
#0 (0.00 fps) exp 29999.00 ag 3.03 dg 1.26
#1 (30.01 fps) exp 29999.00 ag 3.03 dg 1.26
#2 (30.01 fps) exp 29999.00 ag 3.03 dg 1.26
#3 (30.01 fps) exp 29999.00 ag 3.03 dg 1.26
#4 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#5 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#6 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#7 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#8 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#9 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#10 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#11 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#12 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#13 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#14 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#15 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#16 (30.02 fps) exp 29999.00 ag 3.82 dg 1.00
#17 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#18 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#19 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#20 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#21 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#22 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#23 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#24 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#25 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#26 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#27 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#28 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#29 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#30 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#31 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#32 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#33 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#34 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#35 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#36 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#37 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#38 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#39 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#40 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#41 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#42 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#43 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#44 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#45 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#46 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#47 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#48 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#49 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#50 (30.01 fps) exp 29999.00 ag 3.82 dg 1.00
#51 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#52 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#53 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#54 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#55 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#56 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#57 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#58 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#59 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#60 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#61 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#62 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#63 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#64 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#65 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#66 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#67 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#68 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#69 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#70 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#71 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#72 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#73 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#74 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#75 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#76 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#77 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#78 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#79 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#80 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#81 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#82 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#83 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#84 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#85 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#86 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#87 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#88 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#89 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#90 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#91 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#92 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#93 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#94 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#95 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#96 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#97 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#98 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#99 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#100 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#101 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#102 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#103 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#104 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#105 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#106 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#107 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#108 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#109 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#110 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#111 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#112 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#113 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#114 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#115 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#116 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#117 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#118 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#119 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#120 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#121 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#122 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#123 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#124 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#125 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#126 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#127 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#128 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#129 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#130 (29.99 fps) exp 29999.00 ag 3.81 dg 1.00
#131 (30.04 fps) exp 29999.00 ag 3.81 dg 1.00
#132 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#133 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#134 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#135 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#136 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#137 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#138 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#139 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#140 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
#141 (30.01 fps) exp 29999.00 ag 3.81 dg 1.00
Halting: reached timeout of 5000 milliseconds.

Video resolution 640x480
vlcsnap-2023-11-17-08h53m48s052

@naushir
Copy link
Collaborator

naushir commented Nov 17, 2023

Thanks, I will look into this and see what I can find.

@naushir
Copy link
Collaborator

naushir commented Nov 17, 2023

One quick thought that occurred, this might be actually caused by a bug that was fixed with raspberrypi/linux#5685.

Are you able to rebuild the up-to-date kernel and try this out again? If not, you can do sudo rpi-update pulls/5685 sudo rpi-update. However, please only do this if you are OK with running a non-release kernel temporarily and unrelated things may go wrong!

EDIT: In fact, looking closer at the image, I'm fairly certain this is the cause. The image looks horizontally stretched compared to the full res output.

@LeifSec
Copy link
Author

LeifSec commented Nov 17, 2023

rpi-update

*** Updating firmware
 *** Updating kernel modules
 *** depmod 6.1.61-v7l+
 *** depmod 6.1.61-v8+
 *** depmod 6.1.61+
 *** depmod 6.1.61-v7+
 *** Updating VideoCore libr
....

Seems to fix it:
libcamera-vid --rawfull=1 -t 5000 -o libcamera_vid_rawfull_imx477_after_rpi-update.h264
vlcsnap-2023-11-17-13h56m46s480

Thanks a lot.

P.S:
The image distortion one can see is probable related to some SW settings. It is not a lens effect because using the camera with Debian 11 camera legacy stack there is no such effect.

@naushir
Copy link
Collaborator

naushir commented Nov 17, 2023

Thanks for confirming the fix. Closing now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants