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

Need help w/continuous video script for S95

  • 69 Replies
  • 24148 Views
*

Offline J_ph3

  • *
  • 28
Re: Need help w/continuous video script for S95
« Reply #50 on: 02 / March / 2016, 22:39:10 »
Advertisements
Hi WaterWingz


I agree with you that I am probably doing something wrong.

The scripts that I tried are on this page - http://chdk.wikia.com/wiki/Continuous_Video_Scripts


Are there any other scripts that I should be using? The only feature that I need is continuous video.

I had used the LUA script a couple years ago, but forgot the specifics. Are all of the settings already embedded in the scripts and should work "as-is"?



I will try again tomorrow and do a better job of reporting the details.


thanks for the help!


j



*

Offline J_ph3

  • *
  • 28
Re: Need help w/continuous video script for S95
« Reply #51 on: 03 / March / 2016, 19:45:18 »
Hi WaterWingz


I used Stick to create a new card, loaded the MultiMovie 2 .bas script ( script 2 on this page - http://chdk.wikia.com/wiki/Continuous_Video_Scripts )


Works!  I must have rushed through it. Yesterday I did add partition names, but tonight it just defaulted to BOOT and PHOTOS with the new card. Or, it could have been any number things that I may have done.  :haha


Is there a size limit to the SD card when using CHDK?


thanks for prompting me to try again.


regards


j

*

Offline J_ph3

  • *
  • 28
Re: Need help w/continuous video script for S95
« Reply #52 on: 03 / March / 2016, 22:04:03 »
Oh well, MultiMovie 2 bas script worked, but script 3 kicks out an error. Below is the screen and attached is the lua script that was installed/loaded and didn't work.





Re: Need help w/continuous video script for S95
« Reply #53 on: 03 / March / 2016, 22:39:55 »
Oh well, MultiMovie 2 bas script worked, but script 3 kicks out an error. Below is the screen and attached is the lua script that was installed/loaded and didn't work.
The script you attached loads and runs on a couple of my cameras.

The error message in your screen shot is curious.  It appear that you have saved the file with the name ._video3b.lua rather than video3b.lua  (note the extra characters at the start of the script name).  Is this a possible problem?

Edit : is this maybe an iMac type Apple issues where the script file is not being saved as a plain 8 bit text file on the SD card?
« Last Edit: 03 / March / 2016, 22:48:50 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline J_ph3

  • *
  • 28
Re: Need help w/continuous video script for S95
« Reply #54 on: 03 / March / 2016, 22:55:34 »
I noticed the additional characters in the error too. But the file name looked correct on screen.  I'll investigate it a little more tomorrow and see if something did occur on my mac. It may have something to do with the lua extension since the .bas file was saved in the same manner.

Thanks again

J

Re: Need help w/continuous video script for S95
« Reply #55 on: 03 / March / 2016, 23:08:12 »
I noticed the additional characters in the error too. But the file name looked correct on screen.  I'll investigate it a little more tomorrow and see if something did occur on my mac. It may have something to do with the lua extension since the .bas file was saved in the same manner.
Not owning any Apple products,  I can't help much here.  But you will notice that the file name in the lower left hand corner of the screen (displayed when you first load the file) also has the additional character.  I suspect that the plain text file in your attachment is being stored as something different on the SD card by whatever file manager software your Mac uses.  This can't be a unique problem so I will wait for a Mac owner to comment here.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline zeno

  • *****
  • 891
Re: Need help w/continuous video script for S95
« Reply #56 on: 04 / March / 2016, 05:19:58 »
Mac OSX creates hidden files whose names start with '.' for each 'real' file - they are used by the Mac's spotlight search system for example. The OS in the camera (and Windows) shows these files in directory listings and it's therefore easy to select one instead of the script it matches.
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

*

Offline J_ph3

  • *
  • 28
Re: Need help w/continuous video script for S95
« Reply #57 on: 04 / March / 2016, 07:07:05 »

>Mac OSX creates hidden files whose names start with '.' for each 'real' file


Unfortunately the file doesn't begin with "." or at least it doesn't appear that way. The file that I included in the previous post is the one that was dragged to the Scripts folder, in the same manner as the .Bas file. When loading/selecting the script within the camera menu it also shows without the "." It does appear to be saved correctly as 8-bit using Text Wrangler   I'll try later with another computer to create the script.



thanks,

« Last Edit: 04 / March / 2016, 07:34:38 by J_ph3 »


Need help w/continuous video script for S95
« Reply #58 on: 04 / March / 2016, 07:57:47 »
I think what zeno is saying is that there will be two files in the SD card script directory - the original script and a hidden file with the same name plus two extra characters at the start.  You will only see the original script from the PC.  However the CHDK file browser will let you see and select either so you need to make sure that you pick the correct one when selecting the file to load and run from the CHDK script menu.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4451
Re: Need help w/continuous video script for S95
« Reply #59 on: 04 / March / 2016, 13:47:18 »
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.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal