SX60HS Porting - page 47 - DryOS Development - CHDK Forum  

SX60HS Porting

  • 915 Replies
  • 305212 Views
*

Offline reyalp

  • ******
  • 13751
Re: SX60HS Porting
« Reply #460 on: 04 / August / 2016, 21:15:06 »
Advertisements
The flicker was evident in both Auto and Manual modes. But I noticed a very strange thing: when camera is kept dead steady, the flicker stops - thereafter if the camera is moved the flicker recommences immediately - keep camera steady and the flicker stops etc. - seems like a useless bit of information which won't help solve the problem, but thought to mention it anyway.
This is likely some feature you have enabled that causes the Canon UI to update on movement. Maybe something like face detection, Canon histogram, continuous autofocus.

On my g7x (also digic 6, probably similar to the SX60 port), the display is pretty usable in rec mode most of the time with the settings I use, but I switch to Auto mode it does some kind of continuous autofocus with a reticle that floats around the display. The Canon UI updating makes it flicker.
Don't forget what the H stands for.

Re: SX60HS Porting
« Reply #461 on: 04 / August / 2016, 22:25:57 »
I agree, flickering on my Sx60 is particularly bad when in auto mode or when the camera is adjusting settings automatically.  This is a Digic 6 problem that will be solved eventually.
@hof59 , I appreciate very much that you are trying this software.
« Last Edit: 04 / August / 2016, 22:54:41 by 62ndidiot »

Re: SX60HS Porting
« Reply #462 on: 07 / August / 2016, 16:40:45 »
New versions, supporting motion detection, and HDMI output, get them below (the old versions are deleted)

100b: https://chdk.setepontos.com/index.php?topic=12532.msg128722#msg128722


100f: https://chdk.setepontos.com/index.php?topic=12532.msg128721#msg128721

Re: SX60HS Porting
« Reply #463 on: 07 / August / 2016, 17:42:44 »
62ndidiot: re appreciation for trying the software - I think that's putting the cart before the horse mate, because it's really about us new users who appreciate you putting up the pre-alpha release

reyalp: well I also had this floating reticle in Auto mode (looks a bit like a Harry Potter artifact) and also don't know it's purpose (like so much else in the available settings...... all far too complicated). However your and 62ndidiot comments about UI updating and autofocus got me thinking, so I went through all the settings, looking for anything with 'auto' and switched them ALL off. Then locked and loaded the SD card and ........ no flickering?!? ........ I can't believe this sorts the problem, feel i need to turn the 'autos' back on again, one-by-one, to see at what point the flickering will return. However right now it's closing on midnight and the camera is clicking away in my garden, aimed up at the southern cross turning in our light polluted sky -  maybe I can do some more testing in a few days time with the new version released as of today - thank you 62nd.


Re: SX60HS Porting
« Reply #464 on: 07 / August / 2016, 22:28:37 »
The Southern Hemisphere. Post us a picture or a link.  Love to see what you're able to do!

Re: SX60HS Porting
« Reply #465 on: 09 / August / 2016, 21:52:27 »
I'm wondering if it's possible to control digital zoom with chdk on sx 60?  Independently of optical zoom. 

*

Offline reyalp

  • ******
  • 13751
Re: SX60HS Porting
« Reply #466 on: 10 / August / 2016, 01:13:57 »
I'm wondering if it's possible to control digital zoom with chdk on sx 60?  Independently of optical zoom.
Eventprocs seem to work on g7x
Code: [Select]
con> rec
con 1> =return call_event_proc('SS.Create')
2:return:0
con 2> =return call_event_proc('SS.MoveDigitalZoomToTele')
3:return:0
con 3> =return call_event_proc('SS.MoveDigitalZoomToWide')
4:return:0
con 4> =return call_event_proc('SS.MoveDigitalZoomAt',0)
5:return:0
con 5> =return call_event_proc('SS.MoveDigitalZoomAt',1)
6:return:0
con 6> =return call_event_proc('SS.MoveDigitalZoomAt',2)
7:return:0
Don't forget what the H stands for.

Re: SX60HS Porting
« Reply #467 on: 10 / August / 2016, 12:50:51 »
Quote
Quote
Quote from: 62ndidiot on Yesterday at 21:52:27

    I'm wondering if it's possible to control digital zoom with chdk on sx 60?  Independently of optical zoom.
Eventprocs seem to work on g7x
Code: [Select]

