Is it possible to do this in Lua?
Posted: 09 Mar 2009 17:41
Hello,
I'm thinking about writing a foreign language learning plugin. I'm learning German the following way: watching a DVD movie with German audio and English subtitles, rewinding every sentence 4-5 times until I grasp every word fully. I wonder whether I could write a routine that automatically rewinds to the beginning of the previous sentence and hook it to a key?
It'd be something like "A:= average loudness for the last 800 millisecs. Rewind until you find an at least 200 millisec long part where the total loudness is at least 80% lower than A". Of course the numbers will have to be tweaked.
1) Is it a feasible, a good idea?
2) Where can I pick up the total loudness (i.e. not the loudness setting but the actual volume)
3) Can I make it cache the last 60 secs so that I don't actually have to "rewind" the DVD, just do it all in memory?
4) Can scripts be hooked to hotkeys?
5) Full documentation on Lua scripting and some tutorials, where can I find them?
Thanksalot.
I'm thinking about writing a foreign language learning plugin. I'm learning German the following way: watching a DVD movie with German audio and English subtitles, rewinding every sentence 4-5 times until I grasp every word fully. I wonder whether I could write a routine that automatically rewinds to the beginning of the previous sentence and hook it to a key?
It'd be something like "A:= average loudness for the last 800 millisecs. Rewind until you find an at least 200 millisec long part where the total loudness is at least 80% lower than A". Of course the numbers will have to be tweaked.
1) Is it a feasible, a good idea?
2) Where can I pick up the total loudness (i.e. not the loudness setting but the actual volume)
3) Can I make it cache the last 60 secs so that I don't actually have to "rewind" the DVD, just do it all in memory?
4) Can scripts be hooked to hotkeys?
5) Full documentation on Lua scripting and some tutorials, where can I find them?
Thanksalot.