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.


Topics - wolf

Pages: [1] 2
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
« on: 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
« on: 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
Raw Video Postprocessing / DNG raw opens in cinelerra
« on: May 20, 2013, 11:37:44 AM »
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
Feature Requests / [ALREADY DONE] Timelaps reduce LV brightness
« on: May 18, 2013, 02:25:21 PM »
How about an option in the interval shooting to reduce the LV brightness to a minimum to save energy?

8
General Development / 550D & 500D porting 14bit RAW DNG silent pics
« on: May 16, 2013, 12:22:47 PM »
I'd like to ask if someone could help porting DNG pics to 550D.

Quote
I'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();
« on: 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
Scripting Q&A / [SOLVED]New Parameter input can't set value to 54
« on: March 08, 2013, 09:40:46 PM »
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
General Development / THM jpg image (movie clip preview)
« on: March 03, 2013, 01:17:01 PM »
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
« on: 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.

Code: [Select]
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
« on: 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:
Code: [Select]
/*
@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();
}

Code: [Select]
#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
General Development / [Solved] Stop a running picoc script (thanks a1ex)
« on: February 13, 2013, 06:19:44 PM »
I tried to detect a key while a script is running...
Code: [Select]
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.
Code: [Select]
task_create("run_script", 0x1c, 0x4000, run_script, 0);

15
General Development / Compile problems console.c plugins=y
« on: January 29, 2013, 05:58:03 PM »
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.

Code: [Select]
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
General Development / SOLVED sprintf I don't know what to do :)
« on: January 13, 2013, 10:56:49 PM »
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




Code: [Select]
...
 {
        .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

Code: [Select]
#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
« on: 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
« on: 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
« on: 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
« on: 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
« on: 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
« on: 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:

Code: [Select]
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
General Development / Android App trigger button (update)
« on: July 27, 2012, 02:56:06 PM »
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.
« on: 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


 

Pages: [1] 2