I have to say that I'm a complete noob in programming but I wanted to make this so badly that I didn't give up until it ran.
So what does it do? What is its all about?
I wanted to create timestamps (A/B) while watching a long video to then copy them to the clipboard or send them directly to mkvMerge to let it split the videos into clips. I had found a script called time2clip which did not work on my system and VLC version. But I liked the concept. So I tried my best to make it work the way I wanted in the first place. I managed to fix the time format, the copying to the clipboard and even the sending to mkvMerge. Everything works fine for me. But I wanted to share this extension what brought up new problems and question of how to handle different paths etc.
- I want to make it really simple for users to get the setup right. Hence I created a short description which I planned to display as long as the path to mkvMerge isn't set in mkvMerge_path. Would it be possible to point the user via os dialog to the mkvMerge.exe once and placing the path as string into mkvMerge_path?
- Because I have no idea about that I tried to point the user via a link in the description to my lua file which of course resides in the VLC/lua/extensions folder. How the heck can I get the VLC install directory to put it in an variable? I tried config.datadir() but it breaks the script completely.
- So I had no clue about this and tried to put at least the default install dir of VLC in my description but this does only work if I use my German folder "Programme" and not with the default placeholder "program files". Why? And how to get around with that?
- The script runs fine for me - however - I noticed that it kind of freezes if the movie is to big and the splitting duration gets to long. Could someone check if everything makes sense? Is there maybe a loop or something?
Many thanks in advance