SX170 porting - page 25 - DryOS Development - CHDK Forum supplierdeeply

SX170 porting

  • 266 Replies
  • 96442 Views
*

Offline TMHKR

  • **
  • 77
  • Canon PowerShot SX170 IS (1.01a firmware)
Re: SX170 porting
« Reply #240 on: 22 / February / 2015, 14:54:13 »
Advertisements
Oh, I see. For most (or all) CHDK overrides, the Canon code doesn't take the overridden values into account. So, you won't be able to trigger DFS in P mode this way. Use M or Tv mode and set the exposure time with Canon controls.

If that still isn't enough, the attached test build saves the nrflag's original value before the shot.

This test build doesn't touch the nrflag when set to AUTO.

Please repeat the video test with the attached test build to check whether the detection of an ongoing video recording is working now.

Here we go again... Using these parameters:

  Mode = Tv
  Tv = Set using Canon controls, tested at 1/5" and 2"

I got these results:

  ON = works fine
  OFF = works fine
  AUTO = if previous ON: works, if previous OFF: doesn't work

Tested with script to report nrflag state:

  (at boot, DFS was set to AUTO)

  DFS setting = OFF
  Tv = 1/5"
  nrflag = 0
  DFS took place = No

  DFS setting = OFF
  Tv = 2"
  nrflag = 1
  DFS took place = No

  DFS setting = ON
  Tv = 1/5"
  nrflag = 1
  DFS took place = Yes

  DFS setting = ON
  Tv = 2"
  nrflag = 2
  DFS took place = Yes

  DFS setting = AUTO (previous = ON)
  Tv = 1/5"
  nrflag = 2
  DFS took place = Yes

  DFS setting = AUTO (previous = ON)
  Tv = 2"
  nrflag = 2
  DFS took place = Yes

  DFS setting = AUTO (previous = OFF)
  Tv = 1/5"
  nrflag = 1
  DFS took place = No

  DFS setting = AUTO (previous = OFF)
  Tv = 2"
  nrflag = 1
  DFS took place = No

Video test log attached.

*

Offline srsa_4c

  • ******
  • 4451
Re: SX170 porting
« Reply #241 on: 22 / February / 2015, 16:16:35 »
Here we go again... Using these parameters:

  Mode = Tv
  Tv = Set using Canon controls, tested at 1/5" and 2"

I got these results:
Thanks. I guess I wasn't expressing myself clear enough. Fortunately, this:
  (at boot, DFS was set to AUTO)

  DFS setting = OFF
  Tv = 1/5"
  nrflag = 0
  DFS took place = No
seems to confirm that the nrflag's default (auto) state is zero. That means, DFS control in the test3 build should be usable, including its AUTO setting. If you can confirm that, I'll be able to commit the changes.

*

Offline TMHKR

  • **
  • 77
  • Canon PowerShot SX170 IS (1.01a firmware)
Re: SX170 porting
« Reply #242 on: 22 / February / 2015, 17:06:44 »
Fortunately, this seems to confirm that the nrflag's default (auto) state is zero. That means, DFS control in the test3 build should be usable, including its AUTO setting. If you can confirm that, I'll be able to commit the changes.

It works fine with Test 3 build, tested in Tv mode with 2" and 1/5" shutter speeds.

So, you say that AUTO setting simply must be used in Tv and M modes? I mean, it can't be made to work with CHDK Tv override in P mode? Seems limiting a bit, as it would be useless with shutter speeds over 15", which can only be set using CHDK Tv override. Hmm...

Oh, I see now - I can use CHDK Tv override in P mode, but can't use AUTO there - for example, bump the shutter to 30" and set DFS either ON or OFF.
« Last Edit: 22 / February / 2015, 18:12:00 by TMHKR »

*

Offline srsa_4c

  • ******
  • 4451
Re: SX170 porting
« Reply #243 on: 22 / February / 2015, 18:15:32 »
It works fine with Test 3 build, tested in Tv mode with 2" and 1/5" shutter speeds.
The previous revision of your post mentioned some problems, are those sorted now?

