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

Issue when mirror picamera preview in high resolution #6

Open
zbarna opened this issue Apr 20, 2018 · 2 comments
Open

Issue when mirror picamera preview in high resolution #6

zbarna opened this issue Apr 20, 2018 · 2 comments

Comments

@zbarna
Copy link

zbarna commented Apr 20, 2018

Hi Andrew!

First of all thanks for your solution, it works well, and very useful!

Unfortunately I stucked into one problem, and hope that you can give me some hints.

I have a Raspberry Pi 3 with Raspbian os and an official 7" touch screen connected via DSI, and a full HD monitor connected via HDMI.

I changed the resolution for the framebuffer to 1920x1080, so when I mirror the screen with raspi2raspi to the HD monitor the resolution is perfect.

I would like to display the picamera preview window in full hd resolution, and mirror it to the hdmi as well. The problem starts here, if I set full hd resolution for the picamera, and start the preview, the hdmi disconnects after a few seconds, so the hdmi signal stops :( .
If I set the resolution for the picamera around 1400x800 or lower, it works well.

Could you help me, why is it not possible to send the full hd picamera preview to the hdmi with raspi2raspi?
I also tried to increase the gpu memory size to 512, but it didn't help :( .

Here my test python script:

#!/usr/bin/env python
import time
import picamera 

def main(args):
    #HDMI signal stops after a few seconds:
    camera = picamera.PiCamera(resolution=(1920,1080))
    #With this resolution works well:
    #camera = picamera.PiCamera(resolution=(1400,787))
    camera.start_preview(fullscreen=False, window=(100, 50, 570, 400))
    time.sleep(20)
    camera.stop_preview()
    return 0

if __name__ == '__main__':
    import sys
    sys.exit(main(sys.argv))

Could you recommend something? What can be the problem?

Thanks for you help in advance!

Best Regards,
Zoltán

@AndrewFromMelbourne
Copy link
Owner

Hi Zoltan,

I suspect that this is an issue with the Raspberry Pi firmware. The raspi2raspi program itself is pretty simple. My only suggestion would be to change the memory split to give more memory to the GPU.

Andrew

@zbarna
Copy link
Author

zbarna commented Apr 21, 2018

Thank you for your quick response, I will try to contact with the Raspberry team about this issue! :)

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