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

Topics - wolf

#1
Maybe there is a way to do this, I haven't figures out yet?
Sometimes it would be very helpful to switch Power save settings as easy as the LV presets.

#2
General Development / Silent pic pink frames 550D
August 31, 2013, 08:04:28 PM
Does anybody know, how to avoid "pink frames" with silent pics on a 550D.
I tried to record pictures for a timelaps triggered by a wired remote shutter and got quite a couple of unusable frames.
Same with Intervalometer.
Are silent pics working on other models without problems?

Any advice someone?
Thanks.


#3
Intervalometer & FPS override & Power saving & Silent pics cause magenta images.
I used a 550D.
Maybe some of the devs are interested in.

Disabling power saving solves the problem.
#4
General Development / PicoC doesn't work on a 550D
August 23, 2013, 10:44:22 AM
I tried to compile ML with PicoC enabled and modules set to off.
When I start a script the camera displays "script running..." and nothing happens.

Am I doing something wrong, is quite a while since I run a script? Can anybody confirm this behavior?
#5
Well I needed to correct the colors and contrast.
It's possible render a picture sequence, also my atom-box is much too slow.
#6
I have 7.1GB space left according to ML.
One DNG raw pic needs 3.9MB according to my file browser

The memory calculation of the intervalomater prints 217 pics are possible.
7.1GB ≈ 7240MB
7240MB : 3.9MB ≈ 1855

I guess since DNG is possible most people will use silent pics for timelaps.




#7
How about an option in the interval shooting to reduce the LV brightness to a minimum to save energy?
#8
I'd like to ask if someone could help porting DNG pics to 550D.

QuoteI've posted a porting guide for DNG silent pics here:
http://www.magiclantern.fm/forum/index.php?topic=5240.msg32128#msg32128

Like a1ex said I took a screenshot of "Show EDMAC" before and after I pressed "Don't click me!"
before: after:

1. fill in the "blanks" in raw.c
#if defined(CONFIG_550D)
#define RAW_LV_EDMAC ? ? ? ? ?
#endif

What is the right address?
#9
General Development / PicoC void wait_pic();
May 06, 2013, 01:07:39 PM
Is it possible to check or wait with with the
void wait_pic();
function whether a silent pic was taken?

#10
With the new parameter input method it's impossible to set a value lets say to 54, or did I something wrong?
To me it's more important to set the exact time for example than to get close to a value fast.

I propose therefor that after the value steps have increased and a button is released, to start with a step size from 1 again.

I solved a long pressing button issue like this, but it's more elegant to increase the step size I guess :-)
while(button)
      delay(BOUNCE-i+10);
           if (i<=BOUNCE)
               i=i+1;

#11
Is it known how these images are created?
Are they generated from the movie clip or from the LV?

Edit:
I like to add that this downsized images are created on a 550D for the movie clip preview. Maybe on different models these images aren't created. I wonder if this could be a way to get an image without moving the mirror?
#12
Scripting Q&A / Silent pics and autofocus
February 25, 2013, 09:43:38 PM
After some experiments with focus() I wonder whether there is already a possibility to focus to a given length.
I tried to write a script for testing and realized that when I trigger a silent pic, the camera tries to autofocus. Triggering [Zoom Out] doesn't work on a 550D.
Is there another way to trigger s-p?

I know the script can't be accurate.

void mm_focus(int mm)
{
    int foc_count;
    mm=mm/10;
    D = get_dof();
    if(D->focus_dist>mm)
    {
        while(D->focus_dist>=mm)
        {
            focus(5);
            foc_count++;
            D = get_dof();
        }
        for(int j=0; j<foc_count/2; j++)
            focus(-5);
            foc_count=0;
    }
    else
    {
        while(D->focus_dist<=mm)
        {
            focus(-5);
            foc_count++;
            D = get_dof();
        }
        for(int j=0; j<foc_count/2; j++)
            focus(5);
        foc_count=0;

    }
    focus_old=mm;
}
#13
Scripting Q&A / Motion "control" with picoc
February 14, 2013, 01:16:10 AM
Accidentally I connected a headphone to mic input and could hear a crackling noise while playing the test beep. It seems that the mic power turns off while playing the beep().
I made a simple AVR stepper control and triggered it with the mic port. Every beep triggers one step. Of course it could be done with the headphone port too.
I build a slider out of old roller skater bearings and two rods and pulled the camera with a sewing thread with the stepper motor. Some improvements could be done, but I'm quite happy with the result :-) The slider works also without motor ok.

Thanks to a1ex for implementing picoc to ML and recently adding the ability to stop a running script.

     

The result:


the code
picoc:

/*
@title Slide it
@param   s Steps *100
@range   s 1 40
@default s 30
@param   p Pics
@range   p 0 500
@default p 400
@param   w Interval sec.
@range   w 0 100
@default w 2
@param   d Display
@range   d 0 1
@default d 0
*/

