-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FFMMPEG exits with code 1 - Invalid Argument #8
Comments
It doesn't matter if I call with |
I encountered the same exact problem. |
I'm also encountering the same problem on Windows 10 with Node.js v18.8.0 . |
This commit mainly replaces the use of custom string manipulation by functions from the path module from node ( path.basename(), path.resolve(), path.extname(), ...) . It's done to account for Windows OS file paths ("C:\\folder\\subfolder\\file.ext") which are different from POSIX ones ("/home/user/folder/file.ext") . That difference led to file names with character sequences that caused an error when calling ffmpeg.
I tried to provide a fix for the bug and I'm for the approval of the maintainer. You can grab the code and run it locally if you urgently need a fix : https://github.com/iceberg53/gen-subs/tree/windows-bug-fix |
Awesome many thanks. :) I will try once I have some time. :) |
i have the same problem : sudo npx gen-subs for '.\vsdc-sr-subtitled-video.mp4' --burn-in --format ass
Need to install the following packages:
gen-subs@1.1.0
Ok to proceed? (y) y
⠼ Converting to audio...node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Error: Error: ffmpeg exited with code 1: C:\Users\GAMING\AppData\Local\Temp\gen-subs\from-video\1718404910943-E:\Videos\VSDC Free Screen Recorder\vsdc-sr-subtitled-video.wav: Invalid argument
".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v20.10.0 |
Completely new to node and npm, sorry for my helplessness :( |
Hi! |
Worked out just fine :) Short rundown of my steps should anyone else try to follow:
|
I'm happy that you managed to get it working. |
I got this error, which I don't know how to handle.
Platform
Window 11
Powershell
Node 20.11
Error
The text was updated successfully, but these errors were encountered: