Night recording

Tanckom

Active Member
Joined
May 1, 2016
Messages
179
Reaction score
61
Country
Germany
I know the Xiaomi is bad for night recording, however if we limit the ISO to 600 and de-noise it with a value between 1024 and 4096 it might not look that bad.
But my question is, how can we limit ISO for video recording? I don't want to fix it, but simply limit it to 600.
If limiting is not possible, is it possible to fix it for videos? Because the :
t ia2 -ae exp 800 1000 0
where 800 is ISO is fixing the ISO only for photography...
 
Last edited:
So, i was tweaking several things around, and i came this far.
Note: The ISO fix is only working for pictures, so I'll try to combine ths Night mode for Pictures AND Videos.
If somebody want to help out with this to create a good night script, feel free to add and help. (Credits will be given).

And i know the Xiaomi is bad for night recording, however using a good script, and editing the video later with Neat Video and other postprocessing tools, you can get good results out of it (as proven by ncainz (or something like that ^^)).

Main goal:
I want to create several modes which shall be used by Yi-plus, so we can use one setup for everyday usage, diving, night/lowlight, fast movement, timelapse etc. since there are only several scripts which are used for sharpening or movie(Yimax).

#XIMODE NIGHT
#Mode: Night (Mode for night recording)
#-------------------------------------------------------------
#Version: 1.0
#Date: 09.05.2016
#Author: Tanckom
#Sources: Yimax, PJanisio, Dashcamtalk
#Description: Recording Videos in dark/night areas. ISO set to 1600 and exposure locked at 1/30. Contrast and colors fixed with Yimax.
#Please record in lowest possible fps (recommend 24fps), since lower fps means longer shutter speed = capture more light.
#-------------------------------------------------------------

#+++++++++ BITRATE AND RESOLUTION ++++++++++
#2304x1296p30 35Mbit
writew 0xC05C1EB2 0x420C

#1080p60 35Mbit
writew 0xC05C1EE2 0x420C

#1080p48 35Mbit
writew 0xC05C2452 0x420C

#1080p30 35Mbit
writew 0xC05C1F72 0x420C

#1080p24 35Mbit
writew 0xC05C2492 0x420C

#720p120 35Mbit
writew 0xC05C2812 0x41F0

#++++++++++++ CORRECTIONS - PHOTO ++++++++++++++++

#FIRST VALUE: ISO (100,200,400,800,1600,3200,6400,12800,25600) (Don't go higher than 1600 - otherwise Noise!)
#SECOND VALUE: Shutter Speed 0 == automatic, 1==7.9s, 8==7.7f, 50==6.1s. 100==4.6s, 200==2.7s, #400==1sec, 590==1/3sec, 600==1/5sec, #800==1/10sec, #900==1/15sec,
#1000==1/30sec, 1100==1/50sec, 1145==1/60sec, 1200==1/80sec, 1275==1/125sec, 1300==1/140sec, 1405==1/250sec, 1450==1/320sec, 1531==1/500sec, #1607==1/752sec,
#1660==1/1002sec, 1788==1/2004sec, 1800==1/2138, 1900==1/3675, 2000==1/6316, 2047==1/8147 (EXIF value)
#Best shutter speed: 1/30 and 1/50
#THIRD VALUE: Gain control (adding more light to the sensor -> adding noise ) Values: 6,12,18 (6 f.ex. increase two times light signal)
t ia2 -ae exp 800 1000 0

#++++++++++++ CORRECTIONS - VIDEO ++++++++++++++++

#vibrance/saturation adjustments, Value: 0-255
#t ia2 -adj ev 10 0 vibrance 0 0 saturation 0
t ia2 -adj ev 10 0 140 0 0 200 0

#shadow clipping adjustments Values: 0-255, higher value, more "light" in the video
t ia2 -adj l_expo 220

#highlighting ,Values: 0-255, lower value, more "light" in the video
t ia2 -adj autoknee 20

#exposure lock
t ia2 -exp lock 1

#set gamma level - makes picture darker, more highlights? - values [0~255]
t ia2 -adj gamma 80

#enable 1/13/14/34/38 scene modes: auto/landscape/portrait/through_glass/car_DV
t cal -sc 13

#fix ae/awb/af/adj 0:0n 1:0ff
t ia2 -3a 1 0 0 1

#Disable vignettecorrection - v:video mode, s: still mode - enable 0:disable,1:enable
#t ia2 -vnc v 0

#++++++++++++ QUALITY CORRECTIONS ++++++++++++++++

#enable raw+jpeg stills
t app test debug_dump 14

#Set JPEG quality to 100%
t cal -jqlt 100

#noise reduction 0:no reduction(noisy but sharper)/16383:full noise reduction(no noise but less sharp)
t ia2 -adj tidx -1 5120 -1

#based on nutsey's Yimax script
#set sharpness for video mode
t is2 -shp mode 0
#t is2 -shp fir 100 0 0 0 0 0 0
t is2 -shp max_change 5 5
t is2 -shp cor d:\coring.txt



#++++++++++++ ANYTHING ELSE ++++++++++++++++

#4GB no split files
writew 0xC03A8620 0x2004

#cleanup
sleep 1
lu_util exec rm /tmp/fuse_d/DCIM/100MEDIA/*_thm.mp4
rm \DCIM\100MEDIA\*_thm.mp4
#lu_util exec rm /tmp/fuse_d/DCIM/100MEDIA/*.THM
#rm \DCIM\100MEDIA\*.THM

+++++++++++++ FINISHED +++++++++++++
#ready beep
t pwm 1 enable
sleep 1
t pwm 1 disable
 

Attachments

  • Ximode_Night_1.0.zip
    1.9 KB · Views: 16
I know the Xiaomi is bad for night recording, however if we limit the ISO to 600 and de-noise it with a value between 1024 and 4096 it might not look that bad.
But my question is, how can we limit ISO for video recording? I don't want to fix it, but simply limit it to 600.
If limiting is not possible, is it possible to fix it for videos? Because the :
t ia2 -ae exp 800 1000 0
where 800 is ISO is fixing the ISO only for photography...


You can set fixed iso , BUT then you also set fixed shutter. Ther is no way to set fixed iso with variable shutter speed manualy,

https://dashcamtalk.com/forum/threads/how-to-manual-exposure-in-video-mode.14547/
 
Thanks, but looks like several other .ash's scripts are used for this too. Not sure if compatible to add it to ash.booter
 
Last edited:
Back
Top