Author Topic: 3K/UHD 5D2 Raw development and Other Digic IV Cams  (Read 65002 times)

reddeercity

  • Hero Member
  • *****
  • Posts: 1832
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #375 on: December 05, 2018, 09:54:56 AM »
Ok looks like I found 3x1 I think , As I thought ADTG12[100c] does a lot of the pinning/line skipping


So 0x0 put the vertical in stretch mode , it seem 33.3% of the original height put the image in proper aspect ratio again
Code: [Select]
ADTG12[100c] 0x2->0x0
1888x1248 ( I changed c0f060084 0x10036->0x10026=> 1888)

1888x1248-M05-0138_000000.png


Re-sized the vertical (33.3% of original height) to 416

1888x416-M05-0138_000000.png

Still trying to get the ghosting to stop with cmos[1]

benoit

  • New to the forum
  • *
  • Posts: 21
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #376 on: December 05, 2018, 02:25:38 PM »
Ok looks like I found 3x1 I think , As I thought ADTG12[100c] does a lot of the pinning/line skipping
If it's vertical, you found the 1x3 binning ?  ;) The same as theBilalFahkouri in "Magic Lantern Cinema Camera - Dual ISO without aliasing & without quality loss!" thread ?

reddeercity

  • Hero Member
  • *****
  • Posts: 1832
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #377 on: December 06, 2018, 04:12:28 AM »
It's 3x1 (1856 horizontal is still in 3x pinning/line skipping)  & yes but with out dual ISO

reddeercity

  • Hero Member
  • *****
  • Posts: 1832
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #378 on: December 06, 2018, 06:50:27 AM »
Pushing 1280x720 to 72.053fps  :o
A few artifact but I'm more interested in how far the timers can be pushed , with different reg. configuration .





A short clip 1280x722-72.05fps-M05-2306.mov -- h264 26Mb

One thing I notice , when I started to pushing "B"timer over 55fps the back level started to clean up & over 65fps black level seem to stabilize .
It's almost like in multiplies of 30 fps gives good black level , e.g. 60fps

Edit: Here are some short hi-frame rate clips that got me to 72fps , the best one is 67fps .
It seems the sweet spot is around 60-62.5fps , I get this with 1600x832

1280x722-70.086-fps-M05-2305.mov
1280x722-69.094fps-M05-2304.mov
1280x722-68.034fps-M05-2303.mov
1280x722-67.006fps-M05-2302.mov

reddeercity

  • Hero Member
  • *****
  • Posts: 1832
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #379 on: December 07, 2018, 08:42:37 AM »
Finally got It 2560x1200 @ 23.976fps with Clean preview while recording raw and say Goodbye to Frozen Preview forever :))




2560x1200-M07-0020_00001.png
2560x1200-M07-0020_000000.dng
Code: [Select]
Default Crop Size               : 2568 1200
Active Area                     : 52 160 1252 2728


iPhone video of 5d2 showing un-frozen liveview while recording Clean_preview_recording-IMG_2690.MOV
Half shutter works for full color preview in standby & recording raw video -- I show this in the video from my iPhone.


Here a short h264 clip 2560x1200-23.976fps-M07-0020.mov 36Mb

One thing the bug me is in the raw image dump I can see corruption line on the right side (like timer "A" pushed to far) but it's not in the Raw .mlv video @ 10bit
The image dump is in 14bit , could that be the issue ? but clean in 10bit , strange .
Exiftool black & white level from 14bit dump
Code: [Select]
Black Level                     : 1027
White Level                     : 16200
10bit dng report correct level
Code: [Select]
Black Level                     : 112
White Level                     : 1013


2568x1200-RAW-038.DNG

Can also be seen in the Liveview_dump from the LCD/422

2560x1200LV-045.422

 

Danne

  • Hero Member
  • *****
  • Posts: 4612
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #380 on: December 07, 2018, 08:55:59 AM »
There´s no source code to check? Why not post stuff on bitbucket? Very easy to follow and check into things.

reddeercity

  • Hero Member
  • *****
  • Posts: 1832
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #381 on: December 07, 2018, 09:08:55 AM »
It's the same code I pointed out to you before ,  I'm doing everything with ADTG_GUI.mo
so there no special crop_rec module , just plain old mlv_rec in 3x Crop_ mode (5xZoom)

The next step is to code it in to the crop_rec module .
Everything can be reproduce , that why I post of those images so other can fellow along .
It you what to get other D4 cams working with this , first the redirect buffer("raw_slurp") need to be
figured out and I also pointed this out before .


Danne

  • Hero Member
  • *****
  • Posts: 4612
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #382 on: December 07, 2018, 09:14:13 AM »
Ok I see. Is the generic power time code in crop_rec.c applied to 5d2? Might fix the stripes if so or at least there would be a place to look for fixing.