#define STEP_WAIT 0.3
#define PRESS_WAIT 0.2
#define DISPLAY_WAIT 0.5
int i,a;
float wait_rest;
while (i<400)
{
    i++;
    for (a=0; a<(s*100/p); a++)
    {
        beep();
        sleep(STEP_WAIT);
    }
    wait_rest=(w-PRESS_WAIT-(a*STEP_WAIT));
    if (wait_rest>0)
        if(d)
            sleep(wait_rest);
    if( (!d) && (wait_rest-DISPLAY_WAIT>0) )
    {
        sleep(wait_rest-DISPLAY_WAIT);
        lv_resume();
        sleep(DISPLAY_WAIT);
    }
    press(SHOOT_HALF);
    sleep(PRESS_WAIT);
    unpress(SHOOT_HALF);
    if(!d)
        lv_pause();
}



#ifndef F_CPU
#define F_CPU 8000000UL
#endif

#include <avr/io.h>
#include <util/delay.h>


void delay(uint16_t ms)
{
    while(ms--)
        _delay_ms(1);
}

int main(void)
{
    uint16_t n=0;
    uint16_t turn_off=0;
    uint8_t hs[4]= {9,5,6,10};
    DDRB |= (1<<PB0) | (1<<PB1) | (1<<PB2) | (1<<PB3) | (1<<PB4);
    while (1)
    {
        while(!(PINB &(1<<PB4)))
        {
            n++;
            delay(100);
            if (!turn_off)
                PORTB=0;
            turn_off=0;
        }
        if(turn_off<200)
        {
            turn_off++;
            PORTB=hs[n & 3];
            delay(1);
        }
        else
        {
            PORTB=0;
        }
    }
}


#14
I tried to detect a key while a script is running...

if (script_state != SCRIPT_IDLE)
    {
        if (event->param == BGMT_PRESS_UP)
        {
         ??????
         ??????
        }
    }


but could not find the comand or function to stop a script. Whatever I tried results in no effect or in hanging.

Is there a way to stop a task. Sorry if this question is stupid.
task_create("run_script", 0x1c, 0x4000, run_script, 0);
#15
I can't compile ML with plugins=y when in console.c the line #179 begins with static.
Without it works, but I dont't know, if it's important for console_vprintf to be static.

static int console_vprintf(const char* fmt, va_list ap) // don't DebugMsg from here!
{
    char buf[256];
    int len = vsnprintf( buf, 255, fmt, ap );
    console_puts(buf);
return len;
}

#16
Unfortunately I use in my special timelaps-plugin the sprintf command to update the menu which displays the duration of the TL.

With which command is it done today when sprintf is deprecated?
As you see I'm not a very good programmer and thankful for any advice.


UPDATE:
When I use snprintf(time_str,10, "%02d%s%02d%s%02d",hours,colon,minutes,colon,seconds );
I get depending on the time result something like following displayed in the menu:
e p e p
or  p e p e p e p e

SOLVED:
snprintf(time_str, sizeof(time_str), "%02d%s%02d%s%02d",hours,colon,minutes,colon,seconds );

outside of ML with gcc it works




...
{
        .name = "Duration",
        .priv = &v,
        .max = 0,
        .choices = (const char *[]) {time_str},
        .help = "",
    },

...

char* sec_to_time(int seconds)
{
    int minutes, hours;
    hours=seconds % 86400 / 3600;
    minutes=seconds % 3600 / 60;
    seconds=seconds % 60;
    const char colon[] = ":";
    sprintf(time_str, "%02d%s%02d%s%02d",hours,colon,minutes,colon,seconds );
    return time_str;
}
...



with GCC it works for me

#include <stdio.h>

main()
{
    char time_str [ 10 ];
    int minutes, hours, len;
    int seconds =199999000;
    hours=seconds % 86400 / 3600;
    minutes=seconds % 3600 / 60;
    seconds=seconds % 60;
    const char colon[] = ":";
    snprintf(time_str,10, "%02d%s%02d%s%02d",hours,colon,minutes,colon,seconds );
    printf("%s  \n", time_str);
}
#17
General Chat / Lightworks for Linux alpha
January 09, 2013, 12:39:59 AM
It is possible to download and try out lwks alpha for Linux at the moment. Real commercial (the light version will always be free they say) nle software for Linux  :D 
http://www.lwks.com
#18
Share Your Photos / Motion detection tap water 550D
December 14, 2012, 02:28:17 AM
I didnt't have enough light so I shot the picture with ISO 6400.


#19
General Development / General architecture of ML
December 12, 2012, 02:13:17 PM
I experimented with plugins and I think this is a great option of ML.
Now I managed it to make a very simple timelaps plugin which adds a menu entry and is configurable. Real developer could do this much better than I did, I guess.
I wonder if seperate ML in a core and plugins would be an improvement.
The core could become smaller in size and the features could become easier to edit and change for lower skilled developers and enlarge in diversity.

Maybe I am overlooking something, but I  would be interested in what other people think about it.   

#20
General Development / Menu for native plugin
December 10, 2012, 06:01:26 PM
Hi there!
Is it possible to create a menu that is displayed within ML with a native plugin, like testplugin.c?
#21
General Development / PicoC scripting
December 06, 2012, 03:00:10 PM
Hi there,
does anybody know if pymite is still supported. I think, after trying lua, which only operates at the moment with integer numbers, python would be the better scripting language.
When I try to compile ML with pymite=y :
make[1]: *** No rule to make target `script.o', needed by `magiclantern'.  Stop.

