* Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\extensions\ Put the file in the VLC subdir /lua/extensions, by default: Even better would it be to write it in a text file, but that is another story. But it would help a lot to just watch a long movie and just sending the time codes one after another into the clipboard. This would be do it:Ĭan anybody help me to get it counting the input? And sorry if this all seems a bit silly. Then I need an "If question" for "string.format" if the input has an 1 or 2 label. So I'm pretty sure before "if input then" I need something that counts and gives the input a number from 1 and 2. If this formatting looks a bit stupid I just did by trial and error to get the format I needed. Local timeString = string.format("d:d:d-",hours,minutes,seconds) Local minutes = math.floor((curtime600)/60) How would I do that? I need a counter which gives the "input" kind of a label independent of the time value. So the first click marks A (odd) and copies the time as "01:32:02-" into the clipboard, the second click marks it as B (or even) and copies the end time as "01:33:24," into the clipboard. I want the input counted and separated into even or odd labels. Now I have this stupid idea to make kind of an A to B method out of it. If I repeat it, the time changes of course but the format stays the same. I managed to get the first part of it: So if someone plays a movie and clicks at a certain time on the extensions "copy to clipboard", the "01:32:02-" for example gets copied fine. The - represents the "until" and the "," represents the divider for the next time stamps. MkvToolnix needs the following format: "00:00:00-00:00:00," while 00 represents whether hours, minutes and seconds. And it was kind of fun to finally get the play time in the needed format copied to the clipboard without any hassle. So as an absolutely noob I tried to get it to work. (only windows at the moment, with clip.exe) I found a lua script for VLC which allows to copy the playing time to the clip board. But it needs time stamps in a special format. The best method would be to use mkvToolnix to do this. I often recommend users to cut big videos into clips before using them in Reaper because of Reapers inability to trim videos without rendering. This is kind of an off topic question but it also depends some kind on my work in Reaper.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |