среда, 5 ноября 2014 г.

Полноценный HDR с GOPRO

==============================
Как починить загрузку autoexec.ash
Download a update from gopro.com, put it in your SD card, go here: https://gist.github.com/KonradIT/680c85fa74e5a88b6ce8

And click the "download gist" button, save the tcp_tuner in the MISC folder in the SD card, turn on gopro and wait until it updates. Autoexec.ash support again!
==============================

Полноценный HDR с GOPRO


Совсем коротко:
Если поместить файл autoexec.ash (текстовый файл) в корень SD карты (с помощью кард-ридера), то при включении gopro будут выполнятся команды из этого файла.
Что внутри файла? после включения, выставляется WB (white balance),  делает 5 фото с разными экспозициями и перегружается, дальше все повторяется заново.

Файлы autoexec.ash для разных ситуаций:
- для заката/рассвета. WB 3000 k, ISO 100, 5 фото
- для дневного света. WB 5500 k,  ISO 100, 5 фото
- WB - auto. ISO 100, 5 фото

Подробно:
- все файла тут проверены только на Gopro hero3 black (не +). На Hero4 silver вообще пока не понятно как запускать autoexec.ash.
- все значения экспозиции фиксированные. сделать от центрального значения +/- EV не получается пока.
- заблокировать WB. что бы не было морганий WB при граничных условиях.
- трипод обязателен, т. к. фото сделанные широким углом почти невозможно потом совместить для HDR.
 - значения выдержек для gopro отсюда: http://chernowii.com/gopro-longexp но я думаю там ошибка. у меня получились другие значения (см далее...)
Значение=IRISВремя в секундах
28,5
57,7
157,3
207,1
256,9
306,8
396,4
406,3
456,2
506,1
755,3
855
954,7
994,6
1004,6
1303,9
1603,3
2002,7
2552
4001
5000,56


для ISO 100 проверенно лично:
2000 0,00015833
1800 0,00046773
1600 0,00138122
1400 0,00407997
1200 0,01206270
1000 0,03558720
800 0,10526300
600 0,31250000

Исходные фото:



Результат (собранно в sns-hdr с default настройками)



Возможные сложности и проблемы
Важно иметь в виду о файле autoexec.ash
1) Концы строк должны быть в UNIX формате (LF (0x0A), а не CRLF (0x0D,0x0A). Вот тут http://cam-do.com/SOBM/ есть онлайн проверялка файлов, должно быть CR characters: 0.
2) Если не запускается autoexec.ash, то добавляем в начале файла:
===
rm a:\autoexec.ash
cd d:\
===
это скопирует autoexec.ash во внутреннюю память gopro и он будет запускаться если даже отформатировать SD карту. Что бы удалить его:
===
nvd erase_entire pref
rm a:\autoexec.ash
reboot yes 
===
3) Проблема с SDкой. Не использовать Sandisk Untra. Надо sandisk extreme.
4) Перестает запускаться autoexec.ash из за подключения USB. В моем случае перестал запускаться как подключил внешнее питания на USB (для съемки долгого тамлапса)
решение:

  • SanDisk Extreme 32GB microSDHC (SDSDQXL-032G)
  • SanDisk Extreme 64GB microSDXC (SDSDQXL-064G)
  • Lexar 32GB SDHC 600x (LSDMI32GBSBNA600R)
  • Lexar 64GB SDXC 600x (LSDMI64GBSBNA600R)
  • Delkin 32GB SDHC (DDMICROSDPRO2-32GB)
  • Delkin 64GB SDXC (DDMICROSDPRO264GB)

Дополнительная инфа:
Что такое HDR:
https://ru.wikipedia.org/wiki/High_Dynamic_Range_Imaging
http://chernowii.com/ - множество разных "хаков" для gopro.
список некоторых комманд autoexec.ash: http://chernowii.com/hack/hero3bpbps

еще примеры результатов:
https://plus.google.com/u/0/photos/114244149762046134957/albums/6077823704305647073

мой youtube канал:
http://www.youtube.com/channel/UCLvIVT38WYy95XmgAJWFe6g


понедельник, 3 ноября 2014 г.

Gopro hero3 black autoexec.ash commands

Gopro hero3 black autoexec.ash commands
t ia2 -ae still_shutter [shutter_idx] : set still_shutter  
t ia2 -ae still_iris [iris_idx] : set still_iris   
t ia2 -ae flash_psg : set preflash_strength_gain, unit : 1024  
t ia2 -ae flash_fbc : set flash_base_calibration, unit : 1024  
t ia2 -ae pm [mode] [strange] : set P mode
t ia2 -ae [on|off] : turn on/off AE
t ia2 [OPTION] VALUE...
Supported options:
-3a: AAA function
-fpn: FPN function
-vnc: Vignette function
-exp: exposure module
-dzoom: digital zoom control
-warp: warp control
-rsc: rsc control
-frc: frame rate change
-fisheye: fisheye effect
-eis: DIS/EIS control
-sof: SOF function
-ae: AE function
-awb: AWB function
-adj: ADJ function
-af: AF control
-lens: lens control
-ssh: slow shutter test
-readout: Sensor phase correction
-ca: ca control
-hdr: hdr control

