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.
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.