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 - maxchen

#1
I finally make it work by clear all my camera setting.
compile the code from dmilligan's repository, and set scanline to 1 , turn off preview, my 5D2 only took 38-39 ms to process. Great !
Thank you all.
#2
Quote from: a1ex on August 07, 2014, 08:08:51 AM
@maxchen: can you enable debug info in raw.c? (define RAW_DEBUG there)

This will show exactly why you get "raw error". Remember to turn off the overlays, otherwise you'll get a flood of success messages from there :P

Is this one ? "LV raw disable"
And how to enable it ?
#3
Quote from: a1ex on August 06, 2014, 07:52:47 PM
The zip from mk11174 works fine here.

I get "raw error" and blank screen only if picture quality is not RAW in Canon menu.

I had double check the picture quality, is RAW.
And some time the ML crash.

ASSERT: GetMemoryAddressOfMemoryChunk( GetFirstMemChunk( pMem1AllocateListItem->hMemSuite ) ) == pMessage->pAddress
at SrmActionMemory.c:984, task RscMgr
lv:1 mode:3


Magic Lantern version : Nightly.2014Aug06.5D2212
Mercurial changeset   : 81a2fd653497+ (fullres-silent-pics) tip
Built on 2014-08-06 16:03:21 UTC by mathew@mathewubuntu64.
Free Memory  : 121K + 3936K
#4
Thank you dmilligan and mk11174
But the full-res silent pictures branch from the main repo and the one mk11174 provide did not work neither.
still got blash screen or "raw error" on lcd, global draw is already on.

maybe I should report to the fullres thread
#5
picture quality is RAW and iso is 100
some time I got "raw error" on the screen but no black screen
#6
Quote from: dmilligan on August 06, 2014, 12:58:29 PM
are you able to take a regular full-res silent picture?

fullres --> no
simple --> yes
#7
Quote from: dmilligan on August 06, 2014, 03:42:08 AM
You need to compile and use the entire build, there are a lot of changes to the raw backend in that branch. It won't be usable with nightly builds until the branch is merged.

Still have problem.

I do all this with the following step:
1. hg clone -b fullres-silent-pics https://bitbucket.org/dmilligan/magic-lantern
2. compile autoexec.bin for 5D2, copy autoexec.bin to root of cf card and copy 5D2_212.sym to ML/MODULES
3. compile modules and copy silent.mo, raw_rec.mo, mlv_rec.mo, pic_view.mo to ML/MODULES
4.turn on camera and load all module and reboot
5.set camera to M mode and shutter to 1 sec
6.set silent pic to fullres and turn triger on
7.turn lv on and press half shutter
still a black screen , nothing more. press shutter will say busy, turn off lv and on again, still black screen , I have to reboot the camera
If if set shutter to > 15s, it will say expo is too long
#8
Quote from: dmilligan on August 06, 2014, 03:42:08 AM
You need to compile and use the entire build, there are a lot of changes to the raw backend in that branch. It won't be usable with nightly builds until the branch is merged.

Thank you. I will try it later.
#9
How to use the module ?
I compile the module from source and use it with the latest nightly build.After load the module and set it to fullres and trigger, go to lv mode and press half shutter.All I got is only a black screen, nothing more.I use a 5D2 and the side lcd will say the camera is busy.
#10
Share Your Photos / Re: Scorpius and Milkyway
June 17, 2014, 03:33:21 AM
Quote from: rpt on June 16, 2014, 01:40:44 PM
Hi, the links to the two images seems to be broken.

What about now? I have changed the url of the images.
#11
Share Your Photos / Re: Scorpius and Milkyway
June 16, 2014, 03:42:42 AM
This is my diy mount



I modify some second-hand machinery material and design a controler to control the motor


Fixed image links //Audionut.

Change image's url
#12
Share Your Photos / Scorpius and Milkyway
June 03, 2014, 04:59:33 AM


ML Bulb timer (5 min) and intervalometer enabled.
Canon 5d2 with EF 50/F1.4 @ F2.8
5 min and ISO 800 x6, 5min and ISO 400 x2, 5min and F3.5 x2
Tracking with a DIY mount
#13
I remember last year ,the bolt_rec module help captured so many amazing lightning pictures.
But after the mlv_rec/raw_rec was update and the bolt_rec did not work anymore .Is there chances to update bolt_rec to work with current mlv_rec/raw_rec module ?

