-
Notifications
You must be signed in to change notification settings - Fork 122
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
"npm run render" leads to "Error: Error: ffmpeg exited with code 1:" #182
Comments
@ullenboom the error log is not very informative unfortunately. I would guess that this is something about your input file (video or audio file) or your ffmpeg installation (more likely). I think you are also one of our first users running revideo on windows, so I would think it has to do with system dependencies around ffmpeg :D By default, revideo comes with an ffmpeg binary. Maybe you could try using your own installation. First, check that you have ffmpeg & ffprobe installed (run
If you don't have ffmpeg and ffprobe installed, try doing that first and then set the environment variables |
Both tools are installed and in the PATH. Current versions. I found another problem, that ffmpeg-static\ffmpeg.exe was not installed. This seems to be a bug: eugeneware/ffmpeg-static#131. But solvable:
Now the EXE is at the right place. But the error is the same. Setting |
I have a similar issue with the project created by
Environment:
package.json {
"name": "revideo",
"private": true,
"version": "0.0.0",
"scripts": {
"start": "vite",
"serve": "vite",
"build": "tsc && vite build",
"render": "tsc && node dist/render.js"
},
"dependencies": {
"@revideo/core": "0.4.8",
"@revideo/2d": "0.4.8",
"@revideo/renderer": "0.4.8",
"@revideo/vite-plugin": "0.4.8",
"@revideo/ffmpeg": "0.4.8"
},
"devDependencies": {
"@revideo/ui": "0.4.8",
"@revideo/cli": "0.4.8",
"typescript": "^5.2.2",
"vite": "^4.5"
}
} |
Hi, I have the same error. I can see it work it in the preview mode with But when I sue I get this error PS C:\revideo\examples\youtube-shorts> npm run render
> revideo@0.0.0 render
> tsc && node dist/render.js
Worker 0: JSHandle:finished downloading
Render progress, worker 0: 1%
Render progress, worker 0: ...%
Render progress, worker 0: 100%
Error: Error: ffmpeg exited with code 1: Output #0, mp4, to 'output\video-visuals.mp4':
Output file #0 does not contain any stream
at ChildProcess.<anonymous> (C:\revideo\examples\youtube-shorts\node_modules\fluent-ffmpeg\lib\processor.js:182:22)
at ChildProcess.emit (node:events:519:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
Error: ffmpeg exited with code 1: Output #0, mp4, to 'output\video-visuals.mp4':
Output file #0 does not contain any stream
at ChildProcess.<anonymous> (C:\revideo\examples\youtube-shorts\node_modules\fluent-ffmpeg\lib\processor.js:182:22)
at ChildProcess.emit (node:events:519:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)
Node.js v20.13.1 Then I use my own installation of ffmpep and also don't work
Thanks |
Yeep still getting error on Windows. Here's my render.mjs
|
Same error, any fixes? |
Still getting the same issue on Windows. From what I can gather the issue isn't with ffmpeg but is instead with the rendered visuals- because the |
Okay I figured it out, |
You can get around it by using the ffmpeg exporter though it seems relatively slow for me: // project.tsx
export default makeProject({
scenes: [scene],
settings: {
shared: {
size: {x: 1920, y: 2400},
},
rendering: {
exporter: {
name: '@revideo/core/ffmpeg',
options: {
format: 'mp4'
}
}
}
},
}); |
Next one :)
I get an incomplete video-0.mp4 with audio in my output folder.
The text was updated successfully, but these errors were encountered: