Multi-camera setup project. - page 13 - Creative Uses of CHDK - CHDK Forum

Multi-camera setup project.

  • 462 Replies
  • 207274 Views
*

Offline reyalp

  • ******
  • 14117
Re: Multi-camera setup project.
« Reply #120 on: 09 / August / 2014, 19:10:14 »
Advertisements
How overwriting is handled?
The current upload functions overwrite existing files without any prompt or notification.
Don't forget what the H stands for.

Re: Multi-camera setup project.
« Reply #121 on: 10 / August / 2014, 12:58:10 »
@reyalp

1. Zoom -
So an idea popped to issue a set_aflock(1) before set_zoom..and TAAA-DAAA ..lens moved!
And i created another button in the GUI , with exactly what you said.. !mc:cmd('call ... your lua code').Worked like a charm.

I've been following this thread but I can't understand this...
can you tell me what you did step by step for this zoom command, I really dont understand how to zoom all cameras with chdkptp multicam

*

Offline mphx

  • ***
  • 210
Re: Multi-camera setup project.
« Reply #122 on: 10 / August / 2014, 15:06:40 »
I've been following this thread but I can't understand this...
can you tell me what you did step by step for this zoom command, I really dont understand how to zoom all cameras with chdkptp multicam

Sure ...

1. connect to ALL cameras through multicam commands .  i use GUI , so when i test something i throw commands to the console.
2.issue
Code: [Select]
!mc:cmdwait('call set_aflock(1)')to the console.

3. same as 2 issue

Code: [Select]
!mc:cmdwait('call set_zoom(12)')
12 , is a random number , you can test any number you like and see what's the supported range for your camera.

For me without the set_aflock command , zoom command didn't work.Strange but true.

Also if you like to play with focus the command is

Code: [Select]
!mc:cmd('call set_focus(10)')
again , you can try any number...number is distance in mm.
Don't forget in order for focus to work you have to set up "manual focus -> ON" in chdk menu (alt..wait for few secs..and in the popup menu ..press UP ..wait for few secs again and check that manual focus went ON...alt again to close the menu and save the change and reboot and check again that the setting is saved).

If you close / reboot the camera or go to preview mode and back to rec mode .. settings of focus/zoom are lost and you have to issue again the above commands.
« Last Edit: 10 / August / 2014, 15:09:52 by mphx »

*

Offline reyalp

  • ******
  • 14117
Re: Multi-camera setup project.
« Reply #123 on: 10 / August / 2014, 15:10:42 »
can you tell me what you did step by step for this zoom command, I really dont understand how to zoom all cameras with chdkptp multicam
Something like
Code: [Select]
!mc:cmdwait('call set_zoom(2)')
Where 2 is the zoom step you want to zoom to.

The set_aflock thing is some quirk of the particular camera model mphx is using, so it may not be relevant to you.

If set_zoom doesn't work, you can also use key clicks instead, like
Code: [Select]
!mc:cmdwait('call click("zoom_out")')
but this will be slow if your camera has lots of zoom steps.

In it's current state, using multicam requires a certain amount of programming. I'd suggest familiarizing yourself with the CHDK scripting documentation:
http://chdk.wikia.com/wiki/CHDK_Scripting_Cross_Reference_Page
and the Lua documentation:
http://www.lua.org/manual/5.1/

The 'call' command listed above sends lua code to the camera to execute, so you can call just about anything from the scripting cross reference.

The stuff after ! is lua code executed in chdkptp, on your PC rather than on the camera.

edit:
Note that normally the camera will re-focus after zoom changes. The set_focus in mphx example is required because of the use of af lock.
« Last Edit: 10 / August / 2014, 15:13:01 by reyalp »
Don't forget what the H stands for.


*

Offline mphx

  • ***
  • 210
Re: Multi-camera setup project.
« Reply #124 on: 11 / August / 2014, 16:24:47 »
I started installing sd cards to cameras tonight , setting some parameters at the same time.At around camera no26 :) i remembered that i didn't set flash OFF to every camera.
So i started again and i noticed that some cameras had lost the date/time setting.It's no big deal since i don't care if photos taken will be time-stamped or not but it's strange.
Also i noticed that cameras that had already flash OFF had kept the time/date setting and the ones that had lost the setting were ALWAYS the ones that had not the flash OFF setting.
Maybe they are irrelevant maybe not..Just saying :)

Re: Multi-camera setup project.
« Reply #125 on: 11 / August / 2014, 23:33:22 »
YEs!! I did it.
trying to go to the next step
many many thanks to you @mphx, @reyalp

*

Offline mphx

  • ***
  • 210
Re: Multi-camera setup project.
« Reply #126 on: 12 / August / 2014, 06:07:42 »
YEs!! I did it.
trying to go to the next step
many many thanks to you @mphx, @reyalp

Nice to hear :) What's the next step ?

*

Offline mphx

  • ***
  • 210
Re: Multi-camera setup project.
« Reply #127 on: 20 / August / 2014, 01:29:21 »
UPDATE on the project :)

We set up tripods  cameras and cable stuff yesterday...too much boring work if you ask me if you have to do everything x64 times ...

Today , we will setup 1-2 laptops and connect all cameras and start doing some real-environment testing in order to see how to setup cameras (direction,shutter speed,etc etc).

some pictures of the studio...

https://www.dropbox.com/s/jasds7gtateg8si/20140819_095944.jpg  -- tripods and camera mounts.


https://www.dropbox.com/s/g7aeokcvi6c82gd/20140819_130214.jpg -- after we mounted cameras and dummy batteries

Later we connected hubs and usb cables... in the base of every tripod now its a little chaos of cables :) We will sort them in "beautiful" piles in later time :)


*

Offline mphx

  • ***
  • 210
Re: Multi-camera setup project.
« Reply #128 on: 21 / August / 2014, 17:04:27 »
Next update on the project.

We did some tests but we came across some problems with usb hubs.Well , we think its the hubs.Some of them apparently are not up to the task and we ordered another brand/model .Till they come problems remain.

And by problem i mean not all cameras are recognized at the pc.Maximum we were able to "see" were 40 cameras.That's 5 tripods out of 8.These 5 tripods have the same brand/model of usb hubs and the rest three another one.So we believe that maybe its a matter of hubs.
These three tripods are working if they are connected alone..but when we hook up all tripods ...these 3 tripods dont "appear" at the computer.
We will replace the hubs and see what will happen.

To the practical part now :)

We did some test shootings with the 40 cameras that were working....No flash involved.The noise on the pictures taken was...too much.Then we used more intense light and the noise reduced in acceptable levels.

We did a rough/fast 3d modelling processing to some test shots..and the result was very good...a 3d miniature could be created out of this.So the main purpose of this project seems to be working....creating 3d miniatures.

All that is left now is to make all cameras work..and good to go.

Syncing was very good with 40 cameras...considering that "object" is rather still as i have mentioned before... rapid movements produced foggy "parts" in the picture...but that would not be the case in real situations...

Re: Multi-camera setup project.
« Reply #129 on: 21 / August / 2014, 17:47:51 »
.
Syncing was very good

Nice to know.

 
Quote
"object" is rather still .

So, how do you know the syncing is 'very good'  ?  :)

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal