jcupitt / rtiacquire

Remote control of any DSLR camera
GNU Lesser General Public License v2.1
92 stars 21 forks source link

Changing of live view size and remote control #13

Open Weeper1k opened 7 years ago

Weeper1k commented 7 years ago

Hi, First i want to say that you did a really great job programming this! I am currently trying to build a photo booth with a pi while using your python program.

I tried to increase the size of the live view to fullscreen but failed. I replaced within the preview.py the code -> self.pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, 640, 426) with -> self.pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, 1920, 1080)

However, this only changed the whole window in total but not the size of the preview.

Do you know how i can change the preview to fullscreen?


My next question is with an remote controll. I have the D3200 which u mentioned and i am using the the Yongnuo RF603N II to remote control the camera to focus and capture. However when i am in the preview i cannot get the cam to focus or capture. Just by using the buttons will the camera capture a picture.

Do you maybe know a solution to this?


I hope you can help me. I am going nearly crazy right now :( Many thanks in advance. cheers

jcupitt commented 7 years ago

Hi, I'll try and look into this tomorrow.

jcupitt commented 7 years ago

Hi @Weeper1k,

Size of preview: You have a few choices here:

  1. The simplest thing would be to reduce the resolution of the pi output. 1920 x 1080 is the highest res one, but you can run it at much lower resolutions. Something near 640 x 400 would mean you wouldn't need to upsize the preview at all.

  2. You could do a simple x2 upsize in C as part of the decompression. 1200 x 852 would be a better fit for your output resolution, though still not perfect. It would need a lot more CPU and the pi might struggle to hit 30 fps.

  3. You could upsize with gdk-pixbuf. It can upsize by any ratio, so you could hit 1080 x 1920 exactly, but it will probably be too slow. You'd need to experiment.

  4. The pi has a surprisingly powerful GPU and you could upsize very quickly with that. You'd need to dig into OpenGL for Python, and probably do a little C as well.

Focus and capture: sorry, I've not used a remote control, I just drove the camera over USB. Have you tried that? You need to get the buttons and levers on the lens into the right positions, but it does work.

You can't capture a shot while the preview is running. You need to stop the preview to lower the mirror, capture, then start the preview again.