Limits be gone.

Started by 1%, July 25, 2012, 06:57:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

1%

Wasn't really any slower for me in linux. Strange that mono on osx is different.You might as well run a virtual machine instead. Not only for 1 20kb converter but for all of the other utilities that aren't cross platform.

scrax

Quote from: 1% on August 11, 2012, 04:59:08 PM
Wasn't really any slower for me in linux. Strange that mono on osx is different.You might as well run a virtual machine instead. Not only for 1 20kb converter but for all of the other utilities that aren't cross platform.
On linux x11 is default i think but on mac you have to load it up before starting to see the icon and the all other stuff, this is the first thing I think that could make differences in loading it.

virtual machine makes a really slower boot and I hate the idea of spending money for a faster os and then slowing it down with win. This  and avisynth (but last one has alternatives) are the only utility that don't works on osx for what I know since all other linux solutions are working also on osx. avisynth will run in wine, slowly like mono.

There is a  special developer package for Mac from mono that is supposed to "make an .app from an .exe", maybe that will result in a faster or at least not mono dependent patcher?

EDIT: I have that error in terminal when using mono with the patcher:

Aug 11 14:05:09 MacBookPro-di-tomare.local mono[2741] <Error>: kCGErrorInvalidConnection: CGSGetWindowTags: Invalid connection
I'm using ML2.3 for photography with:
EOS 600DML | EOS 400Dplus | EOS 5D MLbeta5- EF 100mm f/2.8 USM Macro  - EF-S 17-85mm f4-5.6 IS USM - EF 70-200mm f/4 L USM - 580EXII - OsX, PS, LR, RawTherapee, LightZone -no video experience-

1%

Why would the emulator start at boot. My vmware stuff starts pretty fast and I can pause/restore it whenever. You don't have to bootcamp a real ver of windows.


Windows, linux, osx. I've run them all and they're about the same. Try the exe to app, its probably the easiest to get it native for the other people.

g3gg0

to be honest.
we are still in experimental phase and determining which method is the best and if it will work at all.
at the moment i really dont care about perfectness.
it will work for every user good enough.

next step is to test it for other models and then to enable 4GiB file splitting. ;)
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

1%

It works very well right now on 600D exfat. Thanks!

scrax

Quote from: 1% on August 12, 2012, 04:24:47 AM
Why would the emulator start at boot. My vmware stuff starts pretty fast and I can pause/restore it whenever. You don't have to bootcamp a real ver of windows.


Windows, linux, osx. I've run them all and they're about the same. Try the exe to app, its probably the easiest to get it native for the other people.

maybe is just parallels that starts at boot? It needs to load all his kext and it's a lot of stuff for maybe even not using it in most of my session.
maybe I've used a wrong way to just ask for a script instead of an exe also in future when other things are mature, just  because i've passed 8 month converting silent pics with wine and with the script it's really more fun to use and automate (so way faster).

for the exe to app I think I'll try but source is need I suppose.
I'm using ML2.3 for photography with:
EOS 600DML | EOS 400Dplus | EOS 5D MLbeta5- EF 100mm f/2.8 USM Macro  - EF-S 17-85mm f4-5.6 IS USM - EF 70-200mm f/4 L USM - 580EXII - OsX, PS, LR, RawTherapee, LightZone -no video experience-

1%

I wish I could use the scripts, they seem better but I edit media on a win box and I hack away on linux. So I have to combine hdr manually but for silent pics there is a really good program. Needs to be a better way to make everyone on all platforms happy for all the things ML does which need post/merging,etc.


*Below still works for me.

g3gg0

ok, update again.

http://upload.g3gg0.de/pub_files/a5e5655bdfa7454e8d970d2505aa0d47/autoexec.bin

can all camera users try what is being detected when pressing "dont click me"?
the exact values are not that important, i care more about if the 4GiB limit is disabled or if there is some error message.

thanks.
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

g3gg0

