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
blank preview screen when preview height biger than 698 #473
Comments
You're exceeding the maximum resolution that the hardware video scalar (the block that puts images on the screen) can cope with. It's specified for 1080P, and only has limited memory for downscaling. If you downscale enough then it line skips as a cheaper downscale which is why it works if the height is <=698. |
6by9 thanks a lot for quick reply. Is there any way (workaround) to display the preview in a higher resolution. I've checked the '1080P' and it gives '1080P': (1920, 1080)? Probably my problem is that I still don't understated how the hardware works. I will try to dig deep into specification but any help will be welcome. |
Perhaps the better question is to ask what you are trying to achieve as there may be a better solution. Video encoding does require preview to run at the same resolution as the encoding, and that will be a problem displaying the images. As to how the hardware is working, the display engine composes the HDMI output "online", ie it generates the pixels as it needs to send them out to the HDMI display. It therefore has to be able to read the relevant pixels from memory and perform all necessary composition to a very strict timeframe. If you exceed the capabilities then it "underflows" and produces either no output, or a corrupt output. |
Looks like 6by9 has answered this pretty comprehensively; do feel free to re-open if you have further questions, but I really can't add any detail beyond what the firmware devs (including 6by9) can (my understanding is a few layers removed from theirs!) |
The code below cause the blank screen instead of expected preview. Everything works correctly when height is set to 698.
`import picamera
with picamera.PiCamera() as camera:
The text was updated successfully, but these errors were encountered: