-
Notifications
You must be signed in to change notification settings - Fork 880
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
Error: Output format mp4 is not available #1262
Comments
same issue with me |
I have a similar issue (although all the formats seem broken for me) New (build from March 2024):
Old (build from June 2023):
(Obviously, mp4 is just an example, I'm not going to paste the whole format list here.) My guess at what is happening: node-fluent-ffmpeg/lib/capabilities.js Line 18 in 4e02d12
Then, when you try to run a command, the error checking at line 589 compares its (empty) list of valid formats to your format, determines it can't support the format, and throws the error. |
@benharp I try running ffmpeg -format and I also had the same column for devices. Does this mean I have to downgrade my ffmpeg version? What version works for you?
|
@benharp followed your comment and downgraded my ffmpeg to ffmpeg version 6.1-full now it can finish the stream. Thanks your hint helps a lot! |
@alpacaPwaa should this issue be closed? I mean, you can fix it by downgrading the version, but now Homebrew installs version 7 by default so maybe this should be taken into account now. |
We should fix the regexpr and make a new fluent-ffmpeg version? Is that possible? |
It seems like I have to re-open the issue, everyone here's right although there's a workaround for this issue it's still better to address the root cause. |
Use
|
Fixed here #1266 You can also install package from: https://www.npmjs.com/package/fluent-ffmpeg-7 and just change the import to from 'fluent-ffmpeg-7' I did a quick version there till official version gets fixed. |
Is there a way to skip format checks? I want my code to work on both version of ffmpeg |
You can use my code, it works on both versions! |
You can directly install from the npm with npm i fluent-ffmpeg-7. I called like that just to reinforce that it also works on FFmpeg 7 |
@njoyard Old issue |
This has been fixed in #1266 |
Version information
Code to reproduce
(note: if the problem only happens with some inputs, include a link to such an input file)
Expected results
I should be able to save the video to s3
Observed results
Error: Output format mp4 is not available
at eval (webpack-internal:///(rsc)/./node_modules/fluent-ffmpeg/lib/capabilities.js:589:21)
at nextTask (webpack-internal:///(rsc)/./node_modules/async/dist/async.mjs:5892:9)
at next (webpack-internal:///(rsc)/./node_modules/async/dist/async.mjs:5900:9)
at eval (webpack-internal:///(rsc)/./node_modules/async/dist/async.mjs:430:16)
at eval (webpack-internal:///(rsc)/./node_modules/fluent-ffmpeg/lib/capabilities.js:549:7)
at handleExit (webpack-internal:///(rsc)/./node_modules/fluent-ffmpeg/lib/processor.js:170:11)
at ChildProcess.eval (webpack-internal:///(rsc)/./node_modules/fluent-ffmpeg/lib/processor.js:184:11)
at ChildProcess.emit (node:events:518:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)
at Process.callbackTrampoline (node:internal/async_hooks:130:17)
The text was updated successfully, but these errors were encountered: