Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - waza57

#26
Reverse Engineering / Re: Video - dual iso for 5D2
April 16, 2018, 08:33:24 PM
Hello , I need your help for that because i'm not sure.
For dual-ISO on 5D2, how to make a pull request and to which branch ?
Thanks.
#27
I try to increase the size of 5D2 and i have some success without using adtg_gui.mo.
As soon as possible I hope come back  to post all my work on the 5D2.
For the instant I have a problem for increase height.

For Digic register like  C0f06084/88  i use EngDrvOutLV(digic_register, new_val) and it' s OK . The new value is correctly apply.

But i need to tweak C0F0713C/50 too for increase height , so i tried different solutions but the value of digic register don't change :

  • EngDrvOutLV(C0F0713C, new_val);

  • patch_memory(C0F0713C, oldValue, newValue, "comment");

  • cache_fake(0xff186ee8, InstructNew, TYPE_DCACHE) (or ICACHE);            // *for this....

  • patch_instruction(0xff186ee8, instructOri, InstructNew, "comment");      // ...and this I found in ROM


* in ROM1.BIN.dis (5D2)
   With C0F0713C for example:


ff186ee4: e51f0064 ldr r0, [pc, #-100] ; ff186e88: (00007d9c)
ff186ee8: e59f11c8 ldr r1, [pc, #456] ; ff1870b8: (c0f0713c)
..................
ff986ee4: e51f0064 ldr r0, [pc, #-100] ; ff986e88: (00007d9c)
ff986ee8: e59f11c8 ldr r1, [pc, #456] ; ff9870b8: (c0f0713c)


So i believe understand that  instructOri = e59f11c8 and try to increase it with InstructNew= e59f11dc
With this change I hope to transform  ldr    r1, [pc, #456]         in        ldr      r1, [pc, #476]   but this don't  works.

It is possible with adtg_gui.mo but there is too much troubles , please someone could explain me how to write in this registers (c0f0713c/50) ?
#28
Raw Video Postprocessing / Re: MLVProducer: [v3171]
October 11, 2017, 04:14:05 PM
AWPStar,

Wonderful works! Thanks for MLVProducer tools.

For me, the last update don't works with few MLV's that don't have standard resolutions because I tweak Some  code for 5D2 Nightly Builds.

1880x940
2152x1076

(for example 1856x1044, 1872x1012, 2144x1076 work perfectly)

The viewer of MLVProducer stay desperately black.
MlRawViewer work ok whith all this videos.

Thanks a lot.


#29
Hello,
For a gain of speed I try to play with registry in windows .

in
          HKEY_CLASSES_ROOT\Directory\shell\ we can create a key named "mount MLV" (clik right->new key)
then in
          HKEY_CLASSES_ROOT\Directory\shell\mount MLV we must create a key named "command" 
and then:
          we create on right side a string value like this (right click-> new string value) and tape this

cmd /c "start /D <path where mlvs.exe is located> mlvfs.exe x: --mlv_dir="%1" && "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" localhost:8000"

be Careful we must left a space between the path and mlvfs.exe!

Now with a right click on a folder with MLV files we can mount it and start the web gui in the same time.

hope this helps.


#30
Reverse Engineering / Re: Video - dual iso for 5D2
March 18, 2016, 07:34:30 PM
For 50D :

QuoteAs far as I understand the implementation for the 5D2 and 50D is exactly the same, just with different address values.

I don't know at all but if my little method can be applied for 50D:

Without dual iso:
We do learn what is the CMOS[0] address when LiveView is ON. (start at iso 100 for example)
is it the same as photo mode (probably not)?
What is his value and is it the same than photo mode (for same iso 100) ?

and make the same thing for iso 200.... it would be enough to have an idea about 50D.

To do this :
We must have a 50d (I have not).
Enable adtg_gui module after compiled it for your nightly builds installed( except if a precompiled one exist, I don't know that).
Then we could investigate the addresses of CMOS[0] and its values.




#31
Reverse Engineering / Re: Video - dual iso for 5D2
March 16, 2016, 06:36:15 PM
@nikfreak

movie mode -->  cmos[0] at 0x404b4590

                          iso100 cmos[0]= 0x203 (nrzi=0x3fd)
                          iso200 cmos[0]= 0x207 (nrzi=0x3fa)           ....only cmos[0] values changes , not the address.
                         
photo mode -->                at 0x404b3b5c
                       
                          iso100                 0x203 (nrzi=0x3fd)
                         
                                        at 0x404b3b6a                               Then in photo mode in contrary the cmos[0] address changes to according with different iso !!

                          iso200                  0x207 (nrzi=0x3fa)

In dual iso photo mode:
                                        at 0x404b3b5c                                the same address that iso100 in normal photo mode but with the dual value of cmos[0]
                         iso100-1600           0x383 (nrzi=0x2fd)

So, To have dual iso video with 5d2 my idea is to put these different values of "cmos[0] photo-dual iso" in cmos[0] of movie mode always at the same address 0x404b4590.
Ouf......I do not know if this is useful and I'm quite understandable
             
#32
Reverse Engineering / Re: Video - dual iso for 5D2
March 16, 2016, 03:13:52 PM
@DeafEyeJedi


In my case it' works  with :
extracting dng files from Mlrawviewer and doing a cr2hdr-20bit.exe or cr2hdr.exe.

And make exiftool.exe -TAG -Blacklevel=7400 -Whitelevel=64000 (or values around this)on each DNG files.

I don't know  why I must do exiftool yet.
#34
Hello everyone.
From this post:
http://www.magiclantern.fm/forum/index.php?topic=16854.0

I would like to hear from some testers to know if I'm going in the right direction.

So, for those who want to try dual_iso.mo for the 5D2 and video mode:

https://bitbucket.org/waza57/magic-lantern/downloads/dual_iso.mo

I think it's not yet perfect because sometimes the Screen freezes.
when it's appear I must to restart (take off the battery first) and disable dual iso to restart again.
I have to continue to improve this.
At your own risk of course
#35
Reverse Engineering / Re: Video - dual iso for 5D2
March 13, 2016, 11:32:58 PM
@dfort
thank you very much, excellent advice.
I was wondering exactly how to do next.
so, I'm going to do all this.

#36
Reverse Engineering / Re: Video - dual iso for 5D2
March 13, 2016, 07:23:09 PM
So...

I made  a repository on bitbucket with a specific branch : https://bitbucket.org/waza57/magic-lantern/branch/dual_iso_video_5d2

My changes in dual_iso.c:
https://bitbucket.org/waza57/magic-lantern/src/7be4cd7f975ef25e98143d10da26712e5ec8ca77/modules/dual_iso/dual_iso.c?at=dual_iso_video_5d2&fileviewer=file-view-default

I think it's not yet perfect because sometimes the Screen freezes.
when it's appear I must to restart and disable dual iso to restart again.
I have to continue to improve this certainly but I would really appreciate if someone could tell me if it's already the right direction.

@ nikfreak

The 5D2 problem is/was that there is/was only one register to store the values iso.
Unfortunately I do not know what is the problem for the 70D. I do not have any.

Regarding the 50d, someone should try to manually compare (with ADTG-gui) the actual values CMOS[0] for the iso photo mode with those of the video mode(for the same iso).
iso 100, 200, 400, 800, 1600.

@dfort
Thanks , I think it's ok.
#37
Reverse Engineering / Re: Video - dual iso for 5D2
March 13, 2016, 12:47:12 PM
@Walter Schulz
I just tried but I do not see how to create a branch.
So I created a fork. It's Ok?
I make changes in this fork?

@nikfreak
Why would 70D also affected?
#38
Reverse Engineering / Video - dual iso for 5D2
March 13, 2016, 11:32:10 AM
@reddeercity

http://www.magiclantern.fm/forum/index.php?topic=6751.msg163491#msg163491

I make some changes in dual-iso.c and this seems to work for the 5D2 in video mode .

I would like to share it's changes for test.
I don't know exactly how to proceed to respect the forum's rules.

Can I publish here a new module dual_iso.mo or his code?
Thanks
#39
Reverse Engineering / Re: ADTG and CMOS registers
March 02, 2016, 03:24:31 PM
@reddeercity
QuoteSo you used latest Nightly Build & the atdg_gui module on the 5D2 ?
No, but with several versions like this one for example:

Magic Lantern v2.3.NEXT.2016Feb29.5D2212
Mercurial changeset: 63b2f145cb3b+ (unified).

I think it' works for the most of  Nightly Build's .

QuoteDid you have to compile the atdg_gui module for the 5D2 ?
Yes i did. I don't know if there is a precompiled one.

QuoteWell anyways if there something I can do to help I would be glad do what I can.
As a 5D2  user I would like to see this come to full light. Or the very least I would like to test it out
to see if the video is  usable .
if you like to can PM me
OK, thanks . You can also pm me. My first problem is to understand the code of dual-iso.c.
I could post a video later if you're interested but it is wobbly since it is with adtg_gui.mo and I don't know really the values of effectives 2 iso.
actually I trying  the alex's idea with memory patches. It's very difficult for me.


#40
Reverse Engineering / Re: ADTG and CMOS registers
March 01, 2016, 06:54:21 PM
I'm not sure to have the required level for all that.
I will try, however.
whatever happens, thank you very much.
#41
Reverse Engineering / Re: ADTG and CMOS registers
March 01, 2016, 12:38:11 PM
Hi and thank you so much for all that work.

Dual iso video works on my 5d2 but .......only when i'm playing with ADTG_gui

Like this:

1. load atdg_gui module.
2. Play with cmos[0] with movie mode on.
3. found  at iso 100 dual iso video working for CMOS[0] 0x301  -> 0x305        ( addr= 0x404B490, value 0x301, nrzi=513(0x201).

Im not  a developper, Just a player and i don't know how to implement this in dual_iso.c .

I tried to do something like this but i just got an "ISOless LV err(2)":

is_5d2 = 1;
        FRAME_CMOS_ISO_START = 0x404b4590; // CMOS register 0000 - for LiveView, ISO 100 (check in movie mode, not photo!)
        FRAME_CMOS_ISO_COUNT =          5; // from ISO 100 to 25600
        FRAME_CMOS_ISO_SIZE  =         30; // distance between ISO 100 and ISO 200 addresses, in bytes
       
        PHOTO_CMOS_ISO_START = 0x404b3b5c; // CMOS register 0000 - for photo mode, ISO 100
        PHOTO_CMOS_ISO_COUNT =          5; // from ISO 100 to 1600
        PHOTO_CMOS_ISO_SIZE  =         14; // distance between ISO 100 and ISO 200 addresses, in bytes

        CMOS_ISO_BITS = 3;
        CMOS_FLAG_BITS = 2;
        CMOS_EXPECTED_FLAG = 3;


If someone has an idea ?  ;)

P.S. Sorry for my bad english