вторник, 3 июня 2025 г.

Xiaomi Yi action cam custom scripts.

Welcome to my action camera discission forum >> GoPrawn.com

Hi there! I decided to put here all the info I got about hacking Xiaomi Yi cam using autoexec.ash script, telnet-access, customizing firmware and etc. Check my other posts concerning Xiaomi Yi RAW file processing and other nutty stuff.

So now let's talk about autoexec.ash script, I will call this script ASH for short hereinafter.

Xiaomi Yi ASH scripts divide into three groups:
  1. Autorun scripts. They aimed to run once or repeatedly in loop mode. Usage examples: HDR capture, 100% quality JPEG capture, RAW timelapse.
  2. Tuning scripts. Those modify some settings overriding cam defaults allowing it operate in normal modes with improved functionality. Usage examples: Super-HD video, Change video bitrate, Fixed ISO, EV correction, RAW+JPEG still capture, Exposure lock.
  3. System scripts. Linux and RTOS tweaks and undocumented features.
Scripts in general can't damage/brick your device until they don't run any file-system commands. Such commands normally are not needed but I will highlight them in script description if any occurs.

Autorun scripts:

HDR-EXPO-3 - HDR exposure bracketing script (0/-3/+3 EV). Captures 3 JPEG images with 0EV, -3EV and +3EV exposure, Noise Reduction is off, ISO fixed to 100, WB is off before shooting, some  corrections to add details. Beep when ready and before cam off.

HDR6 - HDR script v 2. Captures 6 JPEG images with various shutters, ISO fixed to 100, some Shadows/Highlights clipping correction, Gamma correction. Cricket beep before cam off.

HDR6N - HDR script NIGHT v 3. Captures 6 100% quality JPEG images in LOW_ISO mode with various long shutters, ISO fixed to 400, some Shadows/Highlights clipping correction, Gamma correction. Long beep before cam off. This script deletes all junk .bin .BIN .RAW .TXT .UV .Y files from your 100MEDIA folder. Those file are normally produced by the script and can be deleted.

AUTOREC - AUTO REC. Starts video recording after camera boot. Good for dashcam (Car DVR) use. If this script doesn't run in your cam try this one with boot delay increased to 10 sec.

RAWLAPSE - RAW LAPSE v 2. Timelapse loop capture RAW+JPEG images with 7.9 s exposure and  8 s interval ISO fixed to 100. Will capture until memory is full or battery is empty. To stop capture please turn off the camera. This script deletes all junk .bin .BIN .TXT .UV .Y files from your 100MEDIA folder. Those file are normally produced by the script and can be deleted.

Tuning scripts:

YIMAX-PRO - YiMAX-PRO for Z26 Yi cam with 1.5.6 firmware. This script removes 'watercolor' look and provides the real 'flat' picture for post-production. It sets 1296p30 mode with 40 Mbps ABR (+-25%) bitrate. 1080p60 version. You can find 1.5.6 FW updates for all hardware versions here.

YIMAX-PRO - YiMAX-PRO for Z22 Yi cam with 1.5.6 firmware. This script removes 'watercolor' look and provides the real 'flat' picture for post-production. It sets 1296p30 mode with 40 Mbps ABR (+-25%) bitrate. 1080p60 version. You can find 1.5.6 FW updates for all hardware versions here.

YIMAX-PRO - YiMAX-PRO for 1.2.13 firmware. This script removes 'watercolor' look and provides the real 'flat' picture for post-production. It sets 1296p30 mode with 40 Mbps ABR (+-25%) bitrate. Thanx HiddenPilot for his help. 1080p60 version.

YIMAX-MOVIE - YiMAX-movie for 1.2.0/1.2.6 firmware. Script for video recording mode (raw+jpeg capture supported in photo mode). Sets SuperHD (1296p30@30Mbps) mode. Loads config file to set up sharpness, noise reduction and other filters. Provides "flat" picture with more details in shadows and highlights, reduces "watercolor" effect. Disables aggressive sharpening. Here is 1080p30@30Mbps version of the script. 1080p60@35Mbps modification.


YIMAX-MOVIE - YiMAX-movie for 1.2.10 firmware. Script for video recording mode (raw+jpeg capture supported in photo mode). Sets SuperHD (1296p30@30Mbps) mode. Loads config file to set up sharpness, noise reduction and other filters. Provides "flat" picture with more details in shadows and highlights, reduces "watercolor" effect. Disables aggressive sharpening. Here is 1080p30@30Mbps version of the script. 1080p60@35Mbps modification.

YIMAX-MOVIE - YiMAX-movie for 1.2.13 firmware. Script for video recording mode (raw+jpeg capture supported in photo mode). Sets SuperHD (1296p30@30Mbps) mode. Provides "flat" picture with more details in shadows and highlights, noise reduction is off. 1080p60@35Mbps version1080p30@30Mbps version.

YIMAX - YiMAX. Adds colors and details in shadows and highlights. Reduces noise filter. Enables RAW+JPEG capture for stills and SuperHD (1296p30@30Mbps) mode for videos.

RAWWB - RAW WB. Disables AWB and improves details in highlights. Useful for videos. Use still RAW capture feature from YiMAX script to get unprocessed images. White Balance is set and locked each time you turn the camera on, so if you want to reset it for the new scene just reboot the camera.

WARP-ON - Warp-on script. Activates lens rectification (fisheye correction) function. Useful in cases when you want to enable this feature, but can't connect to your Yi using WiFi.

System scripts:

WIFI-STA - Wireless adapter (station) mode. Made by Andy_S. Connects to existing wifi network. Edit "wpa_supplicant.conf" file in "wifi" folder: change "YourNetworkName" to you actual wifi network name (SSID) and change "YourSuperSecretNetworkPassword" to your network pasword. Please note this script is aimed to work with networks secured with WPA2-PSK. Put files (autoexec.ash and wifi folder with its contents) to the root of microsd card. Turn on the camera and turn on wifi if it's not enabled to autostart wifi. Wait for the beep.

SDTEST - SD card test. Gets info for MicroSD card installed into Yi camera. Check 'cardinfo.txt' file in the root of the card after running.

How to install scripts. Copy autoexec.ash file from the downloaded .zip into root of your MicroSD card. Turn Yi cam on. To uninstall script just remove/rename autoexec.ash file on MicroSD.

USE SCRIPTS AT YOUR OWN RISK! 
THE SCRIPTS ARE PROVIDED "AS IS". ANY MODIFICATIONS OF THESE SCRIPTS CAN RESULT IN DATA LOSS AND DAMAGE YOUR CAMERA!

This post will be always up to date according to any new ASH hacks discovered. Stay tuned!

UPD 150606: YIMAX script updated to work with 1.1.0 firmware.
UPD 150608: YIMAX script updated to v2: shadow/highlight detail fix.
UPD 150608: HDR6N autorun script added.
UPD 150611: RAWWB tuning script added.
UPD 150614: YIMAX script updated to v3: vibrance/saturation fix.
UPD 150614: AUTOREC autorun script added.
UPD 150616: RAWLAPSE autorun script added.
UPD 150617: RAWLAPSE  script replaced with RAWLAPSE V2.
UPD 150619: YIMAX script updated to work with 1.2.0 firmware. Noise filter adjusted.
UPD 150624: WIFI-STA by Andy_S tuning script added.
UPD 150805: YIMAX-MOVIE script added (for 1.2.0/1.2.6 FW). 
UPD 150805: System scripts added. SDTEST system script added.
UPD 150809: 1080p30@30Mbps version of YIMAX-MOVIE script added. 
UPD 150811: 1080p60@35Mbps version of YIMAX-MOVIE script added.
UPD 150812: YIMAX-MOVIE script for 1.2.10 firmware added.
UPD 160124: YIMAX-MOVIE script for 1.2.13 firmware added. Values corrected. NR off. Sharpening adjusted.
UPD 160510: 1080p30@30Mbps version of YIMAX-MOVIE script for 1.2.13 firmware added.
UPD 160707: YIMAX-PRO script for 1.2.13 firmware added.
UPD 160711: WARP-ON script added.
UPD 160722: HDR-EXPO-3 exposure bracketing script added.
UPD 160727: YIMAX-PRO 1080p60 version added.
UPD 170116: YIMAX-PRO script for Z22 and Z26 cams with 1.5.6 firmware added.

