I use GScrop tool to capture eg. 688x136@402fps videos with GS camera:
https://stamm-wilbrandt.de/GS
After using it for any mode different than 1456x1088, no rpicam* command preview does work (fails to start streaming).
I use "GScrop 1456 1088 60 100" to reset to full view, then rpicam* previews work again.
Today I played with picamera2 zoom demo:
https://github.com/raspberrypi/picamera ... es/zoom.py
It was surprisingly easy to get preview of centered 688x136 crop I typically use with GScrop tool:
Hopefully simple to answer questions first:
1) how to reduce height of preview to 136?
2) is pure 688x136 preview possible without a window title?
Next I tried to record 688x136 video (with default framerate for now) based on capture_video.py:
https://github.com/raspberrypi/picamera ... e_video.py
I tried many things, but always full frame got recorded![Sad :-(]()
How can I tell the encoder to capture 688x136 centered frame only, that I was able to preview?
https://stamm-wilbrandt.de/GS
After using it for any mode different than 1456x1088, no rpicam* command preview does work (fails to start streaming).
I use "GScrop 1456 1088 60 100" to reset to full view, then rpicam* previews work again.
Today I played with picamera2 zoom demo:
https://github.com/raspberrypi/picamera ... es/zoom.py
It was surprisingly easy to get preview of centered 688x136 crop I typically use with GScrop tool:
Code:
import timefrom picamera2 import Picamera2, Previewpicam2 = Picamera2()preview_config = picam2.create_preview_configuration({"size": (688, 136)})picam2.configure(preview_config)picam2.start_preview(Preview.QTGL)picam2.set_controls({"ScalerCrop": (376, 476, 688, 136)})picam2.start()time.sleep(99)
Hopefully simple to answer questions first:
1) how to reduce height of preview to 136?
2) is pure 688x136 preview possible without a window title?
Next I tried to record 688x136 video (with default framerate for now) based on capture_video.py:
https://github.com/raspberrypi/picamera ... e_video.py
I tried many things, but always full frame got recorded

How can I tell the encoder to capture 688x136 centered frame only, that I was able to preview?
Statistics: Posted by HermannSW — Sun Jun 23, 2024 9:51 am