Thanks
#14
I'm trying to experiment something but can't figure out how to detect a button pressed, for example the half press shutter button,in the module.
Do I have to put a handler function in handle_common_events_by_feature in gui_common.c ?

thanks.
#15
General Development / Re: Pymite and picoc
December 08, 2012, 03:56:34 AM
Thanks for the tip, I will try to port picoc as a plugin.
#16
General Development / Re: Pymite and picoc
December 07, 2012, 10:23:52 AM
I did a ugly picoc port to ML before, base on a very old version of ML.
Testing on my 50D is OK.

How can I upload an attachment ?


#ifdef CONFIG_PICOC
/* script functions */
#define SCRIPT_NUM 5
#define LINE_BUF_SIZE 30
#define PICOC_HEAP_SIZE (30*1024)

char *script_list[SCRIPT_NUM]={NULL};
int script_selected=0;
int script_cnt = 0;

/*
int * script_read_line(const char *script_source, char *buf, int line)
{
    int line_pos = 0;
    char *pos, *line_start;

    line_start = pos = script_source;
    while (*pos != '\0') {
        if (*pos == '\n') {
            if (++line_pos == line) {
                my_memcpy(buf, line_start,pos-line_start);
                buf[pos-line_start] = '\0';
                return pos-line_start;
            } else {
                line_start = pos + 1;
            }
        }
        pos++;
    }
   
    return 0;
}
*/

/* modify from is_valid_cropmark_filename */
int is_valid_script_filename(char* filename)
{
int n = strlen(filename);
if ((n > 2) && (streq(filename + n - 2, ".C") || streq(filename + n - 2, ".c")) && (filename[0] != '.') && (filename[0] != '_'))
return 1;
return 0;
}

static void find_scripts(void)
{
    char buf[LINE_BUF_SIZE];
struct fio_file file;
struct fio_dirent * dirent = FIO_FindFirstEx( CARD_DRIVE "scripts/", &file );
if( IS_ERROR(dirent) )
{
NotifyBox(2000, "Scripts dir missing" );
msleep(100);
NotifyBox(2000, "Please copy all ML files!" );
return;
}
script_cnt = 0;
do {
        if ((file.mode & 0x20) && is_valid_script_filename(file.name)) {
            /* get the full path of the script */
            snprintf(buf,LINE_BUF_SIZE,"%s%s%s%c",CARD_DRIVE,"scripts/",file.name,'\0');
            int len = strlen(buf);
            script_list[script_cnt] = (char *)AllocateMemory(len+1);
            strncpy(script_list[script_cnt], buf, len);
            script_list[script_cnt++][len] = '\0';

            if (script_cnt >= SCRIPT_NUM)
                break;
        }
} while( FIO_FindNextEx( dirent, &file ) == 0);
FIO_CleanupAfterFindNext_maybe(dirent);
}

static void
script_select_display( void * priv, int x, int y, int selected )
{
bmp_printf(
selected ? MENU_FONT_SEL : MENU_FONT,
x, y,
"Scripts(%d/%d): %s",script_selected,script_cnt,
script_selected==0?"OFF":(script_list[script_selected-1]+strlen(CARD_DRIVE"scripts/"))
);
}

static void script_select(void)
{
    if (script_cnt == 0)
        find_scripts();

    if (++script_selected > script_cnt)
        script_selected = 0;
}

void run_script(const char *script)
{
    extern int PicocExitBuf[];
    PicocInitialise(PICOC_HEAP_SIZE);
    PicocExitBuf[40] = 0;
    setjmp(PicocExitBuf);
    PlatformScanFile(script_list[script_selected-1]);
    PicocCleanup();
}

void script_run_fun(void)
{
    if (script_selected == 0)
        return;

task_create("run_script", 0x1c, 0, run_script, 0);
}

/* end script functions */
#endif

//for the menu
#ifdef CONFIG_PICOC
{
.priv = &script_selected,
.display = script_select_display,
.select = script_select,
},
{
.priv = "Run script",
.display = menu_print,
.select = script_run_fun,
},
#endif