TejasQ / gen-subs

Generate subtitles for your videos with secure, on-device machine learning models.
207 stars 17 forks source link

Windows bug fix #11

Open iceberg53 opened 7 months ago

iceberg53 commented 7 months ago

That's a fix for the issue FFMPEG exits with code 1 - Invalid Argument.

It introduces the use of functions from the path module (path.basename(), path.resolve(), path.extname(), ...) for handling file paths correctly for both Windows and POSIX operating systems. The previous implementation fed file paths with invalid characters sequences when running on Windows which caused the bug.