-
Notifications
You must be signed in to change notification settings - Fork 162
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: ffmpeg exited with code 1: Error reinitializing filters! #51
Comments
did you find any solution? |
Ensure you have ffmped compiled with all the required library bindings, such as libass, libmp3lame... |
I had the same error because my images were not all the same size. |
yeah, you must use same size image. Note that's documented in the README. |
thanks |
I'm having this issue and I know is due to the caption key in the images node. If I delete the caption finishes ok. |
I solved by installing ffmpeg with all deps on OSX with brew. brew uninstall --ignore-dependencies --force ffmpeg brew install ffmpeg --with-chromaprint --with-fdk-aac --with-fontconfig --with-freetype --with-frei0r --with-game-music-emu --with-libass --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplug --with-libsoxr --with-libssh --with-libvidstab --with-libvorbis --with-libvpx --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-opus --with-rtmpdump --with-rubberband --with-schroedinger --with-sdl2 --with-snappy --with-speex --with-tesseract --with-theora --with-tools --with-two-lame --with-wavpack --with-webp --with-x265 --with-xz --with-zeromq --with-zimg |
It would be great if the error was more informative. Just run a sanity check on the image sizes before running the ffmpeg command so ffmpeg doesn't fail in such an obscure way. |
I am trying to convert images to video using videoshow all is working fine but the image with caption is not working. Failed to inject frame into filter network: Invalid argument
|
What the image caption is? |
Captions are simple i am trying on example file. Caption is - This is a sample subtitle |
Complete file is --- var videoshow = require('../') var audio = __dirname + '/../test/fixtures/song.mp3' var options = { var images = [ videoshow(images, options) |
I don't remember how I fixed that error, but I do that properties are very weak coded. Sometimes less properties and more stable ideas make the code work. I remember I was playing a lot with them but finally I think it was a code issue... I unsuscribe from this thread. Good luck. |
Hi All is it possible to add different font color and alignment for particular image |
Same error ffmpeg process started: ffmpeg -i C:\Users\Avell\AppData\Local\Temp\videoshow-6e3ea757-642e-4cea-9b83-e64f3724b5d3 -i C:\Users\Avell\AppData\Local\Temp\videoshow-f15cb5e9-e760-4a88-b727-b2ebc1784115 -i C:\Users\Avell\AppData\Local\Temp\videoshow-caf16361-2a7b-47ff-bd97-5d5f8e9d85dd -i C:\Users\Avell\AppData\Local\Temp\videoshow-0dbef774-cca6-4996-8527-736414ada824 -i C:\Users\Avell\AppData\Local\Temp\videoshow-1673f4b8-d71e-4b64-b838-74ece8d165fb -i C:\Users\Avell\AppData\Local\Temp\videoshow-0e8bdf8c-9243-4d1d-8805-4b41c9cfc081 -i C:\Users\Avell\AppData\Local\Temp\videoshow-aeac442c-8f09-46fa-9a20-cf18281130a3 -y -filter_complex concat=n=7:v=0:a=0 video.mp4
ffmpeg stderr: undefined |
For anyone interested, I created a tool which is similar to this one, but also supports videos and a lot more transitions, animations and components Hopefully useful for some of you: https://github.com/mifi/editly |
How have you solved your problem? |
Same size means, are you telling about the image file size or image dimensions? Kindly clarify |
Used images must have symmetric width and height pixel dimensions. |
hey i also facing this issue : any one please help! |
I have encountered the following error, and after investigation, I have found that it is caused by an issue with the @ ffmpeg installer/ffmpeg package. May I ask if there is a good solution? The pseudocode is as follows: const ffmpeg = require("fluent-ffmpeg");
const ffmpegPath = require("@ffmpeg-installer/ffmpeg");
ffmpeg.setFfmpegPath(ffmpegPath.path);
...
ffmpeg()
.input(vpath)
.input(watermarkImg)
.inputOptions("-filter_complex", "overlay=100:10")
.on("error", function (err) {
console.log("fail: " + err.message);
})
.on("end", function () {
console.log("success ");
})
.save(`${outputFolder}/demo.mp4`); The error is as follows: Error: ffmpeg exited with code 1: Error reinitializing filters!
Failed to inject frame into filter network: No such file or directory
Error while processing the decoded data for stream #0:0
Conversion failed! |
@yangfan-coder did you find a solution? |
Unfortunately, there was no such thing |
ffmpeg exited with code 1: Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
The text was updated successfully, but these errors were encountered: