mpv_slicing icon indicating copy to clipboard operation
mpv_slicing copied to clipboard

Time stamp has invalid characters in Windows

Open ScribbleGhost opened this issue 3 years ago • 2 comments

In a Windows environment, the following characters cannot be used in a file or folder name:

< (less than) > (greater than) : (colon) " (double quote) / (forward slash) \ (backslash) | (vertical bar or pipe) ? (question mark) * (asterisk) Microsoft Docs

So the colons in the date/time stamp should be changed to something more OS-agnostic. Perhaps hyphens. https://github.com/Kagami/mpv_slicing/blob/d09c11227704c8d5bdaa2c799ef64dce881c63a7/slicing.lua#L30

If these characters are not changed the FFmpeg command will not work in Windows.

ScribbleGhost avatar Mar 09 '21 11:03 ScribbleGhost