345 комментариев:

  1. Hello, I own a Xiaomi Yi and I've noticed an awful noise filter in pictures even with daylight and ISO set to 100. Would it be possible to have a script or a hack to erase or at least reduce that filter in photos? It would be awesome if there were a way to activate it only with high ISO but I guess that is very difficult. I've found a couple of scripts that can erase the filter for videos, but for photos they don't seem to work.

    Thank you for your work and your attention and sorry for my bad english.

    ОтветитьУдалить
    Ответы
    1. Hi! There are 3 modes for still capture: LOW/MID/HIGH ISO and the camera (its RTOS actually) sets them automatically according to shooting conditions. Post-processing settings for each of these modes are very different (f.e. LOW ISO gives pretty crispy picture), but I didn't manage to find out how to switch them manually using a script yet.

      Удалить
  2. Этот комментарий был удален автором.

    ОтветитьУдалить
  3. Sorry to be annoying but I have another question. How can you view or transform RAW files into DNG or NEF files in order to edit them? Thank you again :)

    ОтветитьУдалить
    Ответы
    1. Use this tool to convert RAW to DNG:
      https://drive.google.com/file/d/0B4tyaJWIqCb_cDJkTUxCVTlFSE0/view?usp=sharing

      Drag&drop files to its window and click "Convert".

      Удалить
  4. Hey nutsey, first thank you for your work!!
    Second, I have a problem converting the raws with raw2dng, as they have a red color problem...

    Third, what a bout a git repo? Would be easier to sync ;) :)

    ОтветитьУдалить
    Ответы
    1. Hi!,
      Yes there is a problem with colors. Each RGGB byte needs a value subtraction but still not sure how to do it in a proper way. BTW, raw2dng reduces 14bit raw data to 12bit.

      Git repo? Maybe later :)

      Удалить
  5. Hey Nutsey!
    We need a RAW2DNG converter which produces 16-Bit DNGs (the guys at magic lantern had the RAW2CDNG converter, which supported 16bit output.)
    As to the Values for RGGB, You can easily correct the 12bit DNGs in exiftool. WhiteLevel 1024, Blacklevel 50.
    Here is a convenient script. Just dragndrop all your DNG files into it and they look perfect. I calibrated this only with my eyes and my cam, so your results might vary.
    http://www.fatpigtures.com/software/Gonzos-Yi-DNG-Correction.zip

    Feel free to share!

    Gonzo

    ОтветитьУдалить
    Ответы
    1. Yo Gonzo! Thanx for your correction script! Now it's much more easier to process RAW files getting natural colors (esp. in darks).

      Tried several converters from magic lantern without any luck. Do you know which version can work with RAW stills from Yi?

      Удалить
    2. Этот комментарий был удален автором.

      Удалить
    3. Hi, I'm from indonesia. Could you please provide google drive link to download the script ? I tried many time to download the script, but it just not downloading. Thanks before

      Удалить
  6. my last comment was deleted. Anyhow, I contacted the developer. Lets see..

    ОтветитьУдалить
  7. RAWLapse produces only one shot for me. Cam beeps every 8 seconds, but in the end only one shot is on the card.
    Any Advise?

    ОтветитьУдалить
    Ответы
    1. Hm. Time interval is not enough to save RAW+JPEG to memory card. It can be caused by limited writing speed of microsd or cam hardware revision difference. Try to increase "sleep 16" to 17 or 18.

      Удалить
    2. Hey, I tried, I even deactivated the RAW altogether.
      Only the last picture remains on the card. So it always gets overwritten. Also no numbers are missing. My last picture from before is YDXJ0120 - and after 5 minutes timelapse I get just one picture, YDXJ0121 - from the end of the "timelapse".

      Удалить
  8. correction. the first image of the timelapse is saved on the card. the others later are not.

    ОтветитьУдалить
    Ответы
    1. Calling the "t cal -raw 2 1 0" function inside your loop works fine. using the "t app key shutter" command only takes 1 shot. I modified the script now and it works. :)

      Удалить
    2. Is default camera mode set to photo not video?

      Удалить
    3. does it make any sense switching into photo mode by default?

      Удалить
    4. I can test to find out if that fixes it. But ideally, a script should be independent of the mode I think.

      sadly, t cal raw is a little bit slower with capture.

      Удалить
    5. There is no currently known way to set (not just switch between them) photo/video mode using a script.

      t cal raw captures much more useless data :)

      Удалить
  9. if i set it to start in photo mode, it works. so is there a command to switch modes?

    ОтветитьУдалить
    Ответы
    1. You can switch modes with 't app key mode' I guess but it will only switch current mode from one to another not setting it directly.

      Удалить
    2. t app key mode does nothing. Does it work for you?

      Удалить
    3. Oh, sorry! My fault. 't app key cap_rec_switch' switches between rec modes ;)

      Удалить
    4. tried it, sadly even with mode switch only the first pic is on the card.

      Удалить
  10. Hi nutsey im frm indonesia.. Can u help me .. Give a tutor to edit script raw lapse.. Before iso 100 7,9 s to iso 1600 30s

    ОтветитьУдалить
    Ответы
    1. Hi Irfanul! 7.9 seconds is maximum exposure time which can be set from a script.

      Удалить
  11. Этот комментарий был удален автором.

    ОтветитьУдалить
  12. Hi Nutsey, thanks for your scripts.
    Is there any ability to make a loop for your HDR script ?
    I want to shoot HDR sets continuously with delay in 5-10 sec between sets. Is it possible ? Me and my drone will be very grateful to such script ;)

    ОтветитьУдалить
    Ответы
    1. Hi. I don't think you can get any proper result shooting HDR with a drone as it is not solid still as a tripod and there will be problems combining those sets into HDR pictures.

      Удалить
    2. Hi, thatks for the replay.
      I already modifyed your script for everlasting loop and it works perfectly. Also turned off denoiser.
      As for drone shooting - any problem for me. It's my job and I could easyly blend non-steady HDR frames

      Удалить
    3. Did you use the loop from RAWLAPSE script for that?

      Удалить
    4. Result of HDR script working for panoramic image - http://kirs.url.ph/list/Drone/

      I used only 3 exposure for blending

      Удалить
  13. Этот комментарий был удален автором.

    ОтветитьУдалить
  14. Great News!
    https://forum.dashcamtalk.com/threads/sharpness-script.12829/
    We now have the option to turn off the sharpening, great for cinematic look, like in YiMax! coring table of all 10s does the trick.

    ОтветитьУдалить
    Ответы
    1. Yeah, thanx for the info. I've got a different way to change those and much more settings and still working on it.

      Удалить
  15. Feedback on YiMax-Movie:
    1. coring settings can only be changed after removing the battery, they seem permanent until then
    2. it introduces a sound into the video that sounds like autofocusing of a DSLR. (weird!)
    3. it introduces chromatic aberration at some edges

    which line is the watercolor-reduction?

    ОтветитьУдалить
    Ответы
    1. 1. Coring default is 21-24 depending on video mode.
      2. Maybe it's just wifi on?
      3. Yeah it looks like CA, but it is not CA, it's chroma median filter reduced to some level.

      "Watercolor" or "plastic" look is produced together by several filters, but FIR sharpening has major effect here. So it's "sharpening_fir.fir_strength X" in config file.

      Thanx for your feedback!

      Удалить
  16. I tested a modification of your rawlapse script, which uses the t cal raw option, instead of the shutter option.
    Weirdly, it always stops after 5 minutes, which is 23 pictures.
    The loop still runs, as i hear the beeping every time, but no pictures are saved anymore. any idea why this is? card is not near full.

    ОтветитьУдалить
    Ответы
    1. t cal raw generates much more data. Have you tried to increase the delay between shots?

      Удалить
  17. Hello. Which is the lower interval that can be used with the raw time lapse video. Daylight with sun. Is it possible to get 1sec intervals between photos? thank you.

    ОтветитьУдалить
    Ответы
    1. The shortest interval between raw stills is limited by the need to dump the captured data to the memory card. So it takes about 6 seconds to do that.

      Удалить
    2. Thank you Nutsey. As i really need 1sec photos i guess i need to stay with the regular JPGs and the time lapse mode from the YI. Is there any script that can help me the watercolor efect ? I need the photos the more detailed possible to use with aerial mapping softwares like Pix4D. Thank you again.

      Удалить
    3. Let's make it a little bit more clear ) You need a script that disables "watercolor"-look and shoots 1s timelapse into jpegs. Right?

      Удалить
    4. Yes. That´s it. Do you think it´s possible?

      Удалить
  18. Yimax-Movie for for 1.2.10 works great, but if the length runs past about 8 mins the camera ends the first file and starts a new file. When I check the bitrate of the first file, it is 30Mbps, and looks great. Second file drops to 18Mbps and you can see the quality drop. Any way to prevent this? Thanks for your scripts, really a huge difference over default!

    ОтветитьУдалить
    Ответы
    1. Such bitrate problems appeared after 1.0.12 -> 1.1.0 firmware update and are still there.

      Удалить
  19. I just received yi camera, and googled about script and this blog came first for search. I tested Yimax-Movie 1.2.10 for short time, and it was great. Thanks for your script!

    ОтветитьУдалить
  20. Hello!
    I'am try to "modify" hardware of this camera - and I need to get access to serial port (ttyS1) - I alrady connect to it, but I can't work with it...

    check:
    ls -al /sys/class/tty/ttyS1//device/driver

    lrwxrwxrwx 1 root root 0 Jan 1 00:20 /sys/class/tty/ttyS1//device/driver -> ../../../bus/platform/drivers/ambarella-uart

    config:
    stty -F /dev/ttyS1 9600 intr ^C quit ^D erase ^H kill ^U eof ^Z eol ^J start ^Q stop ^S -echo echoe echok -echonl echoke -echoctl -istrip -icrnl -ocrnl -igncr -inlcr onlcr -opost -isig -icanon cs8 -cstopb clocal -crtscts -ixoff -ixon -parenb -parodd -inpck

    test (simple way):
    od -x < /dev/ttyS1
    or
    cat < /dev/ttyS1




    any idea?

    ОтветитьУдалить
    Ответы
    1. Hi!
      I'm not sure but probably you can read serial port after:
      "mesg rtos on
      mesg dsp on"
      in autoexec script.

      Удалить
  21. Hi Nutsey, Thank you for all your hard work and effort you put into these. And for sharing your knowledge with us all. With YiMax..If I remove the #enable 1296p30@30Mbps video entries - will the sharpness, NR and other filters be applied across the board to resolutions already setup within the camera? ie. just using your tweaks not setting a new resolution/bitrate? Thanks again! Mark

    ОтветитьУдалить
    Ответы
    1. Hi! Sure you can remove those writeb and wrtitew commands from the script without losing any functionality but 1296p video mode.

      Удалить
  22. I Nutsey, i search for all internet and not found what i need, i need a script with bitrate 35 to res 1920:1080 50p and 1920:1080 25p, in that moment i have 1.2.10 23L
    Can you help me ?

    ОтветитьУдалить
    Ответы
    1. Hi! Try to use corresponding scripts for 1080p60 and p30 aftes switching from NTSC to PAL with mobile app.

      Удалить
  23. i have try yimax movie but the video split to few..any solution?

    ОтветитьУдалить
    Ответы
    1. Is your video split by the file size or by duration?

      Удалить
    2. it is split by duration..10 sec per video

      Удалить
    3. your sd card is slow, or reformat it.
      Mine sd card was slow and same thing happened. when I lowered to 20mbit bitrate it didn't split.
      So in the end I replaced SD card and use 35mbit bitrate

      Удалить
  24. Hello, tks for this scripts it's so cool!!
    I would like to change the rawlapse script in jpeglapse script, but i don't know what i need to change to not create the raw file... Can you give me a other script with the jpeg only or explain me how i can to that ?
    thank you.

    ОтветитьУдалить
    Ответы
    1. Hi! Just put "#" in the beginning of "t app test debug_dump 14" line of the script.

      Удалить
  25. Hi Nutsey, Thanks a lot for your script, it works great. The pictures taken in RAW format don't have the lens correction switched on. Do you know how could I enable it in the script?

    Thanks!

    ОтветитьУдалить
    Ответы
    1. Hi! The lens correction can't be enabled while shooting RAW beacause RAW files are saved as pure unprocessed data from the image sensor and the lens correction is a kind of in-cam software processing which is bypassed.

      Удалить
  26. Hi Nutsey, Thanks for your script and works !
    I use the rawlaspe script during 7 hours but unfortunatly it's only saved 13 pictures.
    How I can resolve that ? What line I need to modify ?
    Thx by advance

    ОтветитьУдалить
    Ответы
    1. There are several hardware revisions of the Yi camera moreover file saving speed may vary depending on memory card, so you can try to increase the delay between shots (change sleep 16 to 17 or greater).

      Удалить
    2. Hi. I increase delay to 30 between shots but I have the same problem. I have a sd card with 10 class and the last firmware version, maybe this is why i have this problem ?

      Удалить
  27. Hi Nutsey, thanks a lot for your work and for sharing your scripts with us. I would like changing the camera behaviour according the time, for example changing ISO and expositure from the morning to the night. How can I modify the loop by including a time variable?
    I guess you've found many commands analasying the firmware, what about the script lamgauge used by the camera and its environment context ? I'm new on this matter and I've just found the book TLCL (http://linuxcommand.org/tlcl.php) to have some insight on linux script languages, does it help? what do you think?

    ОтветитьУдалить
    Ответы
    1. Hi Mauro! That's a good idea, but what if we can get metering info (it's possible to find out current light conditions from those readings) from the cam and set iso and exposure according to our needs?

      Удалить
    2. Yeah :-D
      I would say more, we could use Arduino Yun with a light sensor that sends light levels or ISO values through wifi to the camera. Well actually I dont know which protocol to use to communicate with the camera but being two linux systems it's should be possible somehow :-)
      I can look for Arduino light sensor projects it's should be easy.

      I've just tried Wifi Station script and it works well !!
      great .. I have to understand now how to use the camera web server to get the real time video

      Удалить
    3. Hi Nutsey, I studied a bit in these days and I learned many things but I'm also confused so I hope you can help me with some advise.
      I was happy because with the help of some friend I wrote a script that by using ephemeris was able to change dynamically the ISO and shutter.
      Unfortunately, the script didn't work when moved in the autoexec file. I realized that only a limited number of commands are enabled in the autoexec.
      I found a (not) complete list of them at https://github.com/kerenmac/Xiaomi-Yi/blob/master/Autoexec_commands.txt.
      However there are behaviours I don't get very well. For example in your WiFi Station example in the autoexec you launch a shell script with the command:
      lu_util exec '/tmp/fuse_d/wifi/sta.sh'. Well I tried to launch a script using the same command but it doesn't work.
      Another strange behaviour is with telnet. I logged as you describe and I was able to switch directory and also create a file test.sh in the fuse_d directory
      but if I try to execute (./test.sh) the shell answers "file not found" :-0 !!
      I discovered that the camera comes with many commands from busybox but still confused with the permission that I have within the autoexec and generally if I can launch a "standard" script (.sh) from the autoexec.
      Thanks !

      Удалить
  28. Hi Nutsey, thank you for your scripts they all worked like a charm! I was able to mix and match some of the scripts thanks to your description for each script. Do you know the script for 720p 120fps @ max bitrate? Say 30 or 35mbps? Thanks!

    ОтветитьУдалить
  29. Hi,

    It is possible to get "1080p60@35Mbps" and "1080p30@30Mbps" in the same script ?


    Like this:

    .....
    #enable 1080p30@30Mbps video
    writeb 0xC06CE446 0x06
    writew 0xC05C30D6 0x41F0

    #enable 1080p60@35Mbps video
    writeb 0xC06CE446 0x03
    writew 0xC05C3046 0x420C
    .....

    ??

    Thanks

    ОтветитьУдалить
    Ответы
    1. Yes, I did just that in the .ash file and it works for me.

      Удалить
    2. Actually, I take that back. It seem to work sometimes while not other times. Maybe Nutsey can chime in on this.

      Удалить
  30. Hello, did you ever come up with a solution for getting rid of that red look in the rawlapse sciprt?

    ОтветитьУдалить
  31. Hi may I know how to edit the interval and the exposure time for rawlapse?
    Provided that I have disabled raw output, which number do I need to change respectively? (E.g. 1 Sec Exposure with 3 Secs Interval)

    Thank you very much

    ОтветитьУдалить
    Ответы
    1. In the HDR6 script there is an example on the how can be changed the exposure from 1 = about 8 seconds to 900 = 0,062 seconds. The ISO can range from 0 automatic ... 100, 200, 400, 800, 1600 as far as I know.
      May be there are other values we can use but I believe it's enough to begin ;-)

      Удалить
    2. Этот комментарий был удален автором.

      Удалить
    3. In the loop "While do" there is an instruction sleep 16 that delays the next iteration (shot) of 16 seconds.
      You can change that number, but consider that it has to be greater than the exposure (8 sec in the script) and in the case of RawLapse script also the time to save the big RAW file.

      Удалить
    4. @Mauro Furfari THANS FOR REPLAY . Which instruction are you referring to?
      I will set shooter to let set 1/400 for aerial raws but still tont know how to set interval to let say 4s?
      On fast cand that should bo OK

      Удалить
    5. After downloading the RawLApse zip, if you open the autoexec.ash script inside the zip file with an editor ( I suggest an editor linux-compatible that's ending each editing line with a newline character: \n ... for example JEdit ) at the bottom of the code you find:

      #MAIN LOOP thanx VOTerra
      while true
      do
      t app key shutter
      sleep 30 # <---- change this i.e. sleep 4 for 4 seconds
      done

      the number are seconds, I think you can use also decimal values that's half second is sleep 0.5.
      But I don't know how long it will take to process a raw image. So you might increase the interval if it is not enough for the camera to store the raw on the SD card. Just try it.

      Удалить
    6. Thank you @Mauro Furfari. So sleep "X: is for interval however this setting is "16" for 8s interval in the above settings I hope it goes proportionally like with shooter. will have to test. thanks

      Удалить
  32. Hello, do you guys know if it is possible to enable audio recording for slow motion videos like 120fps or 240fps? thanks a lot

    ОтветитьУдалить
  33. Is it possible to fix the shutter speed in video mode, which would get rid of the rolling shutter ?

    ОтветитьУдалить
  34. Do you reckon there is any way to trigger a photo capture during video recording by wire? I'd like to take pictures while my quadcopter is up in the air but the 2.4Ghz signal interferes with my radio gear.

    ОтветитьУдалить
    Ответы
    1. Di you have solve this problem of interference? I have CX-20 with xiaomi and have this problem too. How to slove this interference problem?

      Удалить
  35. Also, is there any way to completely disable the noise reduction?

    ОтветитьУдалить
  36. Great stuff :-) I'm new to all this scripts etc but I have given it ago with the Yimax Movie and the video is flat, no contrast and more detail Great ;-) but the bitrate is the same as standard camera default and movement is more blurred, what have I done wrong? thank you for these great facilities, keep it up :-)

    ОтветитьУдалить
    Ответы
    1. Этот комментарий был удален автором.

      Удалить
    2. Maybe check your ad card write speed? The more powerful script needs a powerful ad card write speed.

      Удалить
    3. Maybe check your sd card write speed? The more powerful script needs a powerful sd card write speed.

      Удалить
    4. I have a Class 10 verified card do I need a faster one? many thanks

      Удалить
    5. Class 10 is the standard for action cameras, however you need to check the write speed. It needs to write at least at the number of mbps your camera is recording at. Don't get confused with the read speed that sd card manufacturers put in their specs. Your looking at write speed - plenty of info on the net . Google best sd cards for action cameras and you'll see what I mean.

      Удалить
    6. Also with higher bitrate and fps, your cpu/graphics card are pushed further. Meaning that when you preview the footage, it can seem blurred when its not. It's just the cpu/graphics card struggling to keep up. Test your footage on a high spec computer to see true results . I have gone thru this exact problem. Once it's in your video editing program it should also iron out movement blur.

      Удалить
    7. Hi Mark, really appreciate your time and effort, I will look into it all and I hope you don't mind if I get back if any more problems? Don't know if it's of interest but this is what I have been doing so far with the Xiaomi Yi https://www.youtube.com/watch?v=G32KBrjRDv8 and action https://www.youtube.com/watch?v=7WbBDjXAABM thank you again :-)

      Удалить
    8. Pleasure! Nutsey is the true genious here though. Your videos are awesome well done. What settings/scripts are you using? Am looking at a similar quad setup.

      Удалить
    9. Pleasure! Nutsey is the true genious here though. Your videos are awesome well done. What settings/scripts are you using? Am looking at a similar quad setup.

      Удалить
    10. Oh go on your being modest :-) Glad you like vids loads of them on the channel now so have a good look around, on that note, thanks for subbing :-) I just run it a supplied but I have now put 9443 carbon fibre on and that needs some tuning any PID settings would be a great help. Going to order a fast card UHS 3 so should be fine for better video, thanks again

      Удалить
  37. Sorry to post again, is there any to set the shutter speed less than 4.6s for RAWLAPSE? This is a very long time --- perhaps auto?

    ОтветитьУдалить
    Ответы
    1. 1 = 7.9 Sec.
      8 = 7.7
      50 = 6.1
      8.4 = 5.0
      100 = 4.6
      200 = 2.7
      400 = 1.0
      500 = 1.0
      590 =1/3
      600 = 1/5
      700 = 1/5
      800 = 1/10
      900 = 1/15
      1000 = 1/30
      1100 = 1/50
      1145 = 1/60
      1200 = 1/80
      1275 = 1/125
      1300 = 1/140
      1400 = 1/245
      1405 = 1/250
      1450 = 1/320
      1500 = 1/420
      1531 = 1/500
      1600 = 1/624
      1607 = 1/752
      1660 = 1/1002
      1700 = 1/1244
      1788 = 1/2004
      1800 = 1/2138
      1900 = 1/3675
      2000 = 1/6316
      2047 = 1/8147

      Удалить
  38. these are the bitrate address for 1.2.12...
    https://github.com/funneld/XiaomiYi/blob/master/autoexec.ash/1.2.12-fw/%20bitrate_addresses.txt

    ОтветитьУдалить
  39. Is there a way to create timelapse jpeg photos at full 16 mpix resolution and 1 second interval? :)

    ОтветитьУдалить
  40. What is the max exposure or shutter speed which can be achieved on xiaomi yi ?

    ОтветитьУдалить
  41. Hello!
    I see that in one of your script you use a while loop, I need to check if a file on sd card exists in uItron script and not with lu_util command. It's possible? Can I use the "if statement" ? I try with bash command but it does not work.
    Thanks a lot for your work!

    ОтветитьУдалить
  42. Hello Nutsey!
    I've got problem with yimax movie. I've got Z23L and your scripts doesn't work:( Firmware 1.2.13 After copy files to the sd card and turn it on i just got one long beep sound(after about 5 sec) and bitrate is stil about 15 mbits:(

    ОтветитьУдалить
  43. Hi Unknown,
    The scripts are only written for firmware up to 1.2.10, so they do not work on the current 1.2.13 firmware version. I haven't heard from Nutsey on here in a while so wondering if he intends to keep up with firmware releases or at least teach us how to do it for ourselves.?..

    ОтветитьУдалить
    Ответы
    1. I'm hoping to get the benefit of these updates soon as well. :) After I installed your latest YIMAX movie 1.2.10 script I found out RAW files are indeed created but are corrupt. Bitrate changes didnt work either.

      Удалить
  44. Hello there, I am new with my Xiaomi Yi.
    I like your post. I've downloaded the file 'hdr6v2' and pasted it to my memory card, but as soon as I switch on my camera. It beeps for 4-5 times and goes off.. can you tell me why is that happening? Please? Thanks in advance :D

    ОтветитьУдалить
  45. Hello, excuse my English, I wanted to ask if a script you could record video 720p54fps 1080p54fps. This camera can serve to digitize my old super8 18fps movies (18x3 = 54).
    Thank you.

    ОтветитьУдалить
  46. Этот комментарий был удален администратором блога.

    ОтветитьУдалить
  47. Этот комментарий был удален администратором блога.

    ОтветитьУдалить
  48. Этот комментарий был удален администратором блога.

    ОтветитьУдалить
  49. Этот комментарий был удален автором.

    ОтветитьУдалить
  50. maybe bad question ,...can i use more scripts at the same time ?

    ОтветитьУдалить
    Ответы
    1. ok but all scripts have same name.(autoexec.ash)
      They are all be in same root on sd card and if i wana delete just delet them and they stop working. Am kinda just user and dont know how to do it....sory. i need something easy step by step :)

      Удалить
    2. sorry and last one will it work for 1.2.13 ?

      Удалить
    3. "autoexec.ash" file is just a set of commands to run by Xiaomi Yi during boot, so you can merge or split scripts into your own according to your needs. Download a proper file editor software like Notepad++ or any other and here you are.
      At the moment my scripts are still for earlier firmwares, waiting for essential FW updates from Xiaomi.

      Удалить
    4. ok thanks a lot we will wait or just me myself :)
      I got a new version of camera where is fixed lens focus, sound and batery issues.
      Sound is nice to the point where is really noisy enviroment...its just another guestion ...is posible change or adjust mic sensitivity...very often hapend cliping of sound....like distorded.

      Удалить
    5. I don't know a way to do it without soldering :)

      Удалить
    6. really ? :) there is no way for software corection?

      Удалить
    7. there is my sample of video and sound. Beginning is ok but then :(

      https://www.youtube.com/watch?v=VD_jhZ7n9B0

      Удалить
  51. Этот комментарий был удален администратором блога.

    ОтветитьУдалить
  52. Hi,

    I'm really excited about the possibilities to customize the my yi cameras.

    Is there someplace that describes all the available commands and their options?

    Cheers,

    Geoff S.

    ОтветитьУдалить
  53. What is the goprawn.config file? Do I need to put it in root along with .ash file? Thanks.

    ОтветитьУдалить
    Ответы
    1. You only need this file to use with YiMax-movie script. It loads settings for postprocessing filters into camera from goprawn.config file.

      Удалить
  54. Этот комментарий был удален администратором блога.

    ОтветитьУдалить
  55. Этот комментарий был удален администратором блога.

    ОтветитьУдалить
  56. so can i deleted your trick and my camera back to normal ?

    ОтветитьУдалить
  57. Этот комментарий был удален администратором блога.

    ОтветитьУдалить
  58. NuTsie Hello, excuse my english (Google Translator)
    I'm using the script XYC Alex is based on all your work and have sought unsuccessfully command syntax to set the photos in burst mode.
    I have seen on Github PJanisio sequence extracted firmware commands and there is a "burst_stamp" command, but not if it serves the purpose that I intend.
    Thanks for your help

    ОтветитьУдалить
  59. Hi,
    Is there any script how to change SSID and Password to any other? I somehow changed default one with faulty SD card to another and reset to default settings don`t work. All I know, is new SSID but not the password.

    ОтветитьУдалить
  60. Этот комментарий был удален администратором блога.

    ОтветитьУдалить
  61. Этот комментарий был удален администратором блога.

    ОтветитьУдалить
  62. Hello and congratulations for your work!:) i just recieved my Xiaomi yi action cam and i am wondering wich one of all this scripts is the best? or Wich one i should install?YIMAX-MOVIE? YIMAX or RAWWB? or i can install all of them?
    i want to have the best video quality so i am confused a little bit!Could you give me and answer?Thank you! :)

    ОтветитьУдалить
    Ответы
    1. Hi! Please combine YiMAX-MOVIE and 1296p mode with reasonably high bitrate (~30-35Mbps) to get the best results for shooting videos.

      Удалить
    2. w0w man.. u are too fast on your answers :D
      tommorow i am gonna get sd card and i will do it. so u suggest to use YiMAX-movie for 1.2.10 firmware?And i should update on this firmware or in older one?( picture will be also good with this script right?)

      Удалить
  63. Hello
    Thank you for sharing your scripts.
    I have use your YIMAX-MOVIE 1080p60@35Mbps for 1.2.10 firmware
    I fly a multicopter and i want to ask you if this script has white ballance locked , or if it dosent how can i make white ballance locked when i turn on my camera???
    Thank you for youe time

    ОтветитьУдалить
    Ответы
    1. Hi!
      Replace "t ia2 -3a 1 1 0 1" with "t ia2 -3a 1 0 0 1". If it won't work try adding "t ia2 -awb off" string .

      Удалить
    2. Nutsey i want to ask you

      I have use the rewwb script from you and the flickering of the camera has gone from my videos.
      I want to use your 1.2.13 firmware with rawwb script

      If i put at the 1.2.13 yi max script this string will be ok??

      t ia2 -3a 1 0 0 1
      t ia2 -awb off

      And if i put at other scripts this string will awb be also off??

      Thank you for your great work

      Удалить
    3. Yes, as for the moment those commands are not FW-dependent and will work with 1.2.13 as well. Put them down in the list and they'll disable AWB if you use a complex script.

      Удалить
    4. When will you give us for 1.2.13 the 1920×1080 35 mbps ??

      Thank you nutsey

      Удалить
  64. hello ��.thanks for your work. I just reiseved my yi. its a 22l model. I used it only for underwater videos. 1080p 30fps I want to use. I dont have experience or picture taking knowledge .can you plz help to choose a script that is better for undewater on blue seawater? ans maybe is you know any suggestions to make that script better for underwater? like saturation, sharpness , color? thanks a lot

    ОтветитьУдалить
  65. Hi Nutsey, looks all great but I can't seem to run it maybe you canhelp, well if anyone can it's YOU :-) running latest version 1.2.13 on v22l sandisk extreme 64gb U3 get a beep when turned on with script but still records 15mbps 2k what am i doing wrong? I know it's me. thanking you in anticipation :-)

    ОтветитьУдалить
  66. Sorry about that, can't seem to take last post down. Numpty here went to correct firmware and works a treat, of course you all knew that. great work thank you sooooo much :-)

    ОтветитьУдалить
  67. Nutsey are you happy for me to make a video for my YouTube channel of how great this is and have a link to this page? I assume it would be, otherwise it wouldn't be here, but just thought I would check :-)

    ОтветитьУдалить
  68. Just wanted to make a video showing how to install the script and compare footage, for numptys like me :-)

    ОтветитьУдалить
    Ответы
    1. Yeah, it would be great :)
      Make the video and feel free to put the link to it here.

      Удалить
  69. Hey Nutsey great post. I tried the YIMAX script for fw 1.2.10 on a 1.2.13 fw. And its recording at 10Mbps :(

    ОтветитьУдалить
    Ответы
    1. Thanx. Just added YiMAX-MOVIE for 1.2.13 FW version with some improvements.

      Удалить
    2. whats interesting, i have two yi cameras same model number, but one uses 0xC05C1EB2 and the other uses 0xC05C1EC2 for the bitrate setting.

      Удалить
    3. And just to make sure do they have same FW version?

      Удалить
  70. Is it possible to run the Xi at 1296p24? 24 fps? If so, what is the firmware code?

    ОтветитьУдалить
  71. Is there a beter quality mic so that we replace the default one or this kind of mics are all the same with the same sound result.

    ОтветитьУдалить
    Ответы
    1. Yeah, someone replaced the mic with one from old Sony-Ericsson mobile and was happy with the result.

      Удалить
  72. Hello nutsey

    When do you believe you will give to us the 1920×1080 35mbits for 1.2.13???

    Thank you for your time and your support to yi community

    ОтветитьУдалить
  73. Hello again and thank you for your wonderful work (again)! I want to combine the AUTOREC script with the YIMAX-MOVIE for 1080p60-35Mbps . How will I achieve this?

    ОтветитьУдалить
    Ответы
    1. Try this one:
      https://drive.google.com/file/d/0B4tyaJWIqCb_NUZRMlg1Y1pCNG8/view?usp=sharing

      Удалить
    2. Thanks a lot! I will try it next week when my camera arrives and I'll tell you!

      Удалить
  74. Hi
    thanks for your scripts.
    I'd like to add to your AUTO REC script this feature :
    "superview" (as the gopro superview feature):
    it is recorded in 1600x1200 60fps and the camera stretches it to 1920x1080p 60fps
    Thanks to your help

    ОтветитьУдалить
  75. Hello nutsey
    Thank you for publish the 1920x1080 35mbps for 1.2.13

    I want to ask you about this

    I want to add the feature of disable the AWB RAW (auto white balance disable)

    As i look at the script of auto white balance it has

    t ia2 -3a 1 0 0 1
    t ia2 -awb off
    t ia2 -adj autoknee 255

    And the new script 1920x1080 for 1.2.13 has
    #shadow/highlight clipping adjustments
    t ia2 -adj autoknee 200

    Which auto knee of the 2 should i put to the script ??

    Can i have at the script 2 commands of autoknee???
    And the commands for the auto white balance off should i put them at the

    #shadow/highlight clipping adjustments???

    Or at the
    #fix ae/awb/adj locks???

    Thank you for your time

    ОтветитьУдалить
  76. Hello everyone!
    I have Xiaomi yi action camera and want to capture RAW + 100% JPG time laps.
    I need ISO fix: 100, AWB and automatic exposure.
    Do you have some idea or some scripts to do automatically RAW+JPG (100% quality) time laps every 5 sec shoot.
    Thanks for answers

    ОтветитьУдалить