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

Xiaomi Yi action cam custom scripts.

I'm not affiliated with any action camera brand. Please feel free to contact me if you want to provide me a sample of hardware to get independent expert comments or any other unbiased assessments.

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.

четверг, 13 апреля 2017 г.

понедельник, 13 марта 2017 г.

GitUp Git2 modified firmware. MODx.

I modified stock 1.6.1 FW for Git2 action camera.


Here are the changes I have made with this custom firmware (current version is MOD3):
  1. Bitrate values changed reaching 45Mbps for some modes.
  2. 4K modes replaced with 2K 24fps and 1080p30 (note that modes shown in UI are not changed).
  3. 5M and 3M still resolutions were transformed to 4M and 2M. 4M is 1/2 of full sensor resolution in both directions, 2M is 1920x1080 which can be used for FullHD timelapses without any resizing.
  4. AE table for CarDVR mode is adjusted.
  5. Some text UI entries are fixed to match the changes.


Download MOD3 firmware and leave any feedback on it HERE.

воскресенье, 25 декабря 2016 г.

GETINFO script for Ambarella A12 action cams.

This autoexec.ash script is intended to use with action cams based on Ambarella A12 SoC. It gathers RTOS log and lists some of available commands. The output is saved to the LOG.TXT file.

download

Please share your LOG.TXT file and your camera details at GoPrawn.com action cams discussion site.

четверг, 1 сентября 2016 г.

How to get scripts working with Xiaomi Yi Z25 (1.3.0).

In order to use Z22/23 revision scripts for 1.2.13 FW with newer Z25 cam you need to downgrade the firmware version back to 1.2.13 from 1.3.0.
1. Upload Z22 elf image to your cam with DirectUSB tool.
2. Update firmware from memory card to the latest Z23 1.2.13.

Please check this thread at GoPrawn.com for more Z25/26 (1.3.0/1.4.8) Yi cam revisions details.

среда, 3 августа 2016 г.

Yi 4K action cam custom scripts.

Hi! Here I will post my scripts working with the new Yi 4k action camera. This feature is still unavailable at the moment, but Yi technology representative confirmed it will be implemented in future FW releases.

понедельник, 30 мая 2016 г.

DIY portable 12v/5v power supply.

Do you have a nearly dead UPS battery, a bundle of wires and $15? Why not to combine them into the PSU which will provide you both +12V and +5V to power almost full range of gadgets?

Check my post here for details

понедельник, 16 мая 2016 г.

Unofficial GitUp Git2 Android app.

Seems like GitUp experiences some kind of problems creating Android application for Git2 action cam control. Moreover there is even no estimated release date stated at the moment. So I decided not to cool heels anymore and write my own code.

GitApp main screen.

GitApp Android launcher icon.

Here comes GitApp - an unofficial Android appliction for GitUp Git2 camera (actually can work with any Novatek based cam). It already can start/stop video recording, take video snapshot and open live stream from Git2 camera. Now it's in early beta status and I will release it as soon as I add some more features. Stay tuned!

понедельник, 2 мая 2016 г.

Hacking Novatek firmware.

Just managed to unpack Novatek NT96660 .BIN firmware  file. It can contain one or two separate firmwares combined into one file: one for uITRON OS and one for eCos OS. Seems like one is for realtime user interaction and the other is for camera controls. Stay tuned.

UPD 05-26-16: Here you can download tool for Novatek FW unpack: link
UPD 12-09-16: DENOVA Novatek firmware unpacking script: link