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

recorded area at imx708 for video too small #630

Closed
LeifSec opened this issue Jan 12, 2024 · 4 comments
Closed

recorded area at imx708 for video too small #630

LeifSec opened this issue Jan 12, 2024 · 4 comments

Comments

@LeifSec
Copy link

LeifSec commented Jan 12, 2024

Similar to #595 now for imx708 (no zoom lens etc.) the video area is much smaller than the picture area.

I have already done rpi_update and reboot / power off /on.

libcamera-still -o libcamera_still.jpg

libcamera_still

libcamera-vid -t 5000 -o libcamera_vid.h264
vlcsnap-2024-01-12-17h45m58s739

@naushir
Copy link
Collaborator

naushir commented Jan 15, 2024

What resolution are you trying to record? But default rpicam-vid records 640x480, which will crop the field of view. Try adding --width 1920 --height 1080, that should give you the full FoV.

@LeifSec
Copy link
Author

LeifSec commented Jan 15, 2024

OK with --width 1920 --height 1080 it is the full sensor area:
vlcsnap-2024-01-15-10h02m53s187

but it does not look like that width and height are just the size of the centered recorded area and that there is no down sampling.

1080 x 768
vlcsnap-2024-01-15-10h07m32s069

this seem to have only much larger dimensions as 640 x 480
vlcsnap-2024-01-15-10h10m46s143

192 x 108 (larger again ...)
vlcsnap-2024-01-15-10h13m20s663

Does this mean that if I I want to record the full sensor area I always have to record with --width 1920 --height 1080and then do a down sampling of the resolution by myself?

@naushir
Copy link
Collaborator

naushir commented Jan 15, 2024

Does this mean that if I I want to record the full sensor area I always have to record with --width 1920 --height 1080and then do a down sampling of the resolution by myself

No, you can ask the ISP to do the downsampling. You can do this with the following command:

rpicam-vid  -t 5000 -o libcamera_vid.h264  --width <width> --height <height> --mode 2304:1296:10:P

This will request the full FoV mode from the sensor, and scale down to any resolution you requset in the ISP. However, you need to match the 16:9 aspect ratio to ensure the ISP does not do any further crop of the FoV.

@LeifSec
Copy link
Author

LeifSec commented Jan 15, 2024

Ok rpicam-vid -t 5000 -o libcamera_vid_mod_800.h264 --width 800 --height 450 --mode 2304:1296:10:P produced full sensor area.

Thanks a lot.

P.S.:
Now I have to figure out how this is handles in pycamera2 ...

@LeifSec LeifSec closed this as completed Jan 15, 2024
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