Need help w/continuous video script for S95 - page 7 - Script Writing - CHDK Forum  

Need help w/continuous video script for S95

  • 69 Replies
  • 11821 Views
*

Offline philmoz

  • *****
  • 3146
    • Photos
Re: Need help w/continuous video script for S95
« Reply #60 on: 04 / March / 2016, 15:41:34 »
Advertisements
Can an OSX user please run the attached script on a (FAT/FAT32) card that has one or more of those hidden special files in one or more of the following folders:
/ (card root)
DCIM
CHDK/LANG
CHDK/HELP
CHDK/SCRIPTS


5 predefined folders can be chosen, the script will attempt to dump the directory into a binary file in the card root: ASLASH.BIN, LANG.BIN, HELP.BIN, DCIM.BIN, SCRIPTS.BIN.
Please upload those files (zipped, for example).

I'd like to see how OSX creates directory entries.

The script needs miscellaneous stuff -> enable lua native calls .

Sorry for the off-topic (2 Mac users here recently, perhaps they will notice), my plan is to make those files invisible in the CHDK file selector.


The extra files and folders created by OS X are marked with the DOS_ATTR_HIDDEN attribute in the filesystem.


The attached patch adds a menu option and code to the file browser to show/hide 'hidden' files on the SD card. They are shown by default (current functionality).
This should also hide the Windows recycle bin and system folders that can sometimes get created on the cards.


If there are no issues with this, I will added it to 1.5 later.


Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)

*

Offline srsa_4c

  • ******
  • 4148
Re: Need help w/continuous video script for S95
« Reply #61 on: 04 / March / 2016, 17:33:56 »
The attached patch adds a menu option and code to the file browser to show/hide 'hidden' files on the SD card.
Thanks, it does appear to work.
Quote
They are shown by default (current functionality).
I would argue to go for the opposite default. I don't think a lot of people hide files on a card purposefully, but I bet a lot more people are likely to have problems with those special MacOS files.

*

Offline J_ph3

  • *
  • 28
Re: Need help w/continuous video script for S95
« Reply #62 on: 04 / March / 2016, 20:01:42 »
Hi WaterWingz and Zeno -

I viewed the files on the card and there were hidden files for each of the 2 scripts that I loaded. I even used a lua editor for the mac and saved the files directly to the Scripts folder but the hidden files were still created.

Even though I was loading the visible files, the invisible files somehow load or defeat the scripts. As soon as I deleted the hidden files everything was OK.

thanks for the help!

j

Re: Need help w/continuous video script for S95
« Reply #63 on: 04 / March / 2016, 20:30:48 »
Even though I was loading the visible files, the invisible files somehow load or defeat the scripts. As soon as I deleted the hidden files everything was OK
The fix philmoz posted above should fix that in the development version of CHDK (1.5.0). 

It would be nice to also have it added to the stable version (1.4.1) on the basis that it's a bug fix rather than new feature.
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline philmoz

  • *****
  • 3146
    • Photos
Re: Need help w/continuous video script for S95
« Reply #64 on: 04 / March / 2016, 20:38:17 »
Even though I was loading the visible files, the invisible files somehow load or defeat the scripts. As soon as I deleted the hidden files everything was OK
The fix philmoz posted above should fix that in the development version of CHDK (1.5.0). 

It would be nice to also have it added to the stable version (1.4.1) on the basis that it's a bug fix rather than new feature.


The patch I posted only changes what is displayed in the file browser - it will prevent selection of a hidden file (if hidden files aren't shown).


The post from j_ph3 implies that the existence of the hidden files on the SD card somehow breaks the script processor - I cannot reproduce this on my cameras.


I don't have a problem putting this in 1.4; but it's a feature change not a big fix.


Phil.

CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)

*

Offline J_ph3

  • *
  • 28
Re: Need help w/continuous video script for S95
« Reply #65 on: 04 / March / 2016, 20:56:50 »
Is this a new behavior of the El Capitan OS? Last time I used CHDK and the continuous video script I formatted the card on this same computer with Mountain Lion 10.8 without any problems (except for a couple of my own errors).


thanks


j

*

Offline J_ph3

  • *
  • 28
Re: Need help w/continuous video script for S95
« Reply #66 on: 05 / March / 2016, 09:14:52 »
Quote
The post from j_ph3 implies that the existence of the hidden files on the SD card somehow breaks the script processor - I cannot reproduce this on my cameras.



I have had very inconsistent results which is likely due to my inexperience with CHDK. If you aren't seeing problems with other cameras and nobody else is seeing issues, don't spend time chasing this red herring. I appreciate all the help, CHDK and the video scripts.


thanks,


j

*

Offline J_ph3

  • *
  • 28
Re: Need help w/continuous video script for S95
« Reply #67 on: 05 / March / 2016, 16:52:20 »
The one aspect of the #2 MultiMovie script is the flashing LED light when the display is turned off. The real benefit of the #3 Extended Video R2 script is the ability to refocus and zoom while recording.


Is there anyway to combine the flashing LED feature of a .BAS script with a .LUA script?


thank you,


j


Re: Need help w/continuous video script for S95
« Reply #68 on: 05 / March / 2016, 17:44:14 »
Is there anyway to combine the flashing LED feature of a .BAS script with a .LUA script?
Try the attached.  It has a new script menu parameter that lets you pick which LED blinks.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline J_ph3

  • *
  • 28
Re: Need help w/continuous video script for S95
« Reply #69 on: 05 / March / 2016, 19:58:58 »
WaterWingZ !!!


My old s95 shoots 1.5hr of continuous video and probably more if I get a new battery. And, now with the display off the LED above the print button blinks to confirm recording. Darn cool.


Works perfect, many thanks!


j
« Last Edit: 05 / March / 2016, 20:06:13 by J_ph3 »

 

Related Topics