Attached is a modified LIB I have Changed the THE Video Res from Half Size to Full.
So Now it should record at 4608 x 3456 30fps this is enough for 4096 x 2160 DCI 4K or 3840 x 2160.
Another thing i dunno if media profiles contain the 4k res so you may need to edit those
Code:
<EncoderProfile quality="4kdci" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="100000000"
width="4096"
height="2160"
frameRate="30" />
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="4kuhd" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="100000000"
width="3840"
height="2160"
frameRate="30" />
<Audio codec="aac"
bitRate="156000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
then add this to the end of build.prop
Code:
persist.camera.4k2k.enable=1
lastly
Download Freedcam from Playstore Run it Swipe Left Settings > Save Camera Parameters
Check in DCIM/freedcam for txt file save it change lib
after lib change and restart there should be new res added to video sizes
looking at these specs sensor is very capable
Ive also attached a bookmark for hex workshop
below is the format of res
in the source code
its like the this
Code:
.x_output = 3264,
.y_output = 2448,
.line_length_pclk = 3584,
.frame_length_lines = 2480,
.vt_pixel_clk = 133400000, // = line_length_pclk*frame_length_lines*max_fps
.op_pixel_clk = 320000000,
.binning_factor = 1,
.max_fps = 15,
.min_fps = 7.5,
.mode = SENSOR_DEFAULT_MODE,
in hex like below each group of two numbers is one byte