Yi hacked resolution 2304x1296 30fps 35Mbits

...
Guys, anyone here that has a working script for 2304x1296 at the highest bitrate for version 1.2.6?
I tried funnels script directly from github, saved as raw autoexec.ash.
It changes the resolution, but the resulting video is 8-10Mbps, instead of 40.
I tried changing to 35 and 60 mbps via editing, too.
No change. Still Ridiculously low Bitrate, even in broad daylight scenes.
Here's a snapshot of my experience using the same script - different from your experience.
I don't have an explanation.

Edit: I see in your post # 386 that you found the reason.
Screen Shot 2015-08-12 at 3.00.33 PM.png
 
Last edited:
On 1.2.10 firmware has changed 1296 bitrate address to C05C3016
 
Hello Guys, I have the Z22L version and 1.2.10 firmware.

I have also use the autoexec for 1.2.0 firmware, but I think that the bitrate don't run properly, because when i read on my video information, the bitrate is writed as "23000 kbps" and not 35Mbps....

My microsd cards is a 32GB Professional microSDHC UHS-II.
 
Hello Guys, I have the Z22L version and 1.2.10 firmware.

I have also use the autoexec for 1.2.0 firmware, but I think that the bitrate don't run properly, because when i read on my video information, the bitrate is writed as "23000 kbps" and not 35Mbps....
Read post #386 in this thread & see if it helps.
 
Read post #386 in this thread & see if it helps.

Ok, thank you.

It works!!! And for change resolution or bitrate which script I can insert?

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

This is the code for video settings...I will try 60mbps at 1080p60 or 30fps.
 
Last edited:
https://github.com/funneld/XiaomiYi/tree/master/autoexec.ash

A user named funnel has a lot of scripts available for download from his GitHub repository. I'm sure you'll find something you like.

In your example for 108060@35mbps, you don't need the line that defines the resolution,
"write oxC06CE446 0x03". Since the camera already knows what a 108060 resolutions is, you only need to specify the 35mbps and that's done with the line "write odC05C3046 ox420C"
Try it and see. :confused:
 
Last edited:
The scripts are known to work correctly. The primary reason scripts don't work is because the user has edited the script with a text editor that does not produce Unix line endings in the script. Use Notepad++ if your computer runs Windows OS, or Textedit if running MacOS-X. It is required for the scripts to work correctly in the camera that the line endings are Unix line endings. Also, do not leave the cursor blinking at the end of the last line of text. Type <enter> or <return> for a new line that's empty. And also be sure to place the file (there can be only one autoexec.ash file) at the root level of the SD card, not in some folder.
 
Last edited:
The scripts are known to work correctly. The primary reason scripts don't work is because the user has edited the script with a text editor that does not produce Unix line endings in the script. Use Notepad++ if your computer runs Windows OS, or Textedit if running MacOS-X. It is required for the scripts to work correctly in the camera that the line endings are Unix line endings. Also, do not leave the cursor blinking at the end of the last line of text. Type <enter> or <return> for a new line that's empty. And also be sure to place the file (there can be only one autoexec.ash file) at the root level of the SD card, not in some folder.
I Use notepad++ but i tried and doesn't work... X(
 
What script did you try and describe what your mean when you say "doesn't work".
 
Hi,
I went through all the 23 pages but some things are still not clear to me.
I work on PAL and funnel's excellent list of resolutions and fps is only for NTSC modes.
Someone stated that PAL codes could be the same, simply with PAL enabled via app.
Is it true?
And if it is true 25P is the same string as 30P or as 24P ? By frame rate I would say 24, but by logic (TV standard counterpart) I would say 30P.
Lastly, Funnel said that adding the 2.3k video option enables it only as a recording format but not as a frame rate for sensor readout, so 2.3k mode in PAL is not really possible?
 
Yes, the 0x02 it's the resolution.

these are the other known resolution values I found:
Code:
#set video resolution
#0x02=2304x1296 30fps
#0x03=1920x1080 60fps
#0x20=1920x1080 48fps
#0x06=1920x1080 30fps
#0x21=1920x1080 24fps
#0x0C=1600x1200 60fps
#0x23=1600x1200 48fps
#0x0D=1600x1200 30fps
#0x24=1600x1200 24fps
#0x16=1280x960 60fps
#0x25=1280x960 48fps
#0x17=1280x960 30fps
#0x26=1280x960 24fps
#0x0F=1280x720 60fps
#0x27=1280x720 48fps
#0x11=1280x720 30fps
#0x28=1280x720 24fps
#0x34=1280x720 120fps
#0x2A=856x480 24fps
#0x13=856x480 30fps
#0x38=856x480 120fps
#0x37=848x480 240fps
#0x12=848x480 60fps
#0x29=848x480 48fps
#0x19=728x400 30fps
#0x2C=640x480 24fps
#0x1C=640x480 30fps
#0x2B=640x480 48fps
#0x35=640x480 120fps
#0x36=640x480 240fps
#0x1A=640x360 30fps
#0x1B=640x360 30fps
#0x1D=440x240 30fps
#0x30=352x240 30fps
#0x2E=352x240 30fps
#0x2D=352x240 30fps
#0x2F=352x240 30fps

what firmware that code for? is it same for 1.2.10 ?
 
Hi,

Is there a complete list what bitrates are applicable in scripts (address-hex value)? I saw some in post #24 (18, 25, 30. 35Mbps). In a youtube AFT tutorial 21Mbps was used.

Thx in advance.
 
I made some tests and I can confirm that the values for NTSC are applied to PAL counterparts.
The one that influences 25P is 30P and NOT 24P (which is available in both NTSC and PAL modes correctly, being a movie format and not a tv format).
So, as an example, to raise 1920x1080@25P the right string is

C05C30D6
Curiosuly, same bitrate (here is 40) gives different values for each resolution, with 30P being the lighter as shown in the screenshot.

fps.jpg


anyone knows value numbers beyond 40?
 
what firmware that code for? is it same for 1.2.10 ?
Seems to be OK with 1.2.10 with one minor glitch.
In my IOS app, when I have 2304x1296 resolution active, if I try to change to 1080/60, the change is ignored. I have to choose 1080/30 or some other resolution first, then I can choose 1080/60 from there. That's been my experience. Try it and see for yourself.
 
Noob question, I'm using 1.2.10
And I'm able to get 2304x1296 working @35 bit with following code:
#set video resolution to 2304x1296 25/30p depending on PAL/NTSC
#writeb 0xC06CE446 0x02
#set bitrate to 35Mb/s
#writew 0xC05C3016 0x420C

But wath code do I need for 1080p 25 fps @ 30 mbit?
 
I downloaded and used a 1080p 30fps 30Mbps script which works very well. However, I noticed that the if the video runs longer than 8 minutes, the file is split and when the camera starts the new file, the bitrate drops to 18Mbps. Any way to stop this and have it record 30Mbps for more than just the first file when recording longer than 8 minutes?
 
Back
Top