Quote
So, you say that AUTO setting simply must be used in Tv and M modes?
DFS set to 'AUTO' should do whatever the firmware would do without CHDK. The firmware's decision is triggered by the firmware's knowledge about shutter speed, and the firmware is not aware of the CHDK overrides. The maximum exposure time in P mode is (AFAIK) 1 second which means the firmware won't ever enable dark frame in that mode.
As mentioned previously, once you override one or more exposure parameters in CHDK, it becomes your responsibility to set them correctly.


*

Offline TMHKR

  • **
  • 77
  • Canon PowerShot SX170 IS (1.01a firmware)
Re: SX170 porting
« Reply #244 on: 22 / February / 2015, 18:22:08 »
The previous revision of your post mentioned some problems, are those sorted now?

Nah, ignore the mentioned problems... I was using Test 4 build ::)

Quote
...and the firmware is not aware of the CHDK overrides.

Good to know. I always thought that CHDK overrides are above ANYTHING else :)
And yes, max. exposure in P mode is exactly 1 second, as stated in SX170 user manual.

*

Offline srsa_4c

  • ******
  • 4451
Re: SX170 porting
« Reply #245 on: 23 / February / 2015, 18:46:36 »
I have checked in the dark frame and video status related fixes, trunk only at the moment.
Are the other recent sx170 fixes in trunk working correctly (jogdial, filewritetask)? If yes, those should go in the 1.3 branch too.

*

Offline TMHKR

  • **
  • 77
  • Canon PowerShot SX170 IS (1.01a firmware)
Re: SX170 porting
« Reply #246 on: 24 / February / 2015, 05:35:05 »
I have checked in the dark frame and video status related fixes, trunk only at the moment.
Are the other recent sx170 fixes in trunk working correctly (jogdial, filewritetask)? If yes, those should go in the 1.3 branch too.

DFS TEST

Mode = Tv (other modes not tested)
Formats = JPEG, DNG

  Results:

    DFS = ON
    2" Tv = DFS works (OK)
    1/5" Tv = DFS works (OK)

    DFS = OFF
    2" Tv = DFS doesn't work (OK)
    1/5" Tv = DFS doesn't work (OK)

    DFS = AUTO
    2" Tv = DFS works (OK)
    1/5" Tv = DFS doesn't work (OK)
    20" Tv (using CHDK) = DFS works (OK)

JOGDIAL TEST

Up = OK
Down = OK

FILEWRITETASK TEST

DNG files = OK (opened in Photoshop CS6, Camera Raw 7.0)
File numbering = OK

Next up, video features. Since SX170 natively supports optical zoom in video, the first option in CHDK Video Parameters menu is unneccessary. The optical zoom in video works at reduced speed, to minimize the zoom motor noise. I believe that "perform single autofocus scan on half-press" option would be more useful.

*

Offline nafraf

  • *****
  • 1308
Re: SX170 porting
« Reply #247 on: 24 / February / 2015, 21:22:17 »
Next up, video features. Since SX170 natively supports optical zoom in video, the first option in CHDK Video Parameters menu is unneccessary. The optical zoom in video works at reduced speed, to minimize the zoom motor noise. I believe that "perform single autofocus scan on half-press" option would be more useful.
Optical zoom option removed from menu.
Please test video quality override:
CHDK menu -> Video Parameters ->
Video Mode [Quality]
Video Quality [1] (the worst case)




*

Offline TMHKR

  • **
  • 77
  • Canon PowerShot SX170 IS (1.01a firmware)
Re: SX170 porting
« Reply #248 on: 25 / February / 2015, 06:46:27 »
Optical zoom option removed from menu.
Please test video quality override:
CHDK menu -> Video Parameters ->
Video Mode [Quality]
Video Quality [1] (the worst case)

Test results:

  CHDK video quality = 1
  Video length = 33 seconds
  Resolution = 720p
  Format = MOV
  File size = 82.1 MB
  Optical zoom = tested, works fine

Detailed file info:

  Video: MPEG4 (H.264), 25 fps, 19618 kbps
  Audio: PCM 48000 Hz, stereo, 1536 kbps

If you need further testing at different parameters (or with different CHDK builds), feel free to say.

*

Offline nafraf

  • *****
  • 1308
Re: SX170 porting
« Reply #249 on: 25 / February / 2015, 07:44:09 »
Here is a VGA video: http://www.filedropper.com/mvi0075, quality=1. See that quality was degraded.
Apparently, quality control works for VGA resolution, but it is ignored in case of 1280x720 resolution.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal