[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 389: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
Nikon Hacker • View topic - Getting RAW Video

Getting RAW Video

All things embedded.
*NO FEATURE REQUESTS*

Re: Getting RAW Video

Postby leegong » Wed Apr 22, 2015 8:42 pm

The key point now is to confirm that LV_Tsk_1B or LV_0000 is MV defect RAW data , then decode it ,
then many mysteries may be solved .
Once MV DEFECT is confirmed , the next step is to dump and analyze chip registesr setting , compare it with registers
settings of LV stream mode , then modify setting of LV stream mode to generate LV RAW in ram memory , then we'll get it .

EDIT : Maybe it's helpful to compare with MV defect RAWs captured on different D5100 ,
could anyone capture MV defect RAW with my patch ? , i have tested the patch , it's safe .
leegong
Core Developer
 
Posts: 2143
Joined: Mon Mar 19, 2012 12:21 am
Location: Hangzhou , China
Been thanked: 553 times

Re: Getting RAW Video

Postby astronomer » Wed Apr 22, 2015 9:12 pm

User avatar
astronomer
Developer
 
Posts: 722
Joined: Fri Apr 06, 2012 10:06 am
Location: US
Been thanked: 293 times

Re: Getting RAW Video

Postby leegong » Wed Apr 22, 2015 9:14 pm

leegong
Core Developer
 
Posts: 2143
Joined: Mon Mar 19, 2012 12:21 am
Location: Hangzhou , China
Been thanked: 553 times

Re: Getting RAW Video

Postby leegong » Thu Apr 23, 2015 3:11 am

According to astronomer's suggestion , just disable all pre-processings , then capture a new dark frame ,
it looks like 8 bits 1664 x1095 dark frame image very much , see data in offset 0 - 0x1BCD7F of the attachment ,
data in offset greater than 0x1BEE00 are invalid , data in offset 0x1BCD80 - 0x1BEDFF is very interesting ,
i guess maybe they are data during Vertical blanking period :
0x1BEE00 - 0x1BCD80 = 0x2080 = decimal 8320 , 8320 /1664 = 5 , 5 lines for V-blanking ??

Base on firmware decoding and data in the captured RAW , i would say very very high possibility of MV defect RAW .
Attachments
V_blanking.png
V_blanking.png (18.03 KiB) Viewed 5591 times
MV_defect.rar
(182.28 KiB) Downloaded 157 times
leegong
Core Developer
 
Posts: 2143
Joined: Mon Mar 19, 2012 12:21 am
Location: Hangzhou , China
Been thanked: 553 times

Re: Getting RAW Video

Postby leegong » Thu Apr 23, 2015 3:47 am

One more thing interesting , offset 0x1BCD80 - 0x1BEE00 are divided into 5 blocks , each block is 0x680 (decimal 1664 bytes) size ,
each block is filled with repeated same pattern , they are 0x397D , 0x5239 , 0x397D , 0x5239 , 0x397D respectively ,
what do they mean ?
Attachments
SensorOutputFormat.png
leegong
Core Developer
 
Posts: 2143
Joined: Mon Mar 19, 2012 12:21 am
Location: Hangzhou , China
Been thanked: 553 times

Re: Getting RAW Video

Postby leegong » Thu Apr 23, 2015 9:28 am

Attachments
MVdefect.png
leegong
Core Developer
 
Posts: 2143
Joined: Mon Mar 19, 2012 12:21 am
Location: Hangzhou , China
Been thanked: 553 times

Re: Getting RAW Video

Postby leegong » Fri Apr 24, 2015 5:39 am

Recaptured defect RAW for still photo , set capturing size = 0x2000000 = 32MB ,
the valid data aera in the RAW is 0 - 0x1F3B000 , 0x1F3B000 bytes = decimal 32747520 bytes
= 4992 x 3280 x 2 bytes(16 bits) , so that's a 14bits RAW dark frame .
The file is too large to be uploaded here , so here is screenshot of MATLAB displaying .

What i captured the first time was still photo defect raw , i'm sorry i made a mistake ,didn't explain clearly at that time ,
i can safely say that the second raw is MV defect RAW , not only based on the evidences i mentioned in previous threads ,
but also another indirect evidence : the sub routines for still photo defect and MV defect are called if an index = 1 or 2
respectively in the firmware , if the index = 0 , then normal still photo shooting .

Because of the same setting for IMX071 in both of MV defect shooting and Liveview 24 FPS stream , i think D5100 LV RAW
is 8bits 1664 x1095 stream , very very high possibility of 3x3 addition mode when IMX071 works in Liveview .
Attachments
Photo_defect.png
Photo_defect.png (18.23 KiB) Viewed 5472 times
Screenshot.png
leegong
Core Developer
 
Posts: 2143
Joined: Mon Mar 19, 2012 12:21 am
Location: Hangzhou , China
Been thanked: 553 times

Re: Getting RAW Video

Postby leegong » Fri Apr 24, 2015 7:40 am

leegong
Core Developer
 
Posts: 2143
Joined: Mon Mar 19, 2012 12:21 am
Location: Hangzhou , China
Been thanked: 553 times

Re: Getting RAW Video

Postby astronomer » Fri Apr 24, 2015 10:22 am

Maybe because it's a dark frame, they only keep the lower 8bit out of the 12bit? Just my wild guess.

It doesn't make sense to keep 8bit in RAW, as the downstream gamma curve will induce gaps in the histogram.
User avatar
astronomer
Developer
 
Posts: 722
Joined: Fri Apr 06, 2012 10:06 am
Location: US
Been thanked: 293 times

Re: Getting RAW Video

Postby leegong » Sat Apr 25, 2015 4:53 am

Just zoom in and take la look at MV defect RAW , the last 5 lines (line 1096 - line 1100) are interesting :
Attachments
MV_defect_line1096_1100.png
MV_defect_line1096_1100.png (10.41 KiB) Viewed 5377 times
leegong
Core Developer
 
Posts: 2143
Joined: Mon Mar 19, 2012 12:21 am
Location: Hangzhou , China
Been thanked: 553 times

PreviousNext

Return to Firmware

Who is online

Users browsing this forum: No registered users and 4 guests