reddeercity

  • Hero Member
  • *****
  • Posts: 1832
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #383 on: December 09, 2018, 12:32:11 AM »
No , 5d2 doesn't use those. The image is clean in 10bit and that what really counts as 14bit would be only 1-2 second of record time
At least 10bit I can get 15-20 seconds , until I can get working on Lossless & CF interface overclocking .

reddeercity

  • Hero Member
  • *****
  • Posts: 1832
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #384 on: December 09, 2018, 02:21:38 AM »
Ok I'm starting to code this (any help/advice would be great) 
I'm not the greatest at this so please be patient :)
All the new valve's I'm using are in the previous post #379
I'm working off crop_rec_4k_5d2 branch , waza57 source

I'm coding a 2560x1200 @ 23.976 preset

crop_rec.c-1436
Code: [Select]
if (is_5D2)
    {
       int timerA = 727;
       int timerB = 1374;
       int a = reg_override_fps_nocheck(reg, timerA, timerB, old_val);
       if (a) return a;
       
       switch (reg)

crop_rec.c-1684
Code: [Select]
   for (uint32_t * buf = (uint32_t *) regs[0]; *buf != 0xFFFFFFFF; buf += 2)
    {
        uint32_t reg = *buf;
        uint32_t old = *(buf+1);
        if (is_5D2)
        {
          if (reg == 0xC0F06088) 
            {
               engio_vidmode_ok = (crop_preset == CROP_PRESET_CENTER_Z)
                ? (old == 0x46A04BA)                        /* x5 zoom */
                : (old == 0x4E7058A);   /* 1080p or 720p */
            }
        }
        else

But my question is this :
I need to add
Code: [Select]
c0f0713c
c0f07150
c0fo8184
c0f08188
c0f08518
Do I add them after the raw resolution like this
Code: [Select]
case 0xC0F0713c:
                return (old_val & 0xFFFF0000) + 0x500
or
Code: [Select]
if (reg == 0xC0F0713c) 
            {
              ? (old == 0x476)                     
                : (old == 0x500)
             }

Danne

  • Hero Member
  • *****
  • Posts: 4612
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #385 on: December 09, 2018, 08:52:46 AM »
I built a preset from your registers 2560x1200 in here:
https://bitbucket.org/Dannephoto/magic-lantern/downloads/crop_rec.mo

Wonder if would work with 5D2 at all?

Working in this branch. Didn´t commit any changes yet:
https://bitbucket.org/Dannephoto/magic-lantern/branch/crop_rec_4k_mlv_snd_isogain_1x3_presets

I don´t have the 5D2 so take it with a grain of salt...

reddeercity

  • Hero Member
  • *****
  • Posts: 1832
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #386 on: December 09, 2018, 09:32:07 AM »
Ok , can you post your code please
I need to look at the code first before I try it ,
Don't what to brick my camera .

Danne

  • Hero Member
  • *****
  • Posts: 4612

reddeercity

  • Hero Member
  • *****
  • Posts: 1832
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #388 on: December 09, 2018, 09:48:12 AM »
Thanks , I'll have a look later tonight , early here - 2am

Danne

  • Hero Member
  • *****
  • Posts: 4612
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #389 on: December 09, 2018, 09:57:31 AM »
If it doesn't work here it should be fairly easy to put it into waza57 code.

reddeercity

  • Hero Member
  • *****
  • Posts: 1832
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #390 on: December 10, 2018, 04:05:06 AM »
Yea it's different then the D4 branch , anyways I mainly was looking for the code structure
you gave me some good example to follow , that helps a lot .
 

reddeercity

  • Hero Member
  • *****
  • Posts: 1832
Re: 3K/UHD 5D2 Raw development and Other Digic IV Cams
« Reply #391 on: December 11, 2018, 09:34:33 AM »
Look in to HDMI output Reg's
Code: [Select]
c0f11314
2eb045f->2eb0dof
In Canon Preview
Changes the liveview HDMI HD Width only not raw , I was able to have proper field of view in Crop_Mode 2144x1074 on the HDMI
instead of having a center crop on the hdmi  (still a little distorted & compressed vertically) . Normally with HDMI while in Crop_mode
Let say at 2144x1074 the image gets centered crop to 1920x1080  so you loss the field of view unless you are at 1920 all ready .
I still have to find the HD height yet the first set of valve didn't do anything.
I was mainly only trying to get rid of the black bar on the side of the hdmi ( this cause it to be 1650x1080 and I looking for 1920x1080 or more)
But I think I may have to increase the HD buffer some how , still early in this investigation/development .
I had my Ninja connected to hdmi while I adjusted the reg's and recorded a short 2min clip 85Mb
First I set the reg . then at the 20 second mark I compare it to the reg turn off



 H264-5d2-hdmi-00208.MOV