if this doesnt work on 60D, try this one (also working on all cameras) and tell about "f:1" or "f:0" being displayed

http://upload.g3gg0.de/pub_files/b1c16b181c80a6e8cbe823c70977a1a6/autoexec.bin
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

thba74

On 550D:

Object not found
Object: -- Ptr: 0x00001E70 Off: 0000
550D // Canon 1.8 50 //Tamron 2.8 17-50 // Tamron 70-300 // Lilliput 596GL-50NP/HO/Y // Rode VideoMic // AD 160 ENG Mixer // Some M42's

ilguercio

I'm still trying to find my card reader  :-\
Canon EOS 6D, 60D, 50D.
Sigma 70-200 EX OS HSM, Sigma 70-200 Apo EX HSM, Samyang 14 2.8, Samyang 35 1.4, Samyang 85 1.4.
Proud supporter of Magic Lantern.

g3gg0

@thba74:
thanks.
for the 550D it seems the maximum file size is 0xFF000000 (4080MiB).

also, the size_t type is 32 bits, so we cannot simply tell MovieRecorder to record longer and concentrate on splitting files. (or use exFAT as done with 600D)

i guess 550D user will have to stick to movie-restart. sorry.
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

1%

Is max rec sec at 0x148? It is 7070h which is 28something in decimal.... or is it calculated from the file size? I tried changing it to a lower number to stop recording but it has not. I haven't tried recording over 30 minutes yet.


*I tried setting this offset to 70 but recording did not stop sooner. Instead it stopped right at 30 minutes.

g3gg0

on 600D its the size in seconds. 0x0707 which is 1799 seconds
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

1%

I'll try higher values but why didn't it stop when I set it lower?

Or did I just set it to 1792 seconds because the ordering of the numbers is different?

Tried setting it with no luck (changed but limit remains), there must be a limit at another spot. Will keep looking.

ilguercio

On 50D
Object/MaxPos not found
Object: -- Ptr: 0x00001ED8  0ff: 0000
Canon EOS 6D, 60D, 50D.
Sigma 70-200 EX OS HSM, Sigma 70-200 Apo EX HSM, Samyang 14 2.8, Samyang 35 1.4, Samyang 85 1.4.
Proud supporter of Magic Lantern.

ilguercio

What's the response for the 50D?
Canon EOS 6D, 60D, 50D.
Sigma 70-200 EX OS HSM, Sigma 70-200 Apo EX HSM, Samyang 14 2.8, Samyang 35 1.4, Samyang 85 1.4.
Proud supporter of Magic Lantern.

AriLG

So no prolonged recording for 550D ?  :-\
T3i (main), T2i
------------------
It's not about accuracy,  it's about Aesthetics

1%

For older cameras it might not be this simple.

Quotethe size_t type is 32 bits, so we cannot simply tell MovieRecorder to record longer and concentrate on splitting files. (or use exFAT as done with 600D)


I tried doubling the limit, just changing 7 to F and limit still remains. I looked in the firmware and don't see any other spot for it.


DryosDebugMsg(BYTE((unk_R4->off_0x4)->off_0xC), 22, 'MVR_APPENDCHECK_30MINOVER', HALFWORD(unk_SP->off_0x8))


unk_SP->off_0x8

