Magic Lantern Forum

Using Magic Lantern => General Help Q&A => Topic started by: garry23 on December 15, 2019, 11:23:38 PM

Title: Back to back recording
Post by: garry23 on December 15, 2019, 11:23:38 PM
@a1ex

Don't know if you have time to cast your eyes over this Err 70 problem I keep getting.

Here is the crash report:

QuoteASSERT: FALSE
at RscMgr.c:904, MovieRecorder:ff0ef42c
lv:1 mode:3

MovieRecorder stack: 1716f0 [171850-16f850]
0xUNKNOWN  @ de48:171848
0xUNKNOWN  @ 17bbc:171820
0x000178B4 @ ff0ebdf8:171808
0xUNKNOWN  @ 178e4:1717f8
0xUNKNOWN  @ 1796c:1717d8
0xFF1F06E4 @ ff1dafe0:171770
0xFF13C2D4 @ ff1f0730:171760
0x00001900 @ ff0ef428:171728
0x00069878 @ 69c1c:1716f0

Magic Lantern version : crop_rec_4k.2018Jul22.5D3123
Mercurial changeset   : c1e44b8e0183 (crop_rec_4k_mlv_snd) tip
Built on 2018-07-22 13:10:52 UTC by jenkins@nightly.
Free Memory  : 215K + 2491K

Here is the test code snippet:

for j = 1, clips do
    msleep(1000)
    movie.start()
    for i = 0, 5, 1 do task.yield(1000) end
    movie.stop()
    task.yield(1000)
end


That is, I record for 5 sec and repeat until clips is achieved
Title: Re: Back to back recording
Post by: Danne on December 15, 2019, 11:48:18 PM
Instead of movie.start() and movie.stop() maybe test key.press(KEY.REC). I find it more reliable, at least from early lua scripts I worked on.
Is task.yield(1000) same as msleep? Or is it pausing the loop until reaching 5, then continues? Anyway, msleep never failed on my end.
/my two pennies...
Title: Re: Back to back recording
Post by: garry23 on December 16, 2019, 08:41:24 AM
@Danne

Tried various combinations but continued to get the error and crash.

Have got round it by 'putting a man in the loop'.

Will up issue the script soon.

BTW the reason for the up issue is to get round the 128 frame TIFF average limit, ie take sets of clips of 120 frames each.

Cheers

Garry
Title: Re: Back to back recording
Post by: Danne on December 16, 2019, 08:57:14 AM
I have ffmpeg for mac working with tmix filter and 1000 files instead of 128. Are you able to compile for windows?
Title: Re: Back to back recording
Post by: garry23 on December 16, 2019, 09:23:08 AM
@Danne

No, I'm afraid I'm still not a compiler, 'just' a scripter  ;)

I assume from what you say, tweaking ffmpeg to work beyond 128 was straightforward?
Title: Re: Back to back recording
Post by: Danne on December 16, 2019, 09:31:38 AM
Yes. Change number 128 to 1000. Not too hard ;).
Compiling static build spanning from mac os 10.9 and onwards is harder.
Title: Re: Back to back recording
Post by: garry23 on December 16, 2019, 09:33:43 AM
Maybe some kind person will pick up on this and make that change next time MLV App is updated.

Thanks for all your help, as usual.

Cheers

Garry
Title: Re: Back to back recording
Post by: Danne on December 16, 2019, 09:45:01 AM
Been testing with masc. Not sure what is better though. Exporting multiple tiffs rather than one big fat averaged image. I tested a sequence of 269 files. Worked but not a fast workflow.
Title: Re: Back to back recording
Post by: garry23 on December 16, 2019, 10:56:05 AM
My 'use case' is to process as many images as there are in a single MLV, ie to an averaged TIFF.

If you and @masc could ensure the above is covered, as well as the other use cases, I will be a happy man  ;)
Title: Re: Back to back recording
Post by: Danne on December 16, 2019, 11:42:45 AM
Ensuring maybe not. Locally no problem to build and modify Mlv App. A more general solution might be hard. Right now only official ffmpeg builds are used so it means every machine needs some heavy ffmpeg compiling. See if anyone is interested in helping out.
Title: Re: Back to back recording
Post by: garry23 on December 16, 2019, 12:08:59 PM
@Danne

Understood.

As I say, hopefully those developing the MLV App for 'general use' will recognise the value of tweaking the tmix filter, eg to, say, 1000 ;-)
Title: Re: Back to back recording
Post by: Danne on December 16, 2019, 12:50:44 PM
I'm part of the general use party. I suppose ;)
Title: Re: Back to back recording
Post by: garry23 on December 16, 2019, 01:14:02 PM
 ;) ;) :D