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

Changing of live view size and remote control #13

Open
Weeper1k opened this issue Dec 23, 2016 · 2 comments
Open

Changing of live view size and remote control #13

Weeper1k opened this issue Dec 23, 2016 · 2 comments

Comments

@Weeper1k
Copy link

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
Copy link
Owner

jcupitt commented Dec 26, 2016

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

@jcupitt
Copy link
Owner

jcupitt commented Dec 27, 2016

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.

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