Also see this: delay_allocate_maybe((aAJ_0x1EEC_MovieRecorderPtr_struct_0x00_0x04_taskName.off_0x4 /*0x1E44*/)->off_0x8


Is this possible 2nd location for 30 minute limit? Just current rec time?


off topic but I also found this:

NSTUB(0xFF04E9E4, mvrSetBitRate)

div_maybe(0x100000*BYTE(*(arg0)), 8*(aAJ_0x1EEC_MovieRecorderPtr_struct_0x00_0x04_taskName.off_0x4 /*0x1E44*/)->off_0x1E4) => ret_div_maybe_FF04EA00
(aAJ_0x1EEC_MovieRecorderPtr_struct_0x00_0x04_taskName.off_0x4 /*0x1E44*/)->off_0x3A8 = ret_div_maybe_FF04EA00

Also functions to dump a single YUV frame (is this silent pic or not used before?).

bart

Just for the information

Both the 5D mark III and 650D/T4i have a native solution. Here is a quote from manual:
QuoteEven if you shoot a movie exceeding 4GB, you can keep shooting without interruption. Approx 30sec. before the movie reaches the 4GB file size, the elapsed shooting time or time code displayed in the movie-shooting image will start blinking. If you keep shooting the movie and the file size exceeds 4 GB, a new movie file will be created automatically and the elapsed shooting time or time code will stop blinking. When you play back the movie, you will have to play the individual movie files. Movie files cannot play back consecutively automatically. After the movie playback ends, selec the next movie to play.

Oh and the maximum record time is of course 29min and 59sec.

g3gg0

Quote from: 1% on August 17, 2012, 10:08:52 PM
I tried doubling the limit, just changing 7 to F and limit still remains. I looked in the firmware and don't see any other spot for it.

DryosDebugMsg(BYTE((unk_R4->off_0x4)->off_0xC), 22, 'MVR_APPENDCHECK_30MINOVER', HALFWORD(unk_SP->off_0x8))

MVR_APPENDCHECK_30MINOVER is the check for clip mode, not for normal recording.

you tried to double what limit on which camera and which limit do you still hit?
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

1%

600D. I tried to double 0x148 by changing the 7's to E's but if MVR_APPENDCHECK_30MINOVER is for a different mode than that explains it. 30 minute is the only limit I hit... and probably 16gb but that is expected.

Also, what are you using to disassemble? Private tool? I don't see this part in alex's arm console:

ROM:FF04E5EC 00 00 E0 E3                 MOV     R0, 0xFFFFFFFF <<<<

I get:

FF04E5EC:   e3e00000    mvn   r0, #0

I wanted to look for maxrecsec value elsewhere but its no use if not all values are shown.

g3gg0

i am using IDA pro.




#if 1
    uint32_t objPtr = autodetect_movierecorder_ptr();
    uint32_t offsetMax = autodetect_movierecorder_maxsize_pos();
    uint32_t offsetMaxFailed = 0;
   
   
    if(!offsetMax)
    {
        offsetMaxFailed = 1;
#ifdef CONFIG_60D
        offsetMax = 76;
#endif   
    }
   
    if(objPtr && offsetMax)
    {
        uint32_t *movRec = *((uint32_t**)objPtr);
        uint32_t offsetCur = offsetMax - 0x06;
       
        /* set maximum to 0x3FFFFFFFF bytes (16GiB) and time to 180 minutes */
        movRec[offsetMax+2] = 180*60 - 1;
        movRec[offsetMax+1] = 0x00000003;
        movRec[offsetMax] = 0xFFFFFFFF;
       
        while(1)
        {
            msleep(100);
            bmp_printf(FONT_SMALL, 10,40, "Object: 0x%08X  Ptr: 0x%08X  Off: %04X  f: %d", movRec, objPtr, offsetMax, offsetMaxFailed);
            bmp_printf(FONT_SMALL, 10,50, "max: %08X%08X cur:%08X%08X", movRec[offsetMax+1], movRec[offsetMax], movRec[offsetCur+1], movRec[offsetCur]);
        }
    }
    else
    {
        uint32_t loops = 0;
        while(loops++ < 100)
        {
            msleep(50);
            bmp_printf(FONT_SMALL, 10,10, "Object/MaxPos not found");
            bmp_printf(FONT_SMALL, 10,20, "Object: --  Ptr: 0x%08X  Off: %04X", objPtr, offsetMax);
        }
    }
#endif


Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

1%


1%

Even with limit time properly set, the camera still stops at 30 minutes. :(

I made a 60D bin here:

https://bitbucket.org/OtherOnePercent/tragic-lantern/downloads/autoexec.bin.exfat.60D

Hopefully those guys have better luck today.