supplierdeeply

Yet Another Sunset Script (yass) v2

  • 63 Replies
  • 15304 Views
  • Publish
    Yet Another Sunset Script (yass) v2
    « on: 17 / March / 2010, 22:52:19 »
    Advertisements
    Yet Another Sunset Script (yass) v2

    Script to shoot time-lapse videos of sunsets, or anything else.

    There are many Sunset scripts available and this is yet another.
    I did not write the original code! YASS is based on sunset4.bas.

    Goal of YASS: Need for speed! MUST GO FAST! Make it simple to use.


    ++++++++++++++++
    How to use
    ++++++++++++++++

    NOTE: I added most of the below options to work with my SD 1100 IS (IXUS 80 IS).
    Your camera may or may not be fully compatible.
    Please post your cam model, yass version number and results in the CHDK forum for others to see.
    Thanks.

    **

    SET YOUR ND FILTER!!!
    SET YOUR ND FILTER!!!
    SET YOUR ND FILTER!!!

    Unfortunately, the script commands for settings the ND filter are not quite working
       the proper way.
    IF you plan on just capturing a sunset, set the ND filter to IN
    If you plan to capture night sky and stars, set ND filter to OUT
    If you set ND filter to OFF, it will run on auto and will randomly cut in or out.
    If you are not sure how to set the ND filter, see the CHDK help or forum.


    ****
    YASS02 Settings
    ****


    Delay each photo(sec)
    Default = 0 seconds

    This is the minimum delay between each photo. On my cam, the script run time is about 1.5 seconds.
    With the 0 second default, I can get 30+ shots each min. More photos = smoother the video.


    **


    Limit Tv
    Default = -320

    Shutter Speed.
    On my cam, 5 or 10 sec is all I need to capture an awesome night sky with stars.
    Use Tv-settings.txt as a reference to get the exact Tv setting you need.


    **

    Default Sv
    Default = 480 (ISO 160)

    First photo ISO setting.
    ISO (Sv 480 = ISO 160) (Sv 776 = ISO 1250) (Sv 960 = ISO 5000)
    In a future version I would like to replace "Sv" with "ISO" and have the script do the math for
    you.


    **


    Limit Sv
    Default = 500 (ISO 200)

    Maximum photo ISO setting.
    ISO (Sv 480 = ISO 160) (Sv 776 = ISO 1250, Sv 960 = ISO 5000)
    If the ISO is too high, the photos will look grainy or pixilated.
    I suggest ISO 200 (500), but you can decide for yourself.
    In a future version I would like to replace "Sv" with "ISO" and have the script do the math for
    you.


    **


    Guess mode limit
    Default = 0

    Sudden exposure change.
    If the photo had a sudden change in brightness or darkness,
       then the exposure (Tv) will attempt to compensate. To prevent overcompensation,
       the guess mode limit marks a stopping point.
    The default setting (0 tv) will cause to script to not sudden jump past 1 second exposure.
    If you want to allow the exposure correction to jump higher or lower,
       use the Tv-settings.txt as a reference.
    To disable the guess mode limit and allow the script to attempt to jump what it thinks is
       a reasonable limit on its own, change to -576 (maximum setting)


    **


    Slope in guess mode
    Default = 8

    Increment of adjustment for auto exposure (+-Tv).  Also known as exposure smoothing.
    If the script sees the photo is too bright, it will reduce the exposure (tv) by this number.
    If the script sees the photo is too dark, it will increase the exposure (tv) by this number.
    Major exposure points are in increments of 32,
       so it will take 4 increments (32/8 = 4) to reach the next major point. See Tv-settings.txt
       as a reference.
    Lower number makes exposure changes smoother but takes longer to equalize. Lower numbers
       are good if you have little or no delay between photos (first setting).
    Higher numbers make the exposure jumps larger (less smoothing).



    **


    0-4,6,8:L,M1,M2,M3,S,TS,W
    Default = 8

    Photo dimensions.
    0 = L
    1 = M1
    2 = M2
    3 = M3
    4 = S
    6 = TS
    8 = W
    Wide (w) is 16:9. If you want to render in HD, this setting will allow you to skip
       the cropping process.
    Since W auto crops to 16:9, the photo size is about 20% less. This means your memory
       card can save more photos. More photos gets you longer run times.


    **


    RAW 0=off 1=on
    Default = 0 (Off)

    Save images in uncompressed RAW format when on. RAW files are large and take lots of memory
       card space.
    Save images as compressed JPGs when off.


    **


    Free Disk MB Shut down
    Default = 15 MB

    Low disk space shut down.
    Before each photo check if the available space is less than this value.
    If your free disk is less than this number in MB, then the camera automatically shuts off.


    **


    Focus 0=norm 1=mac 3=inf
    Default = 3

    Focus setting.
    0=Normal 1=Macro 3=Infinity
    For Sky photos, the focus should be set to the farthest distance (Infinity).


    **


    Img Quality 0=SF 1=F 3=N
    Default = 2

    Image Quality 0=Super Fine, 1=Fine, 3=Normal
    If you have a small memory card, you may want to use Fine or Normal to fit more photos.
    A typical sunset can easily be over 1000 photos.
    I suggest starting with Normal (3) and see if the quality meets your standards once the
       full video is rendered.


    **


    *********
    Wish List
    *********

    There is 1 function I would still like to add:

    1) Photo preview time


    2) I would also like to add in the math function for Exposure and ISO.
    If anyone already has the math function, please PM me in the CHDK forum or on Youtube (Soulf2).


    *******
    Thanks
    *******

    I would like to thank the CHDK community and Fbonomi for the Sunset4.bas code that drives
       this version!!!

  • Publish
    Re: Yet Another Sunset Script (yass) v2
    « Reply #1 on: 17 / March / 2010, 22:55:24 »

  • Publish
    Re: Yet Another Sunset Script (yass) v2
    « Reply #2 on: 18 / March / 2010, 14:56:49 »
    Works great with my IXUS 100 IS!
    Great job! Thanks a lot!

  • Publish
    Re: Yet Another Sunset Script (yass) v2
    « Reply #3 on: 18 / March / 2010, 15:17:13 »
    Works great with my IXUS 100 IS!
    Great job! Thanks a lot!

    Thanks for testing!
    I am adding IXUS 100 IS / PowerShot SD780 IS Digital ELPH to the tested success list.

     :)


  • Publish
    Re: Yet Another Sunset Script (yass) v2
    « Reply #4 on: 20 / March / 2010, 09:49:36 »
    Quote
    SET YOUR ND FILTER!!!

    Unfortunately, the script commands for settings the ND filter are not quite working
       the proper way.

    I finally found out why the ND filter setting in the test code was not working. I also found a way to script control the ND filter for sunset to sunrise.  I personally plan to use a hacked wall clock to get a 180 degree sunset to sunrise all night pan.

    Looks like ND filter control with script automation will be in yass version 3. I will also try to complete a mirror of v3 with every line remarked/commented. This will greatly help others to customize for their taste without having to go into the pains of dissecting every line like I had to.   :)

    Until then, please enjoy yass v2 and keep sending me your comments, PMs, and rendered yass videos!

  • Publish
    Re: Yet Another Sunset Script (yass) v2
    « Reply #5 on: 10 / April / 2010, 07:36:15 »
    Really enjoying this script - I hope you don't mind but I've made a couple of personal changes that I thought I'd post back.

    The attached file uses get_tick_count to more acurately calculate the delay between shots (for example extended shot time does not extend the delay as it does in your script)

    I've also added the power saving extra of turning the backlight off during the delays between shots...

  • Publish
    Re: Yet Another Sunset Script (yass) v2
    « Reply #6 on: 21 / April / 2010, 15:04:04 »
    I hope you don't mind but I've made a couple of personal changes that I thought I'd post back.

    The attached file uses get_tick_count to more acurately calculate the delay between shots (for example extended shot time does not extend the delay as it does in your script)

    I've also added the power saving extra of turning the backlight off during the delays between shots...



    Very nice! I am nearly complete with v3 and will certainly add your code. Thanks for the contribution!

  • Publish
    Re: Yet Another Sunset Script (yass) v2
    « Reply #7 on: 28 / April / 2010, 19:06:50 »
    Is there a way to completely turn off the LCD backlight? I'm using the latest script but the backlight still blinks for a brief moment when it shoots. Can it permanently be shut off?


    *

    Offline fe50

    • ******
    • 3033
    • IXUS50 & 860, SX10 Star WARs-Star RAWs
      • fe50
  • Publish
    Re: Yet Another Sunset Script (yass) v2
    « Reply #8 on: 29 / April / 2010, 02:19:46 »
    Is there a way to completely turn off the LCD backlight? I'm using the latest script but the backlight still blinks for a brief moment when it shoots. Can it permanently be shut off?
    On cameras with a mechanical switch for playback/record mode: yes
    -->use the DISP button, either manually or emulated in the script

    On cameras with just a push button to switch between playback/record mode (almost all newer cameras without an optical viewfinder): no
    --> the display will be enabled after shooting or focusing by the Canon firmware, therefore you have to disable it again after each shot.

  • Publish
    Re: Yet Another Sunset Script (yass) v2
    « Reply #9 on: 29 / April / 2010, 14:45:41 »
    I have the sd780 which does have the mechanical switch. How do I emulate the DISP within the script?

    Thanks for the info!


    On cameras with a mechanical switch for playback/record mode: yes
    -->use the DISP button, either manually or emulated in the script

    On cameras with just a push button to switch between playback/record mode (almost all newer cameras without an optical viewfinder): no
    --> the display will be enabled after shooting or focusing by the Canon firmware, therefore you have to disable it again after each shot.

     

    Related Topics