Switch recording modes, e.g. Av, Tv, Video ?

  • 1 Replies
  • 117 Views
Switch recording modes, e.g. Av, Tv, Video ?
« on: 20 / August / 2018, 06:30:52 »
Advertisements
I saw on this page (http://chdk.wikia.com/wiki/PTP_Extension) that it was possible to change the recording mode using the PTP extension.
I went to the page "CHDK Scripting Cross Reference Page" to find a script to be able to set the mode of my camera but can't find it.
Where can I find this script or what function should I use ?
Thanks

*

Offline reyalp

  • ******
  • 11496
Re: Switch recording modes, e.g. Av, Tv, Video ?
« Reply #1 on: 20 / August / 2018, 17:38:24 »
I saw on this page (http://chdk.wikia.com/wiki/PTP_Extension) that it was possible to change the recording mode using the PTP extension.
I went to the page "CHDK Scripting Cross Reference Page" to find a script to be able to set the mode of my camera but can't find it.
Where can I find this script or what function should I use ?
Thanks
I'd suggest using the capmode module: https://chdk.wikia.com/wiki/Lua/Scripts:Standard/Lualib/Capmode

From chdkptp prompt, to set the mode to Tv, you could use
Code: [Select]
=require'capmode'.set('TV')

The relevant function in the scripting reference is set_capture_mode: https://chdk.wikia.com/wiki/Script_commands#set_capture_mode.28modenum.29
Don't forget what the H stands for.

 

Related Topics