AndrewFromMelbourne / raspi2raspi

Program to copy from one Raspberry Pi display to another Raspberry Pi display
MIT License
34 stars 15 forks source link

Issue when mirror picamera preview in high resolution #6

Open zbarna opened 6 years ago

zbarna commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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