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:
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.
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.
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:
- Autorun scripts. They aimed to run once or repeatedly in loop mode. Usage examples: HDR capture, 100% quality JPEG capture, RAW timelapse.
- 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.
- System scripts. Linux and RTOS tweaks and undocumented features.
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.
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 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 version. 1080p30@30Mbps version.
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 version. 1080p30@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.
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!
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.
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.
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.
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.
УдалитьЭтот комментарий был удален автором.
ОтветитьУдалить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 :)
ОтветитьУдалить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".
Hi,
ОтветитьУдалитьThis work for firmware 1.2.6...?
all 1.2.0 should work for 1.2.6 as well, as the adresses are the same ;)
Удалить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 ;) :)
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 :)
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
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?
Этот комментарий был удален автором.
Удалить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
Удалитьmy last comment was deleted. Anyhow, I contacted the developer. Lets see..
ОтветитьУдалитьGreat!
Удалить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?
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.
Удалить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".
correction. the first image of the timelapse is saved on the card. the others later are not.
ОтветитьУдалить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. :)
УдалитьIs default camera mode set to photo not video?
Удалитьdefault mode is set to video.
Удалитьdoes it make any sense switching into photo mode by default?
Удалить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.
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 :)
if i set it to start in photo mode, it works. so is there a command to switch modes?
ОтветитьУдалить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.
Удалитьgood enough for me! :) thanks
Удалитьt app key mode does nothing. Does it work for you?
УдалитьOh, sorry! My fault. 't app key cap_rec_switch' switches between rec modes ;)
Удалитьtried it, sadly even with mode switch only the first pic is on the card.
Удалить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
ОтветитьУдалитьHi Irfanul! 7.9 seconds is maximum exposure time which can be set from a script.
УдалитьЭтот комментарий был удален автором.
ОтветитьУдалить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 ;)
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.
Удалить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
Did you use the loop from RAWLAPSE script for that?
УдалитьRight you're :)
УдалитьResult of HDR script working for panoramic image - http://kirs.url.ph/list/Drone/
УдалитьI used only 3 exposure for blending
Short answer is "Wow!" ;)
УдалитьЭтот комментарий был удален автором.
ОтветитьУдалить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.
Yeah, thanx for the info. I've got a different way to change those and much more settings and still working on it.
Удалить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. 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!
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.
t cal raw generates much more data. Have you tried to increase the delay between shots?
Удалитьwifi LED light up and not flashing, how to fix
ОтветитьУдалитьHave you tried WIFI-STA script? It should work in spite of wifi led status.
Удалить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.
ОтветитьУдалить*raw time lapse script
Удалить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.
Удалить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.
УдалитьLet's make it a little bit more clear ) You need a script that disables "watercolor"-look and shoots 1s timelapse into jpegs. Right?
УдалитьYes. That´s it. Do you think it´s possible?
Удалить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!
ОтветитьУдалитьSuch bitrate problems appeared after 1.0.12 -> 1.1.0 firmware update and are still there.
Удалить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!
ОтветитьУдалить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?
Hi!
УдалитьI'm not sure but probably you can read serial port after:
"mesg rtos on
mesg dsp on"
in autoexec script.
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
ОтветитьУдалитьHi! Sure you can remove those writeb and wrtitew commands from the script without losing any functionality but 1296p video mode.
Удалить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 ?
Hi! Try to use corresponding scripts for 1080p60 and p30 aftes switching from NTSC to PAL with mobile app.
Удалитьi have try yimax movie but the video split to few..any solution?
ОтветитьУдалитьIs your video split by the file size or by duration?
Удалитьit is split by duration..10 sec per video
Удалить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
any raw2dng converter for OSX?
ОтветитьУдалитьnot yet, sorry
УдалитьI was successfully able to run raw2dng on osx using Wine.
Удалить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.
Hi! Just put "#" in the beginning of "t app test debug_dump 14" line of the script.
УдалитьHello, what is "GoPrawn" exactly?
ОтветитьУдалитьHi! Thanx for your question. GoPrawn is my SW/FW/HW combined mods aimed to get maximum from the Yi camera.
УдалитьThanks for this!
Удалить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!
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.
Удалить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
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).
Удалить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 ?
Удалить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?
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?
Удалить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
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 !
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!
ОтветитьУдалить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
Yes, I did just that in the .ash file and it works for me.
УдалитьActually, I take that back. It seem to work sometimes while not other times. Maybe Nutsey can chime in on this.
УдалитьHello, did you ever come up with a solution for getting rid of that red look in the rawlapse sciprt?
ОтветитьУдалить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
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 ;-)
Этот комментарий был удален автором.
УдалитьHow to adjust interval?
Удалить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.
@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
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.
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
УдалитьHello, do you guys know if it is possible to enable audio recording for slow motion videos like 120fps or 240fps? thanks a lot
ОтветитьУдалитьIs it possible to fix the shutter speed in video mode, which would get rid of the rolling shutter ?
ОтветитьУдалить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.
ОтветитьУдалить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?
УдалитьAlso, is there any way to completely disable the noise reduction?
ОтветитьУдалить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 :-)
ОтветитьУдалитьЭтот комментарий был удален автором.
УдалитьMaybe check your ad card write speed? The more powerful script needs a powerful ad card write speed.
УдалитьMaybe check your sd card write speed? The more powerful script needs a powerful sd card write speed.
УдалитьI have a Class 10 verified card do I need a faster one? many thanks
Удалить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.
Удалить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.
Удалить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 :-)
Удалить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.
Удалить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.
Удалить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
Удалить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 = 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
can you create this for 1.2.12 , 23L ? thanks!
ОтветитьУдалить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
Is there a way to create timelapse jpeg photos at full 16 mpix resolution and 1 second interval? :)
ОтветитьУдалитьWhat is the max exposure or shutter speed which can be achieved on xiaomi yi ?
ОтветитьУдалить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!
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:(
Yo! I've been out for a while. Now planning to fix up scripts for actual firmware. Stay tuned )
УдалитьThanks Man You are our Hero! ;)
Удалить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.?..
I'm back at last )
Удалить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.
Удалитьwell, good to see you back! :-)
ОтветитьУдалитьthanx :)
Удалить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
How many new image files do you get after one cycle?
Удалить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.
Hi! I don't know any way how to shoot a video with 54 fps yet. Sorry.
УдалитьЭтот комментарий был удален администратором блога.
ОтветитьУдалить2347526 at mail dot ru
УдалитьЭтот комментарий был удален администратором блога.
ОтветитьУдалитьЭтот комментарий был удален администратором блога.
ОтветитьУдалитьЭтот комментарий был удален автором.
ОтветитьУдалитьmaybe bad question ,...can i use more scripts at the same time ?
ОтветитьУдалитьYes, you can combine them.
Удалить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 :)
sorry and last one will it work for 1.2.13 ?
Удалить"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.
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.
I don't know a way to do it without soldering :)
Удалитьreally ? :) there is no way for software corection?
Удалитьthere is my sample of video and sound. Beginning is ok but then :(
Удалитьhttps://www.youtube.com/watch?v=VD_jhZ7n9B0
Этот комментарий был удален администратором блога.
ОтветитьУдалить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.
What is the goprawn.config file? Do I need to put it in root along with .ash file? Thanks.
ОтветитьУдалитьYou only need this file to use with YiMax-movie script. It loads settings for postprocessing filters into camera from goprawn.config file.
УдалитьЭтот комментарий был удален администратором блога.
ОтветитьУдалитьЭтот комментарий был удален администратором блога.
ОтветитьУдалитьAny way to get 1920x1440 video?
ОтветитьУдалитьmaalesef yok şu anda
УдалитьVay be :p turkiyede oturan rusmusun ;)
УдалитьGibi ;)
Удалитьso can i deleted your trick and my camera back to normal ?
ОтветитьУдалитьyep
УдалитьЭтот комментарий был удален администратором блога.
ОтветитьУдалить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
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.
Hi, you can connect to existing wi-fi network using WIFI-STA script.
УдалитьЭтот комментарий был удален администратором блога.
ОтветитьУдалитьЭтот комментарий был удален администратором блога.
ОтветитьУдалить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! :)
Hi! Please combine YiMAX-MOVIE and 1296p mode with reasonably high bitrate (~30-35Mbps) to get the best results for shooting videos.
Удалить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?)
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
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 .
Thank you
Удалить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
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.
УдалитьWhen will you give us for 1.2.13 the 1920×1080 35 mbps ??
УдалитьThank you nutsey
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
ОтветитьУдалить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 :-)
ОтветитьУдалить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 :-)
ОтветитьУдалить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 :-)
ОтветитьУдалитьWhat do you mean?
УдалитьJust wanted to make a video showing how to install the script and compare footage, for numptys like me :-)
ОтветитьУдалитьYeah, it would be great :)
УдалитьMake the video and feel free to put the link to it here.
Kool will get it done and let you know :-)
ОтветитьУдалить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 :(
ОтветитьУдалитьThanx. Just added YiMAX-MOVIE for 1.2.13 FW version with some improvements.
Удалитьwhats interesting, i have two yi cameras same model number, but one uses 0xC05C1EB2 and the other uses 0xC05C1EC2 for the bitrate setting.
УдалитьAnd just to make sure do they have same FW version?
УдалитьIs it possible to run the Xi at 1296p24? 24 fps? If so, what is the firmware code?
ОтветитьУдалитьMaybe.
Удалить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.
ОтветитьУдалитьYeah, someone replaced the mic with one from old Sony-Ericsson mobile and was happy with the result.
Удалить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
https://drive.google.com/file/d/0B4tyaJWIqCb_Mm9XRGtJZ1dONWc/view?usp=sharing
УдалитьYOU ARE THE BEST!!!
УдалитьTHANK YOU !!!
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?
ОтветитьУдалитьTry this one:
Удалитьhttps://drive.google.com/file/d/0B4tyaJWIqCb_NUZRMlg1Y1pCNG8/view?usp=sharing
Thanks a lot! I will try it next week when my camera arrives and I'll tell you!
Удалить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
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
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