YiMAX-PRO script.

Discussion in 'Yi Action Camera' started by nutsey, Jul 7, 2016.

  1. moozes

    moozes New Member

    Messages:
    5
    Likes Received:
    3
    Country:
    Finland
    Hi. I've just got my Yi upgraded to 1.5.12 and seems like the 1.5.6 scripts don't work.

    Seems like nobody has written anything about 1.5.12 yet, so here I go.

    What I was able to get from comparing the 1.5.6 and 1.5.12 firmwares was the following on 1.5.12 firmware (Z25L hw rev):

    For 1080p60 40mbit, ABR, 0.75-1.25 range

    writeb 0xC05CBEDC 0x05
    writew 0xC05CBEE2 0x4220
    writel 0xC05CBEB4 0x3f400000
    writel 0xC05CBEB8 0x3fa00000

    seems like the memory addresses have shifted a bit, 1.5.6 ones were
    writeb 0xC05C8EDC 0x05
    writew 0xC05C8EE2 0x4220
    writel 0xC05C8EE4 0x3f400000
    writel 0xC05C8EE8 0x3fa00000

    I'm still wondering that the following line in the yimax script actually does since it's different in the 1080p60 and 1296p30 scripts (in the latter one the data written is 0x02):
    writeb 0xC06D4426 0x03

    anyone care explain what is the purpose of that line in the scripts?

    Also it seems that the 4Gb filesize limit does not work. Will have to try and investigate that a bit further as well.
     
    nutsey likes this.
  2. Andrei Stefan

    Andrei Stefan New Member

    Messages:
    5
    Likes Received:
    0
    Country:
    Romania
    Hi moozes! Thank you for taking time to figure out the 1.5.12 firmware. I have a yi z23L with this firmware and I just want to increase the bitrate to 35 mbs so grass and foliage will not get so compressed. Could you help me with scripts for 1080p 30fps, 24 and 60 with 35 mbs birate (everything else same as stock)?
     
  3. moozes

    moozes New Member

    Messages:
    5
    Likes Received:
    3
    Country:
    Finland
    Hello Andrei!

    What I posted was for 1.5.12 1080p60 video mode albeit 40mbit/s. If you just want to get the bitrate amped up to 35mbit and everything else stock then the below should work for 1080p60 (35mbit -> 0x420C instead of 0x4220 for 40mbit).

    #1080p60 35mbit ABR
    writeb 0xC05CBEDC 0x05
    writew 0xC05CBEE2 0x420C
    writel 0xC05CBEB4 0x3f400000
    writel 0xC05CBEB8 0x3fa00000

    Also this works for 1296p30 35mbit bitrate:
    #1296p30 35mbit ABR
    writeb 0xC05CBEAC 0x05
    writew 0xC05CBEB2 0x420c
    writel 0xC05CBEB4 0x3f400000
    writel 0xC05CBEB8 0x3fa00000

    If somebody has the offsets for 1080p30 and 24 from fw 1.5.6 i think I could get the rest figured out for you by comparing the 1.5.12 and 1.5.6 firmwares.
     
    Andrei Stefan and nutsey like this.
  4. Andrei Stefan

    Andrei Stefan New Member

    Messages:
    5
    Likes Received:
    0
    Country:
    Romania
    Hi moozes!
    Thank you for your time in writing this but unfortunatly it does not work. I managed to safely downgrade to 1.2.10 and now I use the YIMAX Movie script and WOW!!! what a difference it makes in both video and photo. The raw files are just great for photos, I atached here some samples. I just wish that somehow the YMAX Pro script and YIMAX Movie script will someday be available to the 1.5.12 firmware.

    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]
     
  5. nutsey

    nutsey Active Member

    Messages:
    286
    Likes Received:
    123
    Country:
    Turkey
    This job can't be done by itself...
     
  6. Andrei Stefan

    Andrei Stefan New Member

    Messages:
    5
    Likes Received:
    0
    Country:
    Romania
    Hi nutsey,
    Yes, of course, please don't get upset. I apologize if I upset you. I want to thank you for transforming our little cameras into something great. Your work is greatly appreciated. Unfortunately I don't have the necessary skills to help figure it out how to port them but what I did was get in touch with the YI cam support and tried to convince them to make raw support and higher bitrates officially suported. I don't know if I will succede but I read somewhere that they plan to release an open API for developers so hope is not lost.
     
  7. moozes

    moozes New Member

    Messages:
    5
    Likes Received:
    3
    Country:
    Finland
    Hello. Unfortunate to hear that this did not work for you.

    I know for a fact that it works on my cam (1.5.12 hw Z25L) which makes me wonder if there is something different after all in fw 1.5.12 for Z23 and Z25 hw versions. My understanding was that the FW should be the same for both hw revisions.

    One thing I noticed regarding the autoexec.ash file that there has to be an empty line in the end of the file. If you omitted that from the autoexec.ash that might be the reason it did not work. Also the file encoding has to be "Unix" instead of "Windows" which affects the line endings. If you just did create a file with notepad that will not work as well, since the encoding is wrong.

    Could you try with copying the files found from the attached zip. That's what I'm running on my cam currently which affects both 1080p60 and 1296p30 video modes (40mbit ABR etc.) It has the ready beep and the wifi led blinking as in the original yimax-pro scripts so one can see if the code is running in the first place. Once again, this is working on hw z25L camera with 1.5.12 fw installed.
     

    Attached Files:

    Last edited: Sep 19, 2017
  8. Andrei Stefan

    Andrei Stefan New Member

    Messages:
    5
    Likes Received:
    0
    Country:
    Romania
    Hi moozes. I can confirm that it works. I made a short clip that has the 40 mbs and the second one got to 32 mbs (I don't know why). Is this script actually a full port of the YMAX Pro?
     
  9. moozes

    moozes New Member

    Messages:
    5
    Likes Received:
    3
    Country:
    Finland
    Hello again. Sorry for taking so long to answer. I think it mostly has all the stuff that the original yimax-pro has. One thing I changed was to comment out the gamma setting by adding a "#" in front of the line with "t ia2 -adj gamma 160". I've now removed the "#" from the line since I noticed that I got way burnt out sky on my latest videos without the gamma adjustment.

    What I'm still wondering about is one line in both 1296p30 and 1080p60 original yimax-pro scripts and what it does. I don't have that in my autoexec.ash at all currently.

    In the original yimax-pro script:
    1080p60: writeb 0xC06D4426 0x03
    1296p30: writeb 0xC06D4426 0x02

    It's the same memory address on both. Could @nutsey perhaps shed some light on what that line is doing in the scripts? If I've understood correctly by extracting the PRI partition of the 1.5.6 and 1.5.12 firmware there is no data in that memory address at all by default. Might be wrong though.
     
    Last edited: Sep 28, 2017
  10. nutsey

    nutsey Active Member

    Messages:
    286
    Likes Received:
    123
    Country:
    Turkey
    These commands are outdated as they were needed to set up 1296p30 video mode as it was not available to choose from the app. I know I should rewrite some stuff :)
     
  11. moozes

    moozes New Member

    Messages:
    5
    Likes Received:
    3
    Country:
    Finland
    Ok. So this means that my modified script should have everything working for both 1296p30 and 1080p60 on FW 1.5.12. Attached is the script with all the features included in the original yimax-pro scripts enabled which has both 1296p30 and 1080p60 modes in the same script. :)

    Edit: And thanks for the answer @nutsey
    Quick additional Edit: Filesize limit is still 1.9Gb in my scripts. This is due to not having enough time yet to figure out where the memory address for that setting lies in the 1.5.12 FW. Otherwise this has all the stuff that the original two YIMAX-PRO scripts have.
     

    Attached Files:

    Last edited: Sep 29, 2017
  12. TwoBlues

    TwoBlues Well-Known Member

    Messages:
    1,007
    Likes Received:
    151
    Country:
    United States
    Moozes:
    Good work! I tested your file filming at one minute 20 seconds with 1.5.12 fw and with your changes. The MB rate increased from 149 to 430 and the Wifi blinks, but the beep for starting /stopping video/photo is gone!
    Thanks for your work!
    Update , when the camera ,Z231..., is connected to my Android tablet all beeps function, including "find camera", then stop functioning when I turned off the tab.
     
    Last edited: Oct 14, 2017
  13. Atoborn_14

    Atoborn_14 New Member

    Messages:
    2
    Likes Received:
    0
    Country:
    France
    Hello there !

    i have a question, if nutsey or someone else can answer :

    I have the yimax pro script, and it's good !

    I opened the script with notepad++, and there is :

    #HSV, shadow/highlight clipping, gamma, NR adjustments:
    t ia2 -adj ev 10 -1 70 -1 -1 150 -1
    t ia2 -adj l_expo 163
    t ia2 -adj autoknee 255
    t ia2 -adj gamma 160
    t ia2 -adj tidx -1 0 -1

    Can someone tell me what does all mean ? if i'm changing adj ev, what does it change ? If i change tidx, what will happen ? Just want to know what does all these word means to maybe change myself the script and have a script as i want me to see it.

    Thanks !
     
  14. nutsey

    nutsey Active Member

    Messages:
    286
    Likes Received:
    123
    Country:
    Turkey
    HSV = hue, saturation, vibrance
    shadow/highlight clipping = details on darks/lights
    gamma = gamma :)
    NR = noise reduction
     
  15. Atoborn_14

    Atoborn_14 New Member

    Messages:
    2
    Likes Received:
    0
    Country:
    France
    Thank you nutsey

    Saturation vibrance got it, but what is hue ? (english is not my primary language, so sometimes i don't understand some things.)
    For shadow/highlight, if = 0 it's darker and if it's 255 it's lighter ?
    And for the noise reduction, how does it works ? if i have 0 or 500 or 1000, what will be the difference ? (i know what is noise reduction, but just want to know the difference with some number.)

    Thanks !
     
Loading...

Share This Page