con> rec
con 1> =return call_event_proc('SS.Create')
2:return:0
con 2> =return call_event_proc('SS.MoveDigitalZoomToTele')
3:return:0
con 3> =return call_event_proc('SS.MoveDigitalZoomToWide')
4:return:0
con 4> =return call_event_proc('SS.MoveDigitalZoomAt',0)
5:return:0
con 5> =return call_event_proc('SS.MoveDigitalZoomAt',1)
6:return:0
con 6> =return call_event_proc('SS.MoveDigitalZoomAt',2)
7:return:0
Thanks @reyalp, this works for me.  I am able to use digital zoom up to 4x with this:
=return call_event_proc('SS.MoveDigitalZoomAt',6)

The camera crashes if I try 7. Strangely it goes to 1x, if I try 8, and 1.6x with 9, maybe looking at lower bits. Not sure why digital zoom should be limited this way. Previously, it was necessary to zoom optically all the way to 65x and then digitally to 4x more to 260x, reducing the number of pixels by 16 I think.
Also, digital zoom appears to operate smoothly when I use Canon's builtin digital zoom in this way, it's not limited to specific values...so I wonder if perhaps there's some other way of setting it as well?

What I am interested in is supported (I think in Magic Lantern) and to some extent by Canon EOS util LiveView, which allows two things if I understand correctly:

1. permit capture of raw video at the pixel level by matching the screen LCD resolution to the reduced number of pixels selected by digital zoom...unfortunately even 4x is insufficient for my 640x480 LCD...
2. possibly improve video quality (and reduce size) by matching video frame size to the sensor pixels so downsampling does not take place, so for example 4x is a fairly close match to 1280x720.

For the record, the following zoom factors are possible using
=return call_event_proc('SS.MoveDigitalZoomAt',N)

N=0 -> 1x, 1 -> 1.3x, 2-> 1.6x, 3-> 2.0x, 4-> 2.6x, 5 -> 3.2x, 6->4x


Re: SX60HS Porting propset8
« Reply #468 on: 10 / August / 2016, 14:34:56 »
I guess the propcase for digital zoom in propset8 is a bit wrong
(this is what we have)
Code: [Select]
define PROPCASE_DIGITAL_ZOOM_MODE               94         // Digital Zoom Mode/State 0 = off/standard, 2 = 1.5x, 3 = 2.0x----blackhole
#define PROPCASE_DIGITAL_ZOOM_STATE              97         // TODO, guessed ps6+3 required for compile Digital Zoom Mode/State 0 = Digital Zoom off, 1 = Digital Zoom on
#define PROPCASE_DIGITAL_ZOOM_POSITION           98         //0-6-----blackhole

I see on the sx60hs:

Code: [Select]
            <----zoom setting number-------------------->
              1x                1x              1.6x             4x
PrpC      (startup)          0                2                6
94          2304 2304            1408           576
95   zero
96   zero
97 1   1                1                1       
98             0                0                2                6
106       ff70 ff70              ff8c             ffeb
It looks like 94 is half the width in pixels (Canon uses 4608) on the sx60hs

*

Offline reyalp

  • ******
  • 13751
Re: SX60HS Porting propset8
« Reply #469 on: 10 / August / 2016, 16:28:01 »
I guess the propcase for digital zoom in propset8 is a bit wrong
(this is what we have)
Code: [Select]
define PROPCASE_DIGITAL_ZOOM_MODE               94         // Digital Zoom Mode/State 0 = off/standard, 2 = 1.5x, 3 = 2.0x----blackhole
#define PROPCASE_DIGITAL_ZOOM_STATE              97         // TODO, guessed ps6+3 required for compile Digital Zoom Mode/State 0 = Digital Zoom off, 1 = Digital Zoom on
#define PROPCASE_DIGITAL_ZOOM_POSITION           98         //0-6-----blackhole

I see on the sx60hs:

Code: [Select]
            <----zoom setting number-------------------->
              1x                1x              1.6x             4x
PrpC      (startup)          0                2                6
94          2304 2304            1408           576
95   zero
96   zero
97 1   1                1                1       
98             0                0                2                6
106       ff70 ff70              ff8c             ffeb
It looks like 94 is half the width in pixels (Canon uses 4608) on the sx60hs
Are these results from using the Canon UI, or the eventprocs? It wouldn't surprise me if the eventprocs didn't update all the propcases the Canon UI does.

Re the comments in the previous post:
- It's possible the canon menu digital zoom settings have some impact
- There are some other digital zoom related eventprocs, maybe one of them lets you move the zoom smoothly. I believe ComputerZoom and CZ both refer to digital zoom. I have not explored these.
Don't forget what the H stands for.

 

Related Topics