Quote:
Originally Posted by Xenakios
At least this works fine, but I don't know if there's some issue when you try to put the result into the clipboard or something...
Code:
local filename="foo.mkv"
local str = "^\""..filename.."\""
print(str)
outputs
|
I managed it finally. The ^ sign wasn't necessary at the end though mkvToolnix put it inside the example code. Anyway. The script runs now perfectly and sends the timeStamps to mkvToolnix which splits the videos as expected. I'm very happy and proud. And I needed nearly a whole work day to get the right result. But because I need to cut videos sometimes at work it was kind of a workflow optimisation for myself.
I learned a lot. And this is quasi the first script I ever made/optimized. It feels really great to see something like that running but I also see how much improvements it could have.
The plan was to some kind use this VLC project to start a similar project for Reaper. But I recognized a lot of problems which will make this nearly impossible out of Reaper.
- First thing: mkvToolnix only splits/cuts at keyframes. This means its not possible to cut exactly at a desired frame which makes it impossible to trim a video the same in mkvToolnix as it can get trimmed in Reaper.
- Next thing: Reaper is not able to reload/refresh items without reloading the whole project. So trimming, sending to mkvToolnix, splitting and refreshing with the new created files would be complicated.
- And finally: I have no idea where to start in Reaper. Best thing would be to allow Reaper to use VLC extensions as this would already exist.
Many thanks for the help. The final VLC extension will be posted soon.