t ia2 -ae set[agc][dgain][shutter][iris][mode] : set exposure value                                                  mode 0 : video, mode 1 : still   
t ia2 -ae still_exp [iso][shutter_idx][iris_idx] : set still exposure
t ia2 -ae still_exp 100 1000 1000
open tone_curve file =%s error  ёґ]А [in_filename] : input histogram file name.
    [out_curve_enable] : 1--> output results tone curve.
 µ]А
t ia2 -hdr tone_curve num_level [levels]
   [levels]  : number of tone curve levels(1~8)
 show    
t ia2 -hdr [cmd][value] :
mixer        : set hdr mixer information
  le_A         : local_exp curve maganitude
 le_B         : local_exp curve width(0:wide 1:middle 2:narrow)
shadow      : shadow threshold for hdr calculation
   tone_curve   : tone curve off-line calculation
show         : print debug message

t ia2 -hdr tone_curve cal [in_filename] [out_curve_enable] [out_filename]
  [out_filename]: when out_curve_enable ==1, the filename for output filename

protune photo
t ia2 -3a 1 0 1 1
remove noise reduction
t ia2 -3a 0
superview
t ia2 -warp 1
remove fisheye
t ia2 -fisheye 1 65536 65536 65536 65536 100
t ia2 -warp 0
text output
sleep 3
t app fp_show 4
sleep 2
t app fp_string 'Hello WOrld'
Move to internals of gopro
cd d:\
cp autoexec.ash a:\autoexec.ash
hdr photo
t app appmode photo
sleep 1
t ia2 -3a 0 1 0 1
t app button shutter PR
t ia2 -3a 1 0 1 0
t app button shutter PR
t ia2 -3a 0
t app button shutter PR
leds
t app led red_front on
t app led red_front off
t app led red_top_bottom on
t app led red_top_bottom off
t app led red_back on
t app led red_back off
ND lens?
t ia2 -lens nd enable
White balance:
•6500k: Cool white fluorescent skylight lighting.  This setting is great for indoors and settings with a lot of white light.
•5500k: Daylight or sunlit shooting.  This setting is great for daylight while shooting outside.
•3000k: Incandescent or sunrise/sunset lighting.  This setting is great for lower-light situations, where you want the camera to pick up detail without the help of a lot of surrounding light.


t app protune on
t app white_balance 3000
t app white_balance 5500
t app white_balance 6500
t app white_balance auto
protune photo
sleep 1
t ia2 -3a 1 0 1 1
square hd videp 22 fps
t app video_settings 3040x3040 22 170
telnet.
Step 1: Unzip the file gopro-browser-card.zip into the root of SD Card.
Step 2 : unmounted SD card from Windows Tray
Step 3 : Removed USB Cable and the Camera switched off automatically.
Step 4 : Start the wifi bacpac by pressing the side wifi button. Blue LED starts to glow.
Step 5 : Press the mode/Start button and the display comes up.
Step 6 : Move to GoPro App Mode.
Step 7 : Connect the PC/Laptop with the GoProWhite(i.e the SSID I had given while firmware upgrade.)
Step 8 : Enable telnet client on Windows 7 and give the below command :
Microsoft Telnet> o 10.5.5.9 8080
Connecting To 10.5.5.9...
Step 9 : It gets struck here infinitely.
lu_util exec 'telnetd -l /bin/sh -p 80'


Need to know:

-3a  [ae][awb][af][adj]   :turn on/off ae/awb/af/adj
           ae  = [0|1], 0:on 1:off AE
           awb = [0|1], 0:on 1:off AWB
           af  = [0|1], 0:on 1:off AF
           adj = [0|1], 0:on 1:off ADJ
           exif = [0|1], 1:on 0:off Dump 3A info to EXIF
t ia2 -3a 1 1 0 1
t ia2 -ca enable
t ia2 -adj ae
t ia2 -ae on
t ia2 -exp set [mode][agc][shutter][iris][dgain] : Set specified parameter
mode = [0|1], 0:VIDEO, 1:Video_init
t ia2 -exp debug [en] : Enable/Disable exposure module debug message
en = [0|1], 0:disable, 1:enable
t ia2 -exp lock [en] : Enable/Disable exposure module lock
en = [0|1], 0:disable, 1:enable
t ia2 -exp info : Print exposure parameters

t ia2 -exp set 0 0 200 3 0

t ia2 -ae set 0 0 200 3 0
t cal [OPTION] VALUE...
Supported options:
-3a: AAA control
-sc: Scene mode control
-de: Digital effect control
-ae: AE info
-me: Manual exposure
-raw: raw capture
-rawenc: raw encode with manual main window width/heigh
-ituner: ituner tool
-mgr: Calibration manager CLI tool
-fpn: FPN tool
-vnc: Vignette tool
-warp: WARP tool
-ca: CA tool

t ia2 -fisheye [en]: enable fisheye effect
                   en             : 1: enable. 0: disable

Usage: t ia2 -fisheye [en] [dum_left] [dum_right] [dum_top] [dum_bottom] [dzoom_step]: enable fisheye effect
                   en             : 1: enable. 0: disable
                   dum_left       : 0 ~ 65536
                   dum_right      : 0 ~ 65536
                   dum_top        : 0 ~ 65536
                   dum_bottom     : 0 ~ 65536
                   dzoom_step     : 0 ~ 484

   
a:\> drives
4 drives present in system
drive 'A' - NFTL Media
drive 'D' - SD/MMC
drive 'F' - RAMDISK
drive 'Z' - ROMFS