Thanks
#22
General Development / LUA plugin question
December 01, 2012, 01:14:24 PM
I tried to run a script with the newest ML.
The scripts, that came with the source code for example wb_shoot.lua works fine.
But when I try to run a script which worked before:

PROP_REMOTE_SW1 = 0x80020015
msleep(1000)

setbutton = function()
  setprop(PROP_REMOTE_SW1, 1);
  msleep(100)
  setprop(PROP_REMOTE_SW1, 0);
end

msleep(1000)
setbutton()


it should trigger a half button pressed to take a silent pic, but it produces a warning on the screen and a
ASSERT00.LOG file:

ML ASSERT:
PROP_LEN(80020015) correct:2 called:4
at ../../src/property.c:242 (prop_request_change), task TASK
lv:0 mode:3


Magic Lantern version : v2.3.NEXT.2012Dec01.550D109
Mercurial changeset   : a077bad5e286+ (unified) tip
Built on 2012-12-01 00:28:15 by wolf@localhost.
Free Memory  : 305K + 1834K


Does anybody know what this means?
#23
I have a Android tablet which runs ML controller of sztupy. I use it mostly as external monitor.
The App can not trigger the shutter.

But there is a way...

To simulate pressing buttons with the Android application I modified the debug menu. Each item in the new debug menu does nothing but to simulate pressing a button. If you select for example (Left) and press (Set), the ML menu jumps one step to the left. I created all buttons as items needed to control ML, as well as LV, Halfshutter and Fullshutter.
The Android app creates the menu dynamically depending on ML-firmware in the camera, so you can see the modified debug menu.
If you press Left on the Android tablet it is like you press left on you camera.
You can only see the ML menu on your camera screen, but control it with the touchscreen of the tablet.

It works even in LiveView Mode, so it is possible to activate Follow-Focus, change desired step size, switch to LV, start recording and pull the focus with the Android tablet without touching the camera. The Android app monitors always LV.
#24
Share Your Photos / Tested ML generated HDR script.
July 21, 2012, 07:55:25 PM
My first second HDR picture with ML automatically generated HDR script. I did nothing but trigger my  550D and run the script. Nice feature!

#25
Hi,

can't find any gui_unlock function with  grep -r "gui_unlock" in magic-lantern

CONFIG_PYMITE           = n
CONFIG_RELOC            = n
CONFIG_TIMECODE         = n
CONFIG_PTP              = y
CONFIG_PTP_CHDK         = y
CONFIG_PTP_ML           = n
CONFIG_PLUGINS          = y
CONFIG_CONSOLE          = y
CONFIG_DEBUGMSG         = n

I get:

ptp-chdk.o: In function `ptp_handler_PTP_OC_CHDK':
ptp-chdk.c:(.text+0xc4): undefined reference to `gui_unlock'
collect2: ld returned 1 exit status

The other thing is  howto compile ptpcam?
I tried to compile ptpcam from "https://github.com/mweerden/CHDK/zipball/ptp" like mentioned in the  wiki.
$ cd tools/ptpcam/
$ make
gcc -o ptpcam myusb.c properties.c ptp.c ptpcam.c  -lusb
$ ./ptpcam -L

Listing files...
ERROR: Could not open session!
There is also a patches dir
I tried "patch -p1 < {/path/to/patch/file}" but it didnt't work for me. I don't know how to patch.

Is there anywhere a working ptpcam source code without the need to patch or what I'am doing wrong?

Thanks for any hint or help
...Wolfgang



#26
Post-processing Workflow / slowmovideo
July 18, 2012, 09:58:37 PM
"Found" today an awesome program somehow like twixtor I guess, but open source and free.
http://slowmovideo.granjow.net/
Maybe someone does like it like I do.  8)



Brief tutorial:
#27
General Help Q&A / clip length in interval mode
July 15, 2012, 01:16:22 PM
Hi,

Does anybody know whether it is possible to change the length of the clip when taking movies in the interval mode. At the moment I get a clip size of approximately 5MB which contains 50 frames, but I'm only interested in the first frame. I think for time-laps the quality is better than a silent-pic.
#28
General Help Q&A / Lua Script - Half Pressed Button
June 26, 2012, 12:36:10 PM
Hi there,

I would like to create a silent picture (422) with Lua.
Is there a command for a "half pressed Button" in Lua, something like the "shoot(wait, allow_af)" command?
Would it be possible to emulate a half press button with "setprop(id,value) " if there is no command for it, yet?

Thanks
#29
General Help Q&A / Time lapse
June 16, 2012, 11:34:58 PM
Hi does anybody know?
Is it possible to change photographic values during a low fps rate shot in movie mode. If it would be possible to change ISO after a "short" period of time for example, we could abandon a ND-Filter in more situation, also the long exposure effect is beautiful imho?

Great new site, Thanks :-)