how to set dng on sx20 is 1.00F - RAW Shooting and Processing - CHDK Forum

how to set dng on sx20 is 1.00F

  • 6 Replies
  • 4160 Views
how to set dng on sx20 is 1.00F
« on: 16 / June / 2010, 22:08:12 »
Advertisements
my camer
version is 1.00F ,
Firmware Ver: GM1.00F
NoError
Jun 15 2009 15:28:22

and I down DISKBOOT.BIN from http://chdk.neszt.hu/bin/

when I want to save bin, there are error"press SET to save file,or other key to exit 38;attempt to index global "os" (a nil value) press shutter to close?"
thanx

Re: how to set dng on sx20 is 1.00F
« Reply #1 on: 23 / September / 2010, 06:47:57 »
I am trying the same thing,
any luck with the dng so far?
thanks

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: how to set dng on sx20 is 1.00F
« Reply #2 on: 23 / September / 2010, 09:16:20 »
It seems os function remove was not found for sx20 1.00f.

Is there a file "bad_tmp.bin" in A/CHDK after running the script? When yes then rename the file, "bad_tmp.bin" -> "badpixel.bin".

Another try: delete or out comment (--) the lines 38 and 42 of the script with a text editor.

msl
CHDK-DE:  CHDK-DE links

Re: how to set dng on sx20 is 1.00F
« Reply #3 on: 23 / September / 2010, 18:24:41 »
After about a week of trying finally it is over.
commenting out the lines 38 and 42 of badscript.lua fixed my problem.
Vielen Dank msl.


*

Offline Blindpain

  • *
  • 4
  • Canon Sx20 is (1.0.0.F)
Re: how to set dng on sx20 is 1.00F
« Reply #4 on: 10 / October / 2010, 22:24:16 »
sorry for disturb i have the same problem... and i don't know how to count the lines... wich think should i delet?


--[[
@title Create badpixel.bin
]]
 
function get_bad_count()
 a=get_raw()
 set_raw(255)
 set_tv96_direct(96)
 shoot()
 b=get_raw()
 set_raw(a)
 return b
end

repeat
  if get_mode() == false then
    cls()
    print("Run in Record mode!")
    sleep(3000)
    cls()
    exit_alt()
    sleep(1000)
  end
until get_mode() == true
cls()
print("Wait please... ")
print("This takes a few seconds!")
print("Don't panic!!")
sleep(3000)
x1=get_bad_count()
x2=get_bad_count()
if (x1==x2) then
 print("Bad pixel count: ", x1)
 print("press SET to save file,")
 print("or other key to exit")
 wait_click(0)
 if is_pressed "set" then
  os.remove("A/CHDK/badpixel.bin")
  os.rename("A/CHDK/bad_tmp.bin", "A/CHDK/badpixel.bin")
  print("File is saved.");
 end
 os.remove("A/CHDK/bad_tmp.bin")
else
 print("Try this script again...")
end

*

Offline SkyWalker9

  • ****
  • 301
  • SX20 IS (fw 1.02b)
Re: how to set dng on sx20 is 1.00F
« Reply #5 on: 10 / October / 2010, 23:45:15 »
sorry for disturb i have the same problem... and i don't know how to count the lines... wich think should i delet?
Code: [Select]
--[[
@title Create badpixel.bin
]]
 
function get_bad_count()
 a=get_raw()
 set_raw(255)
 set_tv96_direct(96)
 shoot()
 b=get_raw()
 set_raw(a)
 return b
end

repeat
  if get_mode() == false then
    cls()
    print("Run in Record mode!")
    sleep(3000)
    cls()
    exit_alt()
    sleep(1000)
  end
until get_mode() == true
cls()
print("Wait please... ")
print("This takes a few seconds!")
print("Don't panic!!")
sleep(3000)
x1=get_bad_count()
x2=get_bad_count()
if (x1==x2) then
 print("Bad pixel count: ", x1)
 print("press SET to save file,")
 print("or other key to exit")
 wait_click(0)
 if is_pressed "set" then
  os.remove("A/CHDK/badpixel.bin")
  os.rename("A/CHDK/bad_tmp.bin", "A/CHDK/badpixel.bin")
  print("File is saved.");
 end
 os.remove("A/CHDK/bad_tmp.bin")
else
 print("Try this script again...")
end
Delete the "os.remove" command lines
« Last Edit: 10 / October / 2010, 23:47:03 by SkyWalker9 »

*

Offline Blindpain

  • *
  • 4
  • Canon Sx20 is (1.0.0.F)
Re: how to set dng on sx20 is 1.00F
« Reply #6 on: 14 / October / 2010, 14:44:40 »
Thnx, i do it, but now i get error in line 39  :(
i don't remember what the text said.

when i return home i will copy the error

EDIT:
DNG doesn't like me  :'(
:39: ambigous syntas (funtion cll x new statemeb near '('
« Last Edit: 14 / October / 2010, 19:59:04 by Blindpain »

 

Related Topics


SimplePortal © 2008-2014, SimplePortal