Skip to content

Time stamp has invalid characters in Windows #7

@ScribbleGhost

Description

@ScribbleGhost

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.

return string.format("%02d:%02d:%02.03f", hours, minutes, seconds)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions