occivink / mpv-scripts

Various scripts for mpv
The Unlicense
420 stars 38 forks source link

Change formatting of start and end time in file name #21

Closed joeynotjoe closed 6 years ago

joeynotjoe commented 6 years ago

I tried looking through the code to find where I might be able to change it, but was unable to do so successfully.

Basically, I would love to be able to change the start time and end time formatting to use periods as separators, instead of colons, in the file name.

Is there somewhere easy to do this in the script?

occivink commented 6 years ago

The formatting code uses this function, you can simply change the columns to periods. However, if you do so you should also change this line to "-ss", tostring(from), otherwise ffmpeg won't understand the timestring syntax.

joeynotjoe commented 6 years ago

Aha, perfect. The second part was my problem. Sincerely